Skip to content
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

Python integration on windows 10 #123

Open
X-skyer opened this issue Nov 1, 2019 · 2 comments
Open

Python integration on windows 10 #123

X-skyer opened this issue Nov 1, 2019 · 2 comments

Comments

@X-skyer
Copy link

X-skyer commented Nov 1, 2019

when integrate mitsuba 0.6.0 64bit with python 3.6 64bit in win10 64:
import os, sys
sys.path.append('D:/RenderProject/mitsuba-0.6.0/dist/python/3.6')
os.environ['PATH'] = 'D:/RenderProject/mitsuba-0.6.0/dist' + os.pathsep + os.environ['PATH']
import mitsuba
i got the error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: DLL load failed while importing mitsuba: The specified module could not be found.

any one know how to solve this?

@Luvideria
Copy link

Similar error. I was building on linux (WSL) previously and couldn't build from source with 3.6 for some reason. Ended up trying on windows but I got the same issue as you.
Maybe prebuilt dependencies are the issue here?

@chaosink
Copy link
Contributor

  • Reason: mitsuba.pyd needs boost_python3-vc141-mt-1_64.dll (no minor version of Python) but there is only boost_python36-vc141-mt-1_64.dll.
    • Further reason: boost_python36-vc141-mt-1_64.lib is linked to mitsuba, and it says the symbol definitions are in boost_python3-vc141-mt-1_64.dll (no minor version of Python). So it's a bad behavior of Boost.Python.
  • Solution: Simply rename the dll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants