Bug 1706106 - python-pyswip fails to build
Summary: python-pyswip fails to build
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: python-pyswip
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Till Hofmann
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F31FTBFS PYTHON38 1732841
TreeView+ depends on / blocked
 
Reported: 2019-05-03 14:45 UTC by Patrik Kopkan
Modified: 2019-07-31 22:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-07 06:57:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
build log from COPR https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00902552-python-pyswip/builder-live.log (99.94 KB, text/plain)
2019-05-03 14:45 UTC, Patrik Kopkan
no flags Details

Description Patrik Kopkan 2019-05-03 14:45:01 UTC
Created attachment 1562513 [details]
build log from COPR https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00902552-python-pyswip/builder-live.log

python-pyswip-0.2.7-6 fails to build with python3.7 tests fails on same ImportError.


koji build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=34601031


output from pytest:
==================================== ERRORS ====================================
___________________ ERROR collecting tests/test_examples.py ____________________
ImportError while importing test module '/builddir/build/BUILD/pyswip-0.2.7/tests/test_examples.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_examples.py:31: in <module>
    from pyswip import *
pyswip/__init__.py:29: in <module>
    from pyswip.prolog import Prolog
pyswip/prolog.py:28: in <module>
    from pyswip.core import *
pyswip/core.py:568: in <module>
    (_path, SWI_HOME_DIR) = _findSwipl()
pyswip/core.py:428: in _findSwipl
    raise ImportError('Could not find the SWI-Prolog library in this '
E   ImportError: Could not find the SWI-Prolog library in this platform. If you are sure it is installed, please open an issue.
------------------------------- Captured stderr --------------------------------
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
    --pldoc[=port]           Start PlDoc server [at port]

Boolean options may be written as --name=bool, --name, --no-name or --noname
____________________ ERROR collecting tests/test_prolog.py _____________________
ImportError while importing test module '/builddir/build/BUILD/pyswip-0.2.7/tests/test_prolog.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_prolog.py:34: in <module>
    import pyswip.prolog as pl   # This implicitly tests library loading code
pyswip/__init__.py:29: in <module>
    from pyswip.prolog import Prolog
pyswip/prolog.py:28: in <module>
    from pyswip.core import *
pyswip/core.py:568: in <module>
    (_path, SWI_HOME_DIR) = _findSwipl()
pyswip/core.py:428: in _findSwipl
    raise ImportError('Could not find the SWI-Prolog library in this '
E   ImportError: Could not find the SWI-Prolog library in this platform. If you are sure it is installed, please open an issue.
------------------------------- Captured stderr --------------------------------
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
    --pldoc[=port]           Start PlDoc server [at port]

Boolean options may be written as --name=bool, --name, --no-name or --noname
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 2 error in 0.37 seconds ============================

Comment 1 Patrik Kopkan 2019-05-03 14:58:59 UTC
* and fails to build on python3.8

Comment 2 Till Hofmann 2019-05-06 06:27:53 UTC
This is due to the retirement of SWI Prolog (pl in Fedora). I'll retire this package, too.

Comment 3 Till Hofmann 2019-05-07 06:57:59 UTC
The package python-pyswip is retired now.


Note You need to log in before you can comment on or make changes to this bug.