[Installation Error, Python] ModuleNotFoundError when running test_python

148 views
Skip to first unread message

Tiria Andersen

unread,
Mar 8, 2020, 10:19:17 PM3/8/20
to or-tools-discuss
Hi guys,

I am trying to get or-tools running with python. 
I originally cloned & compiled for C++ and that solves perfectly fine. 

I cloned the source code (version 7.5) again into a different directory, and ran:
tools\make third_party
tools\make python
without any errors. 

But when running tools\make test_python, it solves the first 3 problems, then chucks:

set PYTHONPATH=C:\\Users\\jc321076\\Documents\\PhD\\github\\Autonomous_DSVRP\\or-tools;C:\\Users\\jc321076\\Documents\\PhD\\github\\Autonomous_DSVRP\\or-tools\\dependencies\\sources\\protobuf-3.11.2\\python && "C:\Users\jc321076\AppData\Local\Programs\Python\Python37\python.exe" ortools\\constraint_solver\\samples\\simple_routing_program.py
Traceback (most recent call last):
  File "ortools\\constraint_solver\\samples\\simple_routing_program.py", line 18, in <module>
    from ortools.constraint_solver import routing_enums_pb2
  File "C:\Users\jc321076\Documents\PhD\github\Autonomous_DSVRP\or-tools\ortools\constraint_solver\..\gen\ortools\constraint_solver\routing_enums_pb2.py", line 5, in <module>
    from google.protobuf import descriptor as _descriptor
  File "C:\Users\jc321076\Documents\PhD\github\Autonomous_DSVRP\or-tools\dependencies\sources\protobuf-3.11.2\python\google\protobuf\descriptor.py", line 38, in <module>
    import six
ModuleNotFoundError: No module named 'six'
tools\make: *** [rpy_simple_routing_program] Error 1


Any ideas on why it's doing this?


(I have all the up-to-date requirements:
Windows 10 64-bit
MS VS Community 2019
Git, CMake

I tested python requirements as per guide:
Python 3.7.2
64bit
pip 18.1 from C:\Users\jc321076\AppData\Local\Programs\Python\Python37\lib\site-packages\pip (python 3.7)

And I am using x64 Native Tools Command Prompt for VS 2019)


Thanks,
Tiria

Laurent Perron

unread,
Mar 9, 2020, 2:12:50 AM3/9/20
to or-tools-discuss
pip install six

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/462254d6-b58f-4c1b-b0ac-9c7e1657195c%40googlegroups.com.

Tiria Andersen

unread,
Mar 10, 2020, 12:53:47 AM3/10/20
to or-tools-discuss
ahh, right. It worked, thanks :)
Reply all
Reply to author
Forward
0 new messages