Comments (6)
What worked for me was that I had to import swi-prolog
using Homebrew as explained in this article: https://www.swi-prolog.org/build/macos.html
I was able to figure this out by reading the _findSwiplFromExec()
function in the core.py
file and turns out this error was because swi-prolog was not installed on my local system
from pyswip.
I face the same problem but with swipl 8.0.3, python 3.8 macOS Mojave (10.14.6).
So pyswip is unusable for me at this point :-(.
from pyswip.
I actually solved this problem, So first of all I had to use swipl 7.6.4 as that's the one that will work with macOS Mojave so you should downgrade to the 7.6.4 version and then try running the following commands:
export PATH=$PATH:/Applications/SWI-Prolog.app/Contents/swipl/bin/x86_64-darwin15.6.0
export DYLD_FALLBACK_LIBRARY_PATH=/Applications/SWI-Prolog.app/Contents/swipl/lib/x86_64-darwin15.6.0
I actually don't remember if that's all I needed for it to get working or not but I'm pretty sure that these steps helped. So if that didn't work tell me so I can remember what other steps needed.
from pyswip.
I actually solved this problem, So first of all I had to use swipl 7.6.4 as that's the one that will work with macOS Mojave so you should downgrade to the 7.6.4 version and then try running the following commands:
export PATH=$PATH:/Applications/SWI-Prolog.app/Contents/swipl/bin/x86_64-darwin15.6.0
export DYLD_FALLBACK_LIBRARY_PATH=/Applications/SWI-Prolog.app/Contents/swipl/lib/x86_64-darwin15.6.0
I actually don't remember if that's all I needed for it to get working or not but I'm pretty sure that these steps helped. So if that didn't work tell me so I can remember what other steps needed.
How to this the problem, i tried the solution you wrote but its not working.
from pyswip.
What worked for me was that I had to import
swi-prolog
using Homebrew as explained in this article: https://www.swi-prolog.org/build/macos.htmlI was able to figure this out by reading the
_findSwiplFromExec()
function in thecore.py
file and turns out this error was because swi-prolog was not installed on my local system
This fixed it for me. Maybe the INSTALL README should reflect that this is the best way to install SWIPL on Mac?
from pyswip.
I am having the same issues as described above, I am struggling with trying to solve the issue and my tutors at University don't seem to know how to use it! I am using swi-prolog 9 and pyswip in my project, any help would be much appreciated
from pyswip.
Related Issues (20)
- Errors on queries
- Powered by PySwip HOT 2
- Swipl DCG does not appear to function HOT 1
- Problem running the quick test code on Windows 11 HOT 2
- Compatibility with Mac M1 chip HOT 6
- How to clean prolog ?
- Error with SWI-Prolog v8.5.3 and pyswipl 0.2.10
- Error by using char '¬' as operator in prolog and translate it with pyswip
- pyswip cannot work with flask HOT 1
- Operating with dictionaries in pyswip
- Please provide support for M1 Macs HOT 2
- Core dump HOT 9
- pyswip incompatible with swi-prolog 9.0.0? HOT 6
- Could not find the SWI-Prolog library in this platform. HOT 3
- efficient way of adding and removing facts
- How do I use prolog's debug/trace mode in python HOT 1
- Reviewers
- Redefined static procedure after clearing Prolog() object HOT 1
- Problem in representing incomplete structures
- Powered by Pyswip HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyswip.