#875 Missing dependency on kobo-rpmlib
Closed Opened by ignatenkobrain.

py27 create: /home/brain/Projects/upstream/fm-orchestrator/.tox/py27
py27 installdeps: -r/home/brain/Projects/upstream/fm-orchestrator/test-requirements.txt
py27 develop-inst: /home/brain/Projects/upstream/fm-orchestrator
py27 installed: alembic==0.9.8,arrow==0.12.1,asn1crypto==0.23.0,attrs==17.4.0,Automat==0.6.0,backports.functools-lru-cache==1.5,backports.ssl-match-hostname==3.5.0.1,beanbag==1.9.2,beautifulsoup4==4.6.0,bodhi==3.3.0,bodhi-client==3.3.0,CCColUtils==1.5,cffi==1.11.2,chardet==3.0.4,click==6.7,configparser==3.5.0,constantly==15.1.0,copr==1.83,cryptography==2.1.4,cssselect==0.9.2,Cython==0.27.3,decorator==4.2.1,dogpile.cache==0.6.4,enum34==1.1.6,fedmsg==1.1.0,fedpkg==1.31,file-magic==0.3.0,flake8==3.5.0,Flask==0.12.2,Flask-Migrate==2.1.1,Flask-Script==2.0.6,Flask-SQLAlchemy==2.3.2,funcsigs==1.0.2,future==0.16.0,futures==3.2.0,gitdb2==2.0.3,GitPython==2.1.8,gpg==1.10.0,html5lib==0.999999999,httplib2==0.10.3,hyperlink==18.0.0,idna==2.5,incremental==17.5.0,iniparse==0.4,ipaddress==1.0.18,itsdangerous==0.24,Jinja2==2.10,kerberos==1.2.5,kitchen==1.2.5,kobo==0.7.0,koji==1.15.0,ldap3==2.4.1,lockfile==0.11.0,lxml==4.1.1,M2Crypto==0.29.0,m2ext==0.1,Mako==1.0.7,MarkupSafe==1.0,marshmallow==2.15.0,mccabe==0.6.1,mock==2.0.0,-e git+pagure:fm-orchestrator@7a9927760d946786f0c8830b38f88ada4230a7e2#egg=module_build_service,modulemd==1.3.3,moksha.common==1.2.5,moksha.hub==1.5.3,munch==2.2.0,nose==1.3.7,offtrac==0.1.0,openidc-client==0.4.0,packagedb-cli==2.14.1,pbr==3.1.1,pdc-client==1.8.0,pluggy==0.6.0,ply==3.9,psutil==5.4.3,py==1.5.2,pyasn1==0.4.2,pycodestyle==2.3.1,pycparser==2.14,pycurl==7.43.0,pyflakes==1.6.0,pyliblzma==0.5.3,pyOpenSSL==17.3.0,PySocks==1.6.8,pytest==3.4.1,python-bugzilla==2.1.0,python-dateutil==2.6.1,python-editor==1.0.3,python-fedora==0.10.0,python-krbV==1.0.90,python-yubico==1.3.2,pytz==2018.3,pyusb==1.0.0,PyYAML==3.12,pyzmq==17.0.0,requests==2.18.4,requests-kerberos==0.12.0,requests-toolbelt==0.8.0,rhmsg==0.7,rhpkg==1.33,rpkg==1.51,rpm==4.14.1,rpm-py-installer==0.6.0,rpmdiff==4.3,six==1.11.0,smartcols==0.3.0,smmap2==2.0.3,SQLAlchemy==1.2.4,tabulate==0.8.2,tox==2.9.1,Twisted==17.9.0,txWS==0.9.1,txZMQ==0.8.0,typing==3.6.4,urllib3==1.22,virtualenv==15.1.0,webencodings==0.5.1,Werkzeug==0.14.1,zope.interface==4.4.3
py27 runtests: PYTHONHASHSEED='3611659226'
py27 runtests: commands[0] | py.test -v
Traceback (most recent call last):
  File "/home/brain/Projects/upstream/fm-orchestrator/.tox/py27/lib/python2.7/site-packages/_pytest/config.py", line 366, in _importconftest
    mod = conftestpath.pyimport()
  File "/home/brain/Projects/upstream/fm-orchestrator/.tox/py27/lib/python2.7/site-packages/py/_path/local.py", line 668, in pyimport
    __import__(modname)
  File "/home/brain/Projects/upstream/fm-orchestrator/tests/__init__.py", line 31, in <module>
    import module_build_service
  File "/home/brain/Projects/upstream/fm-orchestrator/module_build_service/__init__.py", line 177, in <module>
    load_views()
  File "/home/brain/Projects/upstream/fm-orchestrator/module_build_service/__init__.py", line 105, in load_views
    from module_build_service import views
  File "/home/brain/Projects/upstream/fm-orchestrator/module_build_service/views.py", line 35, in <module>
    from module_build_service.utils import (
  File "/home/brain/Projects/upstream/fm-orchestrator/module_build_service/utils.py", line 32, in <module>
    import kobo.rpmlib
ImportError: No module named rpmlib
ERROR: could not load /home/brain/Projects/upstream/fm-orchestrator/tests/conftest.py

We require kobo in requirements.txt and the tests pass in CentOS CI without a problem:
https://ci.centos.org/job/factory2-fm-orchestrator/job/master/

Now sure why this is happening...

@ignatenkobrain what'd you end up doing to resolve this on your end?

In IRC @ignatenkobrain mentioned that he had to install python2-kobo-rpmlib. This is likely from PR #876 now using site_packages (we need to for libsolv) when running tox. Since this problem isn't on master, let's close it but we need to figure out a way to run tests consistently in tox across systems (maybe a container?).

Metadata Update from @mprahl:
- Issue status updated to: Closed (was: Open)

I filed #877 as a follow up ticket

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/mbs/issues/875

Please continue any further discussion there.

Metadata