Re: pyliblo3 - %python3 setup.py test fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Miro,

thanks for your respond.

%check
# Set up the environment variables for running tests
%{py3_test_envvars}
%{python3} -m unittest discover

causes this error message

 cd pyliblo3-91d17815b911ccc2c1d1408412e7885c32f2d460
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ PATH=/home/martin/rpmbuild/BUILDROOT/pyliblo3-0.16.2-0.3.git91d1781.fc40.x86_64/usr/bin:/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/martin/.local/bin:/home/martin/bin
+ PYTHONPATH=/home/martin/rpmbuild/BUILDROOT/pyliblo3-0.16.2-0.3.git91d1781.fc40.x86_64/usr/lib64/python3.12/site-packages:/home/martin/rpmbuild/BUILDROOT/pyliblo3-0.16.2-0.3.git91d1781.fc40.x86_64/usr/lib/python3.12/site-packages
+ PYTHONDONTWRITEBYTECODE=1
+ PYTEST_ADDOPTS=' --ignore=/home/martin/rpmbuild/BUILD/pyliblo3-91d17815b911ccc2c1d1408412e7885c32f2d460/.pyproject-builddir'
+ PYTEST_XDIST_AUTO_NUM_WORKERS=2
+ PYTHONPATH=/home/martin/rpmbuild/BUILDROOT/pyliblo3-0.16.2-0.3.git91d1781.fc40.x86_64/usr/lib64/python3.12/site-packages:/home/martin/rpmbuild/BUILDROOT/pyliblo3-0.16.2-0.3.git91d1781.fc40.x86_64/usr/lib/python3.12/site-packages
+ /usr/bin/python3 -m unittest discover
E
======================================================================
ERROR: pyliblo3 (unittest.loader._FailedTest.pyliblo3)
----------------------------------------------------------------------
ImportError: Failed to import test module: pyliblo3
Traceback (most recent call last):
  File "/usr/lib64/python3.12/unittest/loader.py", line 429, in _find_test_path
    package = self._get_module_from_name(name)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/unittest/loader.py", line 339, in _get_module_from_name
    __import__(name)
  File "/home/martin/rpmbuild/BUILD/pyliblo3-91d17815b911ccc2c1d1408412e7885c32f2d460/pyliblo3/__init__.py", line 18, in <module>
    from ._liblo import *
ModuleNotFoundError: No module named 'pyliblo3._liblo'


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)

Regards
Martin
-- 
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux