Closed GoogleCodeExporter closed 9 years ago
Have you added the built python bindings to the path of the python executable?
Original comment by sloriot...@gmail.com
on 24 Jun 2013 at 10:15
As I am pretty new to python I am not sure what you are refering to. I tried
adding cgal-bindings\lib\Release to the PATH environment variable, because it
containts all the dlls, and in the python console I did
sys.path.append('C:\cgal-bindings\\build-python')
, where the \\ is to avoid conversion of \b to \x08. Both did not help.
Original comment by mario.de...@gmail.com
on 24 Jun 2013 at 10:32
Try googl-ing PYTHONPATH
Original comment by sloriot...@gmail.com
on 24 Jun 2013 at 3:01
Thank you. I seem to have fallen for the general confusion on paths in python.
But the problem persists after adding the variable PYTHONPATH to the
environment. It actually seems to have the equivalent effect of adding them
manually to sys.path each time. Where and in which file is the module CGAL
supposed to be found? My sys.path looks like this now:
>>> print(sys.path)
['', 'C:\\cgal-bindings\\lib\\Release', 'C:\\cgal-bindings\\lib\\Debug', 'C:\\cg
al-bindings\\build-python\\CGAL\\Release', 'C:\\cgal-bindings\\build-python\\CGA
L\\Debug', 'C:\\windows\\SYSTEM32\\python33.zip', 'C:\\Python33\\DLLs', 'C:\\Pyt
hon33\\lib', 'C:\\Python33', 'C:\\Python33\\lib\\site-packages']
Original comment by mario.de...@gmail.com
on 25 Jun 2013 at 2:12
PYTHONPATH should point to path PYTHON_OUTDIR_PREFIX in the file CMakeCache.txt
where you built the library
Original comment by sloriot...@gmail.com
on 26 Jun 2013 at 5:20
[deleted comment]
Thanks a lot, it finally works. However, I had to add the 3 paths to PYTHONPATH:
%PYTHON_OUTDIR_PREFIX%
%PYTHON_OUTDIR_PREFIX%\CGAL
%PYTHON_OUTDIR_PREFIX%\CGAL\Release
Original comment by mario.de...@gmail.com
on 26 Jun 2013 at 6:14
Original issue reported on code.google.com by
mario.de...@gmail.com
on 24 Jun 2013 at 10:08