Comments (7)
The module isn't there. If you go to lib/python/site-packages/ I suspect you will not find that module in there.
So your setup/install failed, maybe because of a missing dependency. Read the documentation, make sure you install all the dependencies and run setup install again. There has to be a dependency missing somewhere.
Edit:
I just noticed that it installed it to your '/home/user/anaconda3/lib/python3.5/site-packages' directory.
If you're using a virtual environment, maybe it is coping the module to the wrong directory?
from pangolin.
Hi, thanks for your quick response!
Turns out I 'ignored' the warning below. I did not actually ignored it, I ran python -m pip install pybind11
to install the dependency, but this did not remove the warning so I proceeded anyway. Also it says in the readme that pybind11 is not required to be installed.
Just now I found this issue where someone said to install it using a specific pip. That didn't help, but as I'm using Anaconda I ran conda install pybind11
, after which the warning disappeared.
user@pc:~/GitHub/twitchslam/build/pangolin/build$ cmake ..
Build type not set (defaults to release)
-DCMAKE_BUILD_TYPE=Debug for debug
-- Python Found and Enabled
-- Eigen Found and Enabled
-- V4L Found and Enabled
-- ffmpeg Found and Enabled
-- libpng Found and Enabled
-- libjpeg Found and Enabled
-- libtiff Found and Enabled
-- libopenexr Found and Enabled
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
CMake Warning at python/CMakeLists.txt:3 (find_package):
By not providing "Findpybind11.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "pybind11",
but CMake did not find one.
Could not find a package configuration file provided by "pybind11" with any
of the following names:
pybind11Config.cmake
pybind11-config.cmake
Add the installation prefix of "pybind11" to CMAKE_PREFIX_PATH or set
"pybind11_DIR" to a directory containing one of the above files. If
"pybind11" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring done
-- Generating done
from pangolin.
So I rechecked all the dependencies and I think I have all of them installed.
Also the library seems to be installed in the right place. But still does not import.
user@pc:~/GitHub/twitchslam/build/pangolin$ ls /home/user/anaconda3/lib/python3.5/site-packages | grep pangolin
pangolin.cpython-36m-x86_64-linux-gnu.so
user@pc:~/GitHub/twitchslam/build/pangolin$ python -c "import sys; print(sys.path)"
['', '/home/user/anaconda3/lib/python35.zip', '/home/user/anaconda3/lib/python3.5', '/home/user/anaconda3/lib/python3.5/plat-linux', '/home/user/anaconda3/lib/python3.5/lib-dynload', '/home/user/anaconda3/lib/python3.5/site-packages']
user@pc:~/GitHub/twitchslam/build/pangolin$ python -c "import pangolin"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named 'pangolin'
from pangolin.
Hmm, if the module is in the right path you shouldn't get that import error. Have you tried installing another module to that environment and checked to see if it imports correctly?
from pangolin.
Yes, I am able to use other projects that have more complete installers.
I seem to have located the problem. The library that is build is for python 3.6, which is my system python, and then copied to my (python 3.5) Anaconda environment.
Maybe I need to pass the location of my python binary to the CMake script...
from pangolin.
If that's the case, see the Closed issue #11, that may help you. And then you should probably close this issue as well.
from pangolin.
Thanks @plasticuproject!
from pangolin.
Related Issues (20)
- Building on Windows [solution] HOT 2
- Pangolin built on python 3.7.4 results in seg fault 11 HOT 3
- make error HOT 2
- cmake .. make a error HOT 3
- Python.h: No such file or directory HOT 2
- Visualizing meshes
- Can anyone compile this? HOT 2
- Cannot import pangolin after install HOT 2
- Can anyone compile this for Mac OS Big Sur? HOT 10
- Fix needed for the build with ffmpeg 4.0 HOT 1
- make: *** No targets specified and no makefile found. Stop. HOT 6
- RuntimeError: Pangolin X11: Failed to open X display
- AttributeError: module 'pangolin' has no attribute 'CreateWindowAndBind' HOT 1
- Black window while running HalloPangolin.py HOT 2
- installation error HOT 1
- use of undeclared identifier '_window' HOT 1
- ABOUT “make: *** [Makefile:171: all] Error 2” HOT 2
- " Could not find a package configuration file provided by "pybind11" " while installing pangolin.
- 'GL/glew.h' file not found
- libopenh264.so.5: cannot open shared object file: No such file or directory [Conda environment]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pangolin.