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

Impossible to launch a file without error #69

Closed
thomasbenas opened this issue Oct 11, 2019 · 1 comment
Closed

Impossible to launch a file without error #69

thomasbenas opened this issue Oct 11, 2019 · 1 comment

Comments

@thomasbenas
Copy link

Hi,

When I try to run my file like this "python test.py'" I get an error like this:

Traceback (most recent call last): File "test.py", line 1, in <module> from pyswip import Prolog File "/home/thomas/pyswip_env/lib/python3.7/site-packages/pyswip/__init__.py", line 29, in <module> from pyswip.prolog import Prolog File "/home/thomas/pyswip_env/lib/python3.7/site-packages/pyswip/prolog.py", line 28, in <module> from pyswip.core import * File "/home/thomas/pyswip_env/lib/python3.7/site-packages/pyswip/core.py", line 568, in <module> (_path, SWI_HOME_DIR) = _findSwipl() File "/home/thomas/pyswip_env/lib/python3.7/site-packages/pyswip/core.py", line 428, in _findSwipl raise ImportError('Could not find the SWI-Prolog library in this ' ImportError: Could not find the SWI-Prolog library in this platform. If you are sure it is installed, please open an issue.

For information I am on Manjaro and swi-pl is well installed.

Thank you in advance.

@thomasbenas
Copy link
Author

I resolve myself my problem with a look of a pull request (#43) and add the hardcoded path for libswipl :

But for manjaro and not ubuntu like the pull request, always at line 257 in core.py

paths = ['/lib', '/usr/lib', '/usr/local/lib', '.', './lib', '/usr/lib/swipl/lib/x86_64-linux']

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

No branches or pull requests

1 participant