-
Notifications
You must be signed in to change notification settings - Fork 2
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
Can't import torchmaxflowcpp, DLL load failed while importing #9
Comments
Hi @rayLemond , Many thanks for your interest. Can you please fill out the following bug report template and provide any additional detail that you think could be relevant for checking what is going wrong here: Describe the bug To Reproduce
Expected behavior Screenshots Desktop (please complete the following information):
Additional context |
Thanks for the response, i m using an anaconda virtual environment, here are the pacakage list:
torchmaxflow is installed by 'pip install torchmaxflow'. Open the demo project in PyCharm, then at the start of file './torchmaxflow/_ init _.py', the line 'import torchmaxflowcpp' reports bug 'No module name 'torchmaxflowcpp''. Then i run 'setup.py', and the above bug is gone, and i can see the code of 'torchmaxflowcpp.py' file. Then i run 'demo_maxflow.py' and got:
OS: Windows 10 Professional (21H1) |
Many thanks for providing further details. I will look into resolving this from package side.. however for now there are two workarounds that you could use to continue your work:
Please do let me know if you still experience issues with the proposed workarounds. I will get back with a PR to fix the issue within pypi package manager for long term solution.... however currently I am on vacation for Christmas, so this will be sometime in new year... |
Thank you for the comprehensive response, i do get the solutions. Sorry for interrupting the holiday, no hurry at all, it is just a trial run. Have fun, cheers! |
Hi masadcv, great work with torch support on this algo. I do pip install and try run the demo, it shows 'DLL load failed while importing torchmaxflowcpp'.
I see there is a 'torchmaxflow.cpp' file, but i don't know how to connect python with cpp.
The text was updated successfully, but these errors were encountered: