pyswip broken

134 views
Skip to first unread message

Hakjin Kim

unread,
Sep 10, 2019, 5:20:10 AM9/10/19
to pyswip
In swipl version 8.1.13, pyswip is broken.

When trying to "from pyswip.core import *" in the python repl, it generates the help message of swipl and goes to the terminal prompt.

>>> from pyswip.core import *
/usr/lib/swi-prolog/lib/x86_64-linux/libswipl.so
swipl: Usage:
    1) swipl [options] prolog-file ... [-- arg ...]
    2) swipl [options] [-o executable] -c prolog-file ...
    3) swipl --help     Display this message (also -h)
    4) swipl --version  Display version information
    4) swipl --arch     Display architecture
    6) swipl --dump-runtime-variables[=format]
                        Dump link info in sh(1) format

Options:
    -x state                 Start from state (must be first)
    -g goal                  Run goal (may be repeated)
    -t toplevel              Toplevel goal
    -f file                  User initialisation file
    -F file                  Site initialisation file
    -l file                  Script source file
    -s file                  Script source file
    -p alias=path            Define file search path 'alias'
    -O                       Optimised compilation
    --tty[=bool]             (Dis)allow tty control
    --signals[=bool]         Do (not) modify signal handling
    --threads[=bool]         Do (not) allow for threads
    --debug[=bool]           Do (not) generate debug info
    --quiet[=bool] (-q)      Do (not) suppress informational messages
    --traditional            Disable extensions of version 7
    --home=DIR               Use DIR as SWI-Prolog home
    --stack_limit=size[BKMG] Specify maximum size of Prolog stacks
    --table_space=size[BKMG] Specify maximum size of SLG tables
    --shared_table_space=size[BKMG] Maximum size of shared SLG tables
    --pce[=bool]             Make the xpce gui available
    --pldoc[=port]           Start PlDoc server [at port]

Boolean options may be written as --name=bool, --name, --no-name or --noname




marceloXD978

unread,
Sep 25, 2019, 11:17:14 AM9/25/19
to pyswip

I had the same problem as you. You need to install the stable version of prolog, in this case is the 8.0.3 version. Your version is the current developer version. Doing this  solved my problem. Hope that this will help you.

Reply all
Reply to author
Forward
0 new messages