Closed dshguilherme closed 5 years ago
@dshguilherme could you please post the CMake logs too?
Log only says:
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:
CMakeLists.txt
file in the C:/Doutorado
directory? (I see the directory name on the screenshot)build
directory inside the cloned repo directory. That directory is ignored using .gitignore.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:
Uploading Output Log:
CMakeOutput.log
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: https://github.com/pybind/pybind11/issues/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 :)
Now, after installing it, I get AttributeError: module 'rw3dm' has no attribute 'read'.
So I tried opening the module and to my surprise it is a bunch of nonsense.
I'm starting to think that the best way is to scan points over my geometry and interpolate them...
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 v1.1.0
. I have also added the ability to call from rw3dm import *
import statement (after the installation of course).
@dshguilherme could you please check it again with the latest updates?
When running setup.py it gives errors:
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, python setup.py develop
or its pip counterpart should also work fine but you shouldn't delete the module installation directory.
I have select the Release in VS2017 now, and went through with the installation. Still, rw3dm doesn't seem to have any methods, as per the picture.
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: