GithubHelp home page GithubHelp logo

Error when importing PySwip about pyswip HOT 6 OPEN

yuce avatar yuce commented on May 23, 2024
Error when importing PySwip

from pyswip.

Comments (6)

steven-tey avatar steven-tey commented on May 23, 2024 13

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.

saraswat avatar saraswat commented on May 23, 2024

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.

ThePinger avatar ThePinger commented on May 23, 2024

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.

jBidya avatar jBidya commented on May 23, 2024

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.

HEmile avatar HEmile commented on May 23, 2024

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

This fixed it for me. Maybe the INSTALL README should reflect that this is the best way to install SWIPL on Mac?

from pyswip.

 avatar commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.