Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test error and 'maraboupy.MarabouCore' error #721

Closed
jinqiang-yu opened this issue Feb 9, 2024 · 6 comments · Fixed by #827
Closed

Test error and 'maraboupy.MarabouCore' error #721

jinqiang-yu opened this issue Feb 9, 2024 · 6 comments · Fixed by #827

Comments

@jinqiang-yu
Copy link

jinqiang-yu commented Feb 9, 2024

There is an error shown as below:

The following tests FAILED:
	 28 - Test_SumOfInfeasibilitiesManager (Failed)
Errors while running CTest
make[2]: *** [build-tests] Error 8
make[1]: *** [CMakeFiles/build-tests.dir/all] Error 2
make: *** [all] Error 2

when I am on the last next shown below:

To build build both Marabou and Maraboupy using CMake, run:

cd path/to/marabou/repo/folder
mkdir build 
cd build
cmake .. -DBUILD_PYTHON=ON
cmake --build .
@wu-haoze
Copy link
Collaborator

wu-haoze commented Feb 9, 2024

Hi @jinqiang-yu , please ignore this error for now. It turns out that that particular test makes certain assumptions that do not hold across all platforms. I'll submit a fix to this issue.

@jinqiang-yu jinqiang-yu changed the title Mac ld error Test error and 'maraboupy.MarabouCore' error Feb 15, 2024
@jinqiang-yu
Copy link
Author

jinqiang-yu commented Feb 15, 2024

Thank you. I am using a Mac. When I tried from maraboupy import Marabou in Python, I got the following error: ModuleNotFoundError: No module named 'maraboupy.MarabouCore'

@wu-haoze
Copy link
Collaborator

Hi @jinqiang-yu please add Marabou/ to the system path.

import sys
sys.append(“path/to/Marabou”)
from maraboupy import …

@jinqiang-yu
Copy link
Author

jinqiang-yu commented Feb 18, 2024

I try the below:

import sys
sys.path.append("path/to/Marabou")
import maraboupy
from maraboupy import Marabou

I still got the same error:

from maraboupy.MarabouCore import *
ModuleNotFoundError: No module named 'maraboupy.MarabouCore'

@jinqiang-yu
Copy link
Author

jinqiang-yu commented Feb 19, 2024

I used a wrong version of Python. It works for me now when I use Python3.11. I am not sure if it is compulsory to use Python3.11.

@MatthewDaggitt
Copy link
Collaborator

It should work in versions 3.8-3.12. You will however need to use the same version of Python that you installed it with. Glad it's working for you now, so closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants