Skip to content
Snippets Groups Projects
Commit 3889770c authored by Kelvin Rodriguez's avatar Kelvin Rodriguez
Browse files

better error, made travis install python lib

parent 04551b28
Branches
Tags
No related merge requests found
...@@ -46,6 +46,7 @@ install: ...@@ -46,6 +46,7 @@ install:
script: script:
- PYTHONPATH=. pytest tests/pytests - PYTHONPATH=. pytest tests/pytests
- python setup.py install # install to use python lib in c code
- mkdir build - mkdir build
- cd build - cd build
- cmake -DCOVERAGE=ON .. - cmake -DCOVERAGE=ON ..
......
...@@ -313,7 +313,7 @@ namespace ale { ...@@ -313,7 +313,7 @@ namespace ale {
// Import the file as a Python module. // Import the file as a Python module.
PyObject *pModule = PyImport_Import(PyUnicode_FromString("ale")); PyObject *pModule = PyImport_Import(PyUnicode_FromString("ale"));
if(!pModule) { if(!pModule) {
throw runtime_error(getPyTraceback()); throw runtime_error("Failed to import ale. Make sure the ale python library is correctly installed.");
} }
// Create a dictionary for the contents of the module. // Create a dictionary for the contents of the module.
PyObject *pDict = PyModule_GetDict(pModule); PyObject *pDict = PyModule_GetDict(pModule);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment