GithubHelp home page GithubHelp logo

pyswip test error about pyswip HOT 7 OPEN

yuce avatar yuce commented on May 26, 2024
pyswip test error

from pyswip.

Comments (7)

anlanxuan avatar anlanxuan commented on May 26, 2024 2

I have solved this problem,try to use the lower version.

Which version? I was using 8.2.4

Use python 3.6,SWI-Prolog 7.6.4 can run successfully

from pyswip.

yuce avatar yuce commented on May 26, 2024

Hi, I use Windows rarely, so not sure what's the problem is. Have you installed SWI-Prolog before PySwip?

from pyswip.

anlanxuan avatar anlanxuan commented on May 26, 2024

I have solved this problem,try to use the lower version.

from pyswip.

jarble avatar jarble commented on May 26, 2024

I also see this error when I try to use pyswip on Windows.

I tried to import pyswip:

from pyswip import Functor, Variable, Query, call

but then I saw this error message:

ERROR: The system was unable to find the specified registry key or value.
Traceback (most recent call last):
  File "test_generator.py", line 1, in <module>
    from pyswip import Functor, Variable, Query, call
  File "C:\Users\jarbl\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyswip\__init__.py", line 29, in <module>
    from pyswip.prolog import Prolog
  File "C:\Users\jarbl\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyswip\prolog.py", line 28, in <module>
    from pyswip.core import *
  File "C:\Users\jarbl\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyswip\core.py", line 568, in <module>
    (_path, SWI_HOME_DIR) = _findSwipl()
  File "C:\Users\jarbl\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyswip\core.py", line 411, in _findSwipl
    (path, swiHome) = _findSwiplWin()
  File "C:\Users\jarbl\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyswip\core.py", line 208, in _findSwiplWin
    match = pattern.match(ret[-1])
IndexError: list index out of range

What might be the cause of this error?

from pyswip.

AlucardNosferatu avatar AlucardNosferatu commented on May 26, 2024

I have solved this problem,try to use the lower version.

Which version? I was using 8.2.4

from pyswip.

AlucardNosferatu avatar AlucardNosferatu commented on May 26, 2024

I have solved this problem,try to use the lower version.

Which version? I was using 8.2.4

Use python 3.6,SWI-Prolog 7.6.4 can run successfully

I'll have a try, Thx!!!

from pyswip.

Nimrah009 avatar Nimrah009 commented on May 26, 2024

I also see this error when I try to use pyswip on Windows.

I tried to import pyswip:

from pyswip import Functor, Variable, Query, call

but then I saw this error message:

ERROR: The system was unable to find the specified registry key or value.
Traceback (most recent call last):
  File "test_generator.py", line 1, in <module>
    from pyswip import Functor, Variable, Query, call
  File "C:\Users\jarbl\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyswip\__init__.py", line 29, in <module>
    from pyswip.prolog import Prolog
  File "C:\Users\jarbl\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyswip\prolog.py", line 28, in <module>
    from pyswip.core import *
  File "C:\Users\jarbl\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyswip\core.py", line 568, in <module>
    (_path, SWI_HOME_DIR) = _findSwipl()
  File "C:\Users\jarbl\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyswip\core.py", line 411, in _findSwipl
    (path, swiHome) = _findSwiplWin()
  File "C:\Users\jarbl\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pyswip\core.py", line 208, in _findSwiplWin
    match = pattern.match(ret[-1])
IndexError: list index out of range

What might be the cause of this error?

Than, were you able to handle this problem?

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.