Bug 1706106

Summary: python-pyswip fails to build
Product: [Fedora] Fedora Reporter: Patrik Kopkan <pkopkan>
Component: python-pyswipAssignee: Till Hofmann <thofmann>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: mhroncok, thofmann
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-07 06:57:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1700317, 1686977, 1732841    
Attachments:
Description Flags
build log from COPR https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00902552-python-pyswip/builder-live.log none

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.