-
Notifications
You must be signed in to change notification settings - Fork 12
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
Difficulties in installing the 3dm Import Module #1
Comments
@dshguilherme could you please post the CMake logs too? |
Could you also post the logs in the CMake GUI too? I can only see "Configuring incomplete" part on the screenshot. I have also some preliminary guesses for the solution:
|
After tweaking a lot with CMake (I was missing some key Visual Basic packages), I'm currently now stuck with CMake/Python problems. Namely this: |
It seems pybind11 isn't able to detect a cpython interpreter: https://github.com/pybind/pybind11/blob/9a19306fbf30642ca331d0ec88e7da54a96860f9/tools/FindPythonLibsNew.cmake#L96 Additionally, it seems a decent problem though: pybind/pybind11#236 I will see what I can do (however, I don't think I can do anything to fix a pybind11 issue) but in the meantime, you can try the following super simple solutions. Please note that these super simple solutions don't mean they are correct: Solution 1:
Solution 2:
|
Solution 1 worked and make CMake run! Great. Now to work on those Rhino -> NURBS-Python... :) Thanks a lot! |
It is good to know that you figured it out :) |
That's a binary file actually :) and it looks like a Python egg file, i.e. a zipped module. It should work fine, though. By looking at the error, I suspect that you might be using a different python version than you compiled the module for. That also happens when you compile the Python module with Debug option selected in Visual Studio. Please try to compile it with Release option selected. |
I am reopening this issue as I have found a problem in generation of Python wheel files and fixed it with the release of @dshguilherme could you please check it again with the latest updates? |
What I see from the screenshot is that
I haven't added any information to choose Release version as some people might actually want to debug the module to add more features. Python's debug and regular versions are different, different module names and even different interpreters and it is possible to debug CPython modules with Visual Studio (and gdb, if you would like to accept the challenge :)) In any case, |
FIXED. Apparently I was missing the "from rw3dm import rw3dm". Not it finally works! Thanks for being patient and helping me along this :) I'll surely cite rw3dm and NURBS-Python on my publications and properly thank you in the works. |
Describe the bug
CMake 3.13.2 gives out Error when following the Installing procedure.
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: