-
Notifications
You must be signed in to change notification settings - Fork 31
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
Unable to import loaded module. #1
Comments
@medcelerate What OS are you using?
In macOS,
|
Are these files generated upon build? |
Let me try copying the Dylib to the folder. I need to see the exact file
generated but it is and NDIlib*.so file
…On Thu, May 14, 2020 at 8:49 AM Joel L B ***@***.***> wrote:
Are these files generated upon build?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHYKRGJQX7FCP2CROXEXHQ3RRPSFDANCNFSM4M7AARAQ>
.
|
Interesting, I seem to be missing some files then. |
Did anyone find a solution? |
Unfortunately I haven’t yet.
…On Sun, Jun 14, 2020 at 3:56 PM pasanm2 ***@***.***> wrote:
Did anyone find a solution?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHYKRGNO2WWOUJTUABH3MODRWUTNBANCNFSM4M7AARAQ>
.
|
I didn't either. |
Thanks for the suggestion. Will give it a try! |
Got examples to work with NDI SDK 4.5 (latest) installed on Ubuntu 20.4, just moved the built file NDIlib.cpython-38-x86_64-linux-gnu.so into the examples folder. Should be possible to install the lib to Python site-packages but I'm unsure how at the moment. Simpler solutions to access the lib is by setting up a custom folder wherein you put a symlink to the built lib file I mentioned, following the steps here: https://askubuntu.com/a/250935 (Linux OS only). |
On Windows, I cannot find "Processing.NDI.Lib.x64.dll" after build process.
After this, files I see in Release directory are following 3, not including the "Processing..." file. NDIlib.cp38-win_amd64.pyd |
On windows the |
I've exactly did what you say but nothings happens. Also my files don't have .dll extension but only .lib. Does someone know a way to import NDI module correctly? |
Sorry the dll is located at |
Sorry for late reply.
|
Solved this issue on Ubuntu 20 and NDI 5 SDK as follows: You just need to set LD_LIBRARY_PATH to include the folder in which the shared libraries are present. For me, sourcing the lib.linux-x86_64-3.8 inside the build folder solved the error. Eg: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/ndi-python/build/lib.linux-x86_64-3.8/NDIlib:$LD_LIBRARY_PATH |
@rayandaod Hi
and check the supported architectures.
If you get the following output, you have cross-compiled binary.
Unfortunately I don't have an m1 mac so I can't confirm it works :( |
I uploaded cross-compiled binary to pypi.
|
Hello @buresu! Thank you for your answer. I have done what you suggested and I indeed obtain the expected output:
Unfortunately, I still can't run the example scripts (No module named 'NDIlib' error remains)... Am I adding the right files to the examples folder (cf screen capture previously sent)? I also tried with pip again by removing the cache and running the command you sent, but the result is the same as before. Thank you, |
I have finally managed to make it work by running the scripts with |
@rayandaod Thank you for trying. I'm glad you were able to solve it! |
I am on a Macbook Pro M1, installed ndi-python sucessfully from PyPi and NDI SDK 5 from NDI's official installer. Still, upon running the Python example scripts, I get this error:
What am I doing wrong? |
I am still unable to run any of the examples on Windows... same error, even after copying the suggested dll to the examples folder "Processing.NDI.Lib.x64.dll" still the same error: ``ModuleNotFoundError: No module named 'NDIlib.NDIlib' Even trying with different version of Python but no luck... same error every time. Any workaround? |
Hello, I copy and paste this command for mac, but I still get the same error |
I compiled the module successfuly but attempting to load it while in the same directory as the so fields yields the below error.
The text was updated successfully, but these errors were encountered: