Hi There,
I’ve tried with python 3.6, 3.7 and 3.9 with each version i’m getting the errors shown below.
This user had a similar problem, where the package appears to need compiling
I’m using a virtualenv with PyCharm, but i’ve also tried to do user install as per GitHub - mcneel/rhino3dm: Libraries based on OpenNURBS with a RhinoCommon style
Am i doing something wrong here?
rhino3dm · PyPI lists all these version as supported
any advice appreciated
Microsoft Windows [Version 10.0.19042.1052]
(c) Microsoft Corporation. All rights reserved.
(venv) C:\Users\dharman.gersch\Documents\rhino_compute_demo>pip install rhino3dm
Collecting rhino3dm
Using cached rhino3dm-7.7.0.tar.gz (5.5 MB)
Using legacy 'setup.py install' for rhino3dm, since package 'wheel' is not installed.
Installing collected packages: rhino3dm
Running setup.py install for rhino3dm ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\dharman.gersch\documents\rhino_compute_demo\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dharman.gersch\\AppData\\Local\\Temp\\1\\pip-install-33ysowif\\
rhino3dm_b2ab0aef70c24916b6a6761f8d94ea13\\setup.py'"'"'; __file__='"'"'C:\\Users\\dharman.gersch\\AppData\\Local\\Temp\\1\\pip-install-33ysowif\\rhino3dm_b2ab0aef70c24916b6a6761f8d94ea13\\setup.py'"'"';f = getattr(tokenize, '"'"'open'
"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install
--record 'C:\Users\dharman.gersch\AppData\Local\Temp\1\pip-record-5_sgw3v_\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\dharman.gersch\documents\rhino_compute_demo\venv\include\site\pyth
on3.7\rhino3dm'
cwd: C:\Users\dharman.gersch\AppData\Local\Temp\1\pip-install-33ysowif\rhino3dm_b2ab0aef70c24916b6a6761f8d94ea13\
Complete output (72 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\rhino3dm
copying src\rhino3dm\__init__.py -> build\lib.win32-3.7\rhino3dm
running egg_info
writing src\rhino3dm.egg-info\PKG-INFO
writing dependency_links to src\rhino3dm.egg-info\dependency_links.txt
writing top-level names to src\rhino3dm.egg-info\top_level.txt
reading manifest file 'src\rhino3dm.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.pyd' under directory 'src\rhino3dm'
warning: no files found matching '*.so' under directory 'src\rhino3dm'
adding license file 'LICENSE'
writing manifest file 'src\rhino3dm.egg-info\SOURCES.txt'
copying src\rhino3dm\__init__.pyi -> build\lib.win32-3.7\rhino3dm
copying src\rhino3dm\py.typed -> build\lib.win32-3.7\rhino3dm
running build_ext
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:2 (project):
Generator
NMake Makefiles
does not support platform specification, but platform
win32
was specified.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/dharman.gersch/AppData/Local/Temp/1/pip-install-33ysowif/rhino3dm_b2ab0aef70c24916b6a6761f8d94ea13/build/temp.win32-3.7/Release/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\dharman.gersch\AppData\Local\Temp\1\pip-install-33ysowif\rhino3dm_b2ab0aef70c24916b6a6761f8d94ea13\setup.py", line 150, in <module>
include_package_data=True
File "c:\users\dharman.gersch\documents\rhino_compute_demo\venv\lib\site-packages\setuptools\__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "C:\Users\dharman.gersch\AppData\Local\Programs\Python\Python37-32\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\dharman.gersch\AppData\Local\Programs\Python\Python37-32\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Users\dharman.gersch\AppData\Local\Programs\Python\Python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\dharman.gersch\documents\rhino_compute_demo\venv\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Users\dharman.gersch\AppData\Local\Programs\Python\Python37-32\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Users\dharman.gersch\AppData\Local\Programs\Python\Python37-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\dharman.gersch\AppData\Local\Programs\Python\Python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\dharman.gersch\AppData\Local\Programs\Python\Python37-32\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\dharman.gersch\AppData\Local\Programs\Python\Python37-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\dharman.gersch\AppData\Local\Programs\Python\Python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\dharman.gersch\AppData\Local\Temp\1\pip-install-33ysowif\rhino3dm_b2ab0aef70c24916b6a6761f8d94ea13\setup.py", line 45, in run
self.build_extension(ext)
File "C:\Users\dharman.gersch\AppData\Local\Temp\1\pip-install-33ysowif\rhino3dm_b2ab0aef70c24916b6a6761f8d94ea13\setup.py", line 90, in build_extension
system(command)
File "C:\Users\dharman.gersch\AppData\Local\Temp\1\pip-install-33ysowif\rhino3dm_b2ab0aef70c24916b6a6761f8d94ea13\setup.py", line 20, in system
raise RuntimeError('The command "{}" exited with {}'.format(cmd, rc))
RuntimeError: The command "cmake -A win32 -DPYTHON_EXECUTABLE:FILEPATH="c:\users\dharman.gersch\documents\rhino_compute_demo\venv\scripts\python.exe" "C:\Users\dharman.gersch\AppData\Local\Temp\1\pip-install-33ysowif\rhino3dm_b2ab0
aef70c24916b6a6761f8d94ea13/src"" exited with 1
extdir = C:\Users\dharman.gersch\AppData\Local\Temp\1\pip-install-33ysowif\rhino3dm_b2ab0aef70c24916b6a6761f8d94ea13\build\lib.win32-3.7\rhino3dm
sourcedirC:\Users\dharman.gersch\AppData\Local\Temp\1\pip-install-33ysowif\rhino3dm_b2ab0aef70c24916b6a6761f8d94ea13
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\dharman.gersch\documents\rhino_compute_demo\venv\scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dharman.gersch\\AppData\\Local
\\Temp\\1\\pip-install-33ysowif\\rhino3dm_b2ab0aef70c24916b6a6761f8d94ea13\\setup.py'"'"'; __file__='"'"'C:\\Users\\dharman.gersch\\AppData\\Local\\Temp\\1\\pip-install-33ysowif\\rhino3dm_b2ab0aef70c24916b6a6761f8d94ea13\\setup.py'"'"'
;f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __f
ile__, '"'"'exec'"'"'))' install --record 'C:\Users\dharman.gersch\AppData\Local\Temp\1\pip-record-5_sgw3v_\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\dharman.gersch\documents\rhino_co
mpute_demo\venv\include\site\python3.7\rhino3dm' Check the logs for full command output.