-
Notifications
You must be signed in to change notification settings - Fork 286
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 create python bindings on windows #1391
Comments
Hi, What cmake command did you use to configure the project? On windows: it should look something like
If you did and ran the Sam |
Hi,
There is not libvisp_[...].dll created at all in the |
Are you using cmd or powershell? I know that in powershell, i'm having issues with CONDA_PREFIX. |
Hi, Which version of ViSP are you using? The most recent master branch? So that I can further debug the issue, could you send me:
Thanks, |
Hi, I believe I'm using ViSP3.6.1 and yes for the master branch, since I have been following the Tutorial: https://visp-doc.inria.fr/doxygen/visp-daily/tutorial-install-python-bindings.html In the tutorial I have met a bug in "Get ViSP latest source code" part: Here are the files, thank you so much for helping me! Thanks, |
Hi, I have proposed a fix on the branch #1470 . Would you mind checking out the branch and recompiling visp with it? Sam |
Fix typo in Python bindings (see issue #1391)
Hi, Thank you so much for fixing, however it still fail to run, here are the log files. generation.log Thanks, |
Can you try the following:
|
Hi, I tried but comes with new error: ImportError: DLL load failed while import _visp. It seems to be different from the notice in the tutorial. I did add an environment variable named VISP_WINDOWS_DLL_PATH and added a few dll paths but still not working. I'm wondering is there missing a file named "_visp"? |
Hi, Good to hear you're making progress. Concerning the UTF-8 issue, i will add another fix so that PYTHONUTF8 no longer needs to be set. If you run What are the contents of your Sam |
Hi, So you have the base ViSP dlls in the correct location. In the last screen, could you show me the contents of the visp folder (E:....\site-packages\visp)? Sam |
@LeonFight You probably have a dll installed outside the conda environment that can't be found. The trick is to identify the one that is not found and add the path to this dll in an environment variable called To this end, we have found that the Process Monitor tool can be a great help. We recommend the following steps:
|
Hi @LeonFight , To find the other 3rd party dependencies, run the process monitor again and look for missing DLLs. I think that the Python import process stops when a single DLL cannot be loaded, so you might have to repeat the process multiple times. |
Hello,
I followed the tutorial to create the python bindings on Windows, but I cannot get the libvisp_[...].dll files to build in my conda environment .
The thing is that all the required dependencies are detected during the configuration:
Does somebody know if I am missing something ?
The text was updated successfully, but these errors were encountered: