mhogg / pyoctree

Octree structure containing a 3D triangular mesh model
MIT License
86 stars 19 forks source link

Fatal error C1083: Cannot open source file: 'pyoctree/pyoctree.cpp' #41

Open abgbaumann opened 5 years ago

abgbaumann commented 5 years ago

Good "morning",

I tried to install pyoctree on my Windows 10 computer and I received a fatal error C1083 where a cpp file is missing. Is this a known error or did I do something wrong?

Best, Andreas

python setup.py install
running install
running bdist_egg
running egg_info
writing pyoctree.egg-info\PKG-INFO
writing dependency_links to pyoctree.egg-info\dependency_links.txt
writing requirements to pyoctree.egg-info\requires.txt
writing top-level names to pyoctree.egg-info\top_level.txt
reading manifest file 'pyoctree.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.pyd' under directory 'pyoctree'
writing manifest file 'pyoctree.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
building 'pyoctree.pyoctree' extension
C:\Program Files (x86)\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\abaumann\.conda\envs\Simulator_20190722_V0.01\include -IC:\Users\abaumann\.conda\envs\Simulator_20190722_V0.01\include -IC:\Users\abaumann\.conda\envs\Simulator_20190722_V0.01\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.14.26428\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.14.26428\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /EHsc /Tppyoctree/pyoctree.cpp /Fobuild\temp.win-amd64-3.7\Release\pyoctree/pyoctree.obj
pyoctree.cpp
c1xx: fatal error C1083: Cannot open source file: 'pyoctree/pyoctree.cpp': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
mhogg commented 5 years ago

Good "evening" Andreas,

The pyoctree.cpp file is created from the pyoctree.pyx file using Cython. If you don't want to generate it yourself, download pyoctree from PyPi (i.e. download pyoctree-0.2.10.tar.gz from https://pypi.org/project/pyoctree/#files). It comes with the pyoctree.cpp file included. Note that the source files on Github do not come with this cpp file, as it is a generated file. My guess is that you downloaded pyoctree from Github, which is why it didn't work for you.

Or just download the wheel (if you are using Python 3.6 that is).

Cheers, Michael