New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot import pyzed.sl #78
Comments
hi, I do not have errors in the installation ModuleNotFoundError Traceback (most recent call last) ModuleNotFoundError: No module named 'pyzed.sl' I appreciate if you can please help me |
I used conda for python as well. It will work only if you change directory to pyzed. |
Hey, had the same problem. In the directory that you installed Anaconda go to "envs[YourEnvName]\Lib\site-packages\pyzed", there is a Python Extension File starting like "sl.cp" copy it and paste to "pyzed" dir of the "zed-python-api-master" you downloaded from git and used to install. That solved my problem. Hope it works for you as well. |
Hi, I have installed using pip and have the similar error. I have tried to install building the package from the git download and it throws another error regarding Python 3.6.8 Cuda 10 SDK 2.8.1. Ubuntu 18. Further as I can only achieve a pip installation copying things to the api base repo has no effect for my project. Further on run the package does not complain about the import but rather the sdk verion:
Please note this occurs even though my IDE cannot find the module I have looked for legacy version of the sdk and will looks again. Any ideas besides re-installing a legacy version of the sdk? |
"there is a Python Extension File starting like sl.cp" |
Tried installing SDK first and then following the steps in zed-python-api? |
Hello everyone, |
same issue : pyzed.sl not recognized |
Hi, If you are using a virtual environment, make sure to install the Python API inside the environment itself. Here are instructions on how to do so on Windows : virtual env doc Also, on Windows, there can be issues with Python versions >= 3.8. If it is possible for you, could you try with a former version of Python ? |
that is exactly the issue, I had several Python versions , including 3.9 and had my IDE misconfigured. |
When I installed the library I had issues with python version > = 3.7 . Try and install the library within the conda env with a python version of 3.6 installed in it. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days |
The comment from ghost, solved it for me. Just make sure you build, and then copy the file from the build & use it to the replace the existing python extension in your ZED anaconda environment. The one inside your "envs[YourEnvName]\Lib\site-packages\pyzed" |
Hi,
sdk 2.8
cuda 10.0
python 3.5
i went for python wrapper and did
sudo python3 setup.py build
sudo python3 setup.py install
there are no errors, but when i try to do:
import pyzed.sl as sl, it says: no module named pyzed.sl
Because of this darknet.py is also not running.
My issue is similar to old issue but for him it surprisingly imported after sometime.
I event rebooted the system.
i can see it pyzed gets installed in root path...usr/local/...
but it's not getting imported. Is it because my python is installed from conda?
The text was updated successfully, but these errors were encountered: