question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fail to run `python -m cppimport build`

See original GitHub issue

Hi there~ When try to run %sh python -m cppimport build in databricks, it returns: No module named cppimport.__main__; 'cppimport' is a package and cannot be directly executed

What the reason could be? Thanks very much!

cppimport==21.3.7 Python==3.8.10

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tbenthompsoncommented, May 10, 2022

Yes, I’ll push an update to PyPi this week! Thanks for reminding me.

1reaction
mityaxcommented, May 10, 2022

Well, turns out --force-reinstall still uses the locally cached version:

$ pip install --force-reinstall cppimport
Collecting cppimport
  Using cached cppimport-21.3.7.tar.gz (1.7 MB) #  <--- here
  [...]

I used

$ pip install --force-reinstall --no-cache git+https://github.com/tbenthompson/cppimport.git

and it worked:

$ python -m cppimport --help
usage: cppimport [-h] [--verbose] [--quiet] {build} ...
  [...]
Read more comments on GitHub >

github_iconTop Results From Across the Web

Build failure on Mac OS · Issue #9 · tbenthompson/cppimport
I encountered similar error on my macOS 10.12.1, and I'm using Anaconda compiled python. I think the reason is the setuptools does not...
Read more >
Using cppimport inside custom Python Package - Stack Overflow
I'm trying to use cppimport inside one of my files in a custom Python module. ... Build import cythonize # with open("README.md", "r", ......
Read more >
Using pybind11 — BIOS-823-2018 1.0 documentation
Run Python code ! pip install pybind11 ! pip install cppimport. Clone the Eigen library if necessary - no installation is required as...
Read more >
importlib — The implementation of import — Python 3.11.1 ...
An implementation of the built-in __import__() function. Note. Programmatic importing of modules should use import_module() instead of this function.
Read more >
Result Code build-failed-stage-build - The Debian Janitor
undertow, scrub-obsolete, build/build, 2022-11-20T01:36, 5m11s, [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found