Project

General

Profile

Actions

action #102584

closed

openqa_review: Cannot run tox successfully locally

Added by tinita over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2021-11-17
Due date:
% Done:

0%

Estimated time:

Description

When running tox in http://os-autoinst.github.io/openqa_review I get various errors.
Only tox -e cov runs successfully (well, it fails currently on master, but that is expected, and it is executed correctly).

% tox
GLOB sdist-make: /home/tina/openqa-devel/repos/openqa_review/setup.py                                                   
flake8 inst-nodeps: /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip                                                                                                                                  
WARNING:Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration.                                                                                                                             
ERROR: invocation failed (exit code 1), logfile: /home/tina/openqa-devel/repos/openqa_review/.tox/flake8/log/flake8-24.log                                                                                                                      
ERROR: actionid: flake8                                                                                                                                                                                                                         
msg: installpkg                                                                                                                                                                                                                                 cmdargs: ['/home/tina/openqa-devel/repos/openqa_review/.tox/flake8/bin/pip', 'install', '-U', '--no-deps', '/home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip']
                                                                                                                                                                                                                                                Processing ./.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip                                                                                                                                                                                     
  Installing build dependencies: started                                                                                                                                                                                                          Installing build dependencies: finished with status 'done'                                                          
  Getting requirements to build wheel: started                                                                                                                                                                                                    Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started                                                                                                                                                                                                  
  Preparing metadata (pyproject.toml): finished with status 'done'                                                                                                                                                                              Building wheels for collected packages: openqa-review                                                                                                                                                                                           
  Building wheel for openqa-review (pyproject.toml): started                                                                                                                                                                                      Building wheel for openqa-review (pyproject.toml): finished with status 'done'                            
  Created wheel for openqa-review: filename=openqa_review-1.25.0_72_g7fc883a-py3-none-any.whl size=43648 sha256=205abb71e2fcb53a4c4b3c0792c3b1d65c29fa634463cd06c1da28c6c5126a52
  Stored in directory: /home/tina/.cache/pip/wheels/76/3b/15/ac3b33683af4670706df887c8021b0a41c48a3a62ada04c25a                                                                                                                                 
  WARNING: Built wheel for openqa-review is invalid: Metadata 1.2 mandates PEP 440 version, but '1.25.0-72-g7fc883a' is not
Failed to build openqa-review
ERROR: Could not build wheels for openqa-review, which is required to install pyproject.toml-based projects

flake8 installed: appdirs==1.4.4,beautifulsoup4==4.9.3,black==21.5b1,certifi==2020.12.5,chardet==4.0.0,click==8.0.1,dataclasses==0.8,flake8==3.9.2,flake8-black==0.2.1,flake8-docstrings==1.6.0,flake8-polyfill==1.0.2,flake8-quotes==3.2.0,futu
re==0.18.2,humanfriendly==9.1,idna==2.10,importlib-metadata==4.2.0,mccabe==0.6.1,mypy-extensions==0.4.3,openqa-review===1.20.4-12-gfa18f7b,pathspec==0.8.1,pep8-naming==0.11.1,pika==1.2.0,pycodestyle==2.7.0,pydocstyle==6.1.1,pyflakes==2.3.1,
PyYAML==5.4.1,regex==2021.4.4,requests==2.25.1,snowballstemmer==2.1.0,sortedcontainers==2.4.0,soupsieve==2.2.1,toml==0.10.2,typed-ast==1.4.3,typing-extensions==3.10.0.0,urllib3==1.26.5,zipp==3.4.1
black inst-nodeps: /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip
ERROR: invocation failed (exit code 1), logfile: /home/tina/openqa-devel/repos/openqa_review/.tox/black/log/black-18.log 
ERROR: actionid: black
msg: installpkg
cmdargs: ['/home/tina/openqa-devel/repos/openqa_review/.tox/black/bin/pip', 'install', '-U', '--no-deps', '/home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip']

Processing ./.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done' 
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: openqa-review
  Building wheel for openqa-review (pyproject.toml): started 
  Building wheel for openqa-review (pyproject.toml): finished with status 'done'
  Created wheel for openqa-review: filename=openqa_review-1.25.0_72_g7fc883a-py3-none-any.whl size=43648 sha256=116f56ad5d74eb5b98585d9f4d16144af498391480e554dc823eba002b8233e6
  Stored in directory: /home/tina/.cache/pip/wheels/76/3b/15/ac3b33683af4670706df887c8021b0a41c48a3a62ada04c25a
  WARNING: Built wheel for openqa-review is invalid: Metadata 1.2 mandates PEP 440 version, but '1.25.0-72-g7fc883a' is not
Failed to build openqa-review
ERROR: Could not build wheels for openqa-review, which is required to install pyproject.toml-based projects

black installed: appdirs==1.4.4,beautifulsoup4==4.9.3,black==21.5b1,certifi==2020.12.5,chardet==4.0.0,click==8.0.1,dataclasses==0.8,future==0.18.2,humanfriendly==9.1,idna==2.10,importlib-metadata==4.2.0,mypy-extensions==0.4.3,openqa-review=
==1.20.4-12-gfa18f7b,pathspec==0.8.1,pika==1.2.0,PyYAML==5.4.1,regex==2021.4.4,requests==2.25.1,sortedcontainers==2.4.0,soupsieve==2.2.1,toml==0.10.2,typed-ast==1.4.3,typing-extensions==3.10.0.0,urllib3==1.26.5,zipp==3.4.1
doctests inst-nodeps: /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip
ERROR: invocation failed (exit code 1), logfile: /home/tina/openqa-devel/repos/openqa_review/.tox/doctests/log/doctests-20.log
ERROR: actionid: doctests
msg: installpkg
cmdargs: ['/home/tina/openqa-devel/repos/openqa_review/.tox/doctests/bin/pip', 'install', '-U', '--no-deps', '/home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip']

Processing ./.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done' 
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: openqa-review
  Building wheel for openqa-review (pyproject.toml): started 
  Building wheel for openqa-review (pyproject.toml): finished with status 'done'
  Created wheel for openqa-review: filename=openqa_review-1.25.0_72_g7fc883a-py3-none-any.whl size=43648 sha256=800a61f1c6246e875cfa01e84a7e36eecd906ec73431825c16a1d8e7e0477c62
  Stored in directory: /home/tina/.cache/pip/wheels/76/3b/15/ac3b33683af4670706df887c8021b0a41c48a3a62ada04c25a
  WARNING: Built wheel for openqa-review is invalid: Metadata 1.2 mandates PEP 440 version, but '1.25.0-72-g7fc883a' is not
Failed to build openqa-review
ERROR: Could not build wheels for openqa-review, which is required to install pyproject.toml-based projects

doctests installed: attrs==21.2.0,beautifulsoup4==4.9.3,certifi==2020.12.5,chardet==4.0.0,future==0.18.2,humanfriendly==9.1,idna==2.10,importlib-metadata==4.2.0,iniconfig==1.1.1,openqa-review===1.20.4-12-gfa18f7b,packaging==20.9,pika==1.2.0
,pluggy==0.13.1,py==1.10.0,pyparsing==2.4.7,pytest==6.2.4,pytest-doc==0.0.1,PyYAML==5.4.1,requests==2.25.1,sortedcontainers==2.4.0,soupsieve==2.2.1,toml==0.10.2,typing-extensions==3.10.0.0,urllib3==1.26.5,zipp==3.4.1
py36 inst-nodeps: /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip
ERROR: invocation failed (exit code 1), logfile: /home/tina/openqa-devel/repos/openqa_review/.tox/py36/log/py36-24.log
ERROR: actionid: py36
msg: installpkg
cmdargs: ['/home/tina/openqa-devel/repos/openqa_review/.tox/py36/bin/pip', 'install', '-U', '--no-deps', '/home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip']

Processing ./.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done' 
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: openqa-review
  Building wheel for openqa-review (pyproject.toml): started 
  Building wheel for openqa-review (pyproject.toml): finished with status 'done'
  Created wheel for openqa-review: filename=openqa_review-1.25.0_72_g7fc883a-py3-none-any.whl size=43648 sha256=a04636bba9bebc3d64e126fdecf250db74255a89eecfd82a993f3132a94c1228
  Stored in directory: /home/tina/.cache/pip/wheels/76/3b/15/ac3b33683af4670706df887c8021b0a41c48a3a62ada04c25a
  WARNING: Built wheel for openqa-review is invalid: Metadata 1.2 mandates PEP 440 version, but '1.25.0-72-g7fc883a' is not
Failed to build openqa-review
ERROR: Could not build wheels for openqa-review, which is required to install pyproject.toml-based projects

py36 installed: attrs==21.2.0,beautifulsoup4==4.9.3,certifi==2020.12.5,chardet==4.0.0,future==0.18.2,humanfriendly==9.1,idna==2.10,importlib-metadata==4.2.0,iniconfig==1.1.1,openqa-review===1.20.4-12-gfa18f7b,packaging==20.9,pika==1.2.0,plu
ggy==0.13.1,py==1.10.0,pyparsing==2.4.7,pytest==6.2.4,pytest-mock==3.6.1,PyYAML==5.4.1,requests==2.25.1,sortedcontainers==2.4.0,soupsieve==2.2.1,toml==0.10.2,typing-extensions==3.10.0.0,urllib3==1.26.5,zipp==3.4.1
py37 create: /home/tina/openqa-devel/repos/openqa_review/.tox/py37
ERROR: InterpreterNotFound: python3.7
py38 inst-nodeps: /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip
ERROR: invocation failed (exit code 1), logfile: /home/tina/openqa-devel/repos/openqa_review/.tox/py38/log/py38-26.log
ERROR: actionid: py38
msg: installpkg
cmdargs: ['/home/tina/openqa-devel/repos/openqa_review/.tox/py38/bin/pip', 'install', '-U', '--no-deps', '/home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip']

Processing ./.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done' 
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: openqa-review
  Building wheel for openqa-review (pyproject.toml): started 
  Building wheel for openqa-review (pyproject.toml): finished with status 'done'
  Created wheel for openqa-review: filename=openqa_review-1.25.0_72_g7fc883a-py3-none-any.whl size=43648 sha256=eccffecaf0ecc923020b0592da352107c4e7433d9ea092b40003409c931b11e5
  Stored in directory: /home/tina/.cache/pip/wheels/76/3b/15/ac3b33683af4670706df887c8021b0a41c48a3a62ada04c25a
  WARNING: Built wheel for openqa-review is invalid: Metadata 1.2 mandates PEP 440 version, but '1.25.0-72-g7fc883a' is not
Failed to build openqa-review
ERROR: Could not build wheels for openqa-review, which is required to install pyproject.toml-based projects

py38 installed: attrs==21.2.0,beautifulsoup4==4.9.3,certifi==2020.12.5,chardet==4.0.0,future==0.18.2,humanfriendly==9.1,idna==2.10,importlib-metadata==4.2.0,iniconfig==1.1.1,openqa-review===1.20.4-12-gfa18f7b,packaging==20.9,pika==1.2.0,plu
ggy==0.13.1,py==1.10.0,pyparsing==2.4.7,pytest==6.2.4,pytest-mock==3.6.1,PyYAML==5.4.1,requests==2.25.1,sortedcontainers==2.4.0,soupsieve==2.2.1,toml==0.10.2,typing-extensions==3.10.0.0,urllib3==1.26.5,zipp==3.4.1
py39 inst-nodeps: /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip
ERROR: invocation failed (exit code 1), logfile: /home/tina/openqa-devel/repos/openqa_review/.tox/py39/log/py39-20.log
ERROR: actionid: py39
msg: installpkg
cmdargs: ['/home/tina/openqa-devel/repos/openqa_review/.tox/py39/bin/pip', 'install', '-U', '--no-deps', '/home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip']

Processing ./.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done' 
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: openqa-review
  Building wheel for openqa-review (pyproject.toml): started 
  Building wheel for openqa-review (pyproject.toml): finished with status 'done'
  Created wheel for openqa-review: filename=openqa_review-1.25.0_72_g7fc883a-py3-none-any.whl size=43648 sha256=160f7b129ca15b339d3a77cbb60e2468e7960ced37c5e5d960ef7090d1543336
  Stored in directory: /home/tina/.cache/pip/wheels/76/3b/15/ac3b33683af4670706df887c8021b0a41c48a3a62ada04c25a
  WARNING: Built wheel for openqa-review is invalid: Metadata 1.2 mandates PEP 440 version, but '1.25.0-72-g7fc883a' is not
Failed to build openqa-review
ERROR: Could not build wheels for openqa-review, which is required to install pyproject.toml-based projects

py39 installed: attrs==21.2.0,beautifulsoup4==4.9.3,certifi==2020.12.5,chardet==4.0.0,future==0.18.2,humanfriendly==9.1,idna==2.10,importlib-metadata==4.2.0,iniconfig==1.1.1,openqa-review===1.20.4-12-gfa18f7b,packaging==20.9,pika==1.2.0,plu
ggy==0.13.1,py==1.10.0,pyparsing==2.4.7,pytest==6.2.4,pytest-mock==3.6.1,PyYAML==5.4.1,requests==2.25.1,sortedcontainers==2.4.0,soupsieve==2.2.1,toml==0.10.2,typing-extensions==3.10.0.0,urllib3==1.26.5,zipp==3.4.1
cov develop-inst-nodeps: /home/tina/openqa-devel/repos/openqa_review
cov installed: attrs==21.2.0,beautifulsoup4==4.9.3,certifi==2020.12.5,chardet==4.0.0,coverage==5.5,future==0.18.2,humanfriendly==9.1,idna==2.10,importlib-metadata==4.2.0,iniconfig==1.1.1,-e git+git@github.com:os-autoinst/openqa_review@7fc88
3af7b78bdf866551cb57c8df121fc45cab3#egg=openqa_review,packaging==20.9,pika==1.2.0,pluggy==0.13.1,py==1.10.0,pyparsing==2.4.7,pytest==6.2.4,pytest-cov==2.12.0,pytest-mock==3.6.1,PyYAML==5.4.1,requests==2.25.1,sortedcontainers==2.4.0,soupsiev
e==2.2.1,toml==0.10.2,typing-extensions==3.10.0.0,urllib3==1.26.5,zipp==3.4.1
cov runtests: PYTHONHASHSEED='4098065818'
cov runtests: commands[0] | py.test --cov=openqa_review
============================================================================================================= test session starts ==============================================================================================================
platform linux -- Python 3.6.12, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/tina/openqa-devel/repos/openqa_review
plugins: mock-3.6.1, cov-2.12.0
collected 54 items                                                                                                                                                                                                                             

tests/test_openqa_review.py ...........................................                                                                                                                                                                  [ 79%]
tests/test_tumblesle_release.py ...........                                                                                                                                                                                              [100%]

---------- coverage: platform linux, python 3.6.12-final-0 -----------
Name                                 Stmts   Miss Branch BrPart  Cover   Missing
--------------------------------------------------------------------------------
openqa_review/__init__.py                0      0      0      0   100%
openqa_review/browser.py               104      0      8      0   100%
openqa_review/openqa_review.py         717      1    300      1    99%   758
openqa_review/tumblesle_release.py     227      0     70      0   100%
--------------------------------------------------------------------------------
TOTAL                                 1048      1    378      1    99%

FAIL Required test coverage of 100.0% not reached. Total coverage: 99.86%

============================================================================================================= 54 passed in 10.81s ==============================================================================================================
ERROR: InvocationError: '/home/tina/openqa-devel/repos/openqa_review/.tox/cov/bin/py.test --cov=openqa_review'
___________________________________________________________________________________________________________________ summary ____________________________________________________________________________________________________________________
ERROR:   flake8: InvocationError: /home/tina/openqa-devel/repos/openqa_review/.tox/flake8/bin/pip install -U --no-deps /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip (see /home/tina/openqa-devel/r
epos/openqa_review/.tox/flake8/log/flake8-24.log)
ERROR:   black: InvocationError: /home/tina/openqa-devel/repos/openqa_review/.tox/black/bin/pip install -U --no-deps /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip (see /home/tina/openqa-devel/rep
os/openqa_review/.tox/black/log/black-18.log)
ERROR:   doctests: InvocationError: /home/tina/openqa-devel/repos/openqa_review/.tox/doctests/bin/pip install -U --no-deps /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip (see /home/tina/openqa-dev
el/repos/openqa_review/.tox/doctests/log/doctests-20.log)
ERROR:   py36: InvocationError: /home/tina/openqa-devel/repos/openqa_review/.tox/py36/bin/pip install -U --no-deps /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip (see /home/tina/openqa-devel/repos
/openqa_review/.tox/py36/log/py36-24.log)
SKIPPED:  py37: InterpreterNotFound: python3.7
ERROR:   py38: InvocationError: /home/tina/openqa-devel/repos/openqa_review/.tox/py38/bin/pip install -U --no-deps /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip (see /home/tina/openqa-devel/repos
/openqa_review/.tox/py38/log/py38-26.log)
ERROR:   py39: InvocationError: /home/tina/openqa-devel/repos/openqa_review/.tox/py39/bin/pip install -U --no-deps /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip (see /home/tina/openqa-devel/repos
/openqa_review/.tox/py39/log/py39-20.log)
ERROR:   cov: commands failed

Related issues 1 (0 open1 closed)

Copied to openQA Project - action #102641: openqa_review: Cannot build doctests successfully size:MResolvedtinita2021-11-17

Actions
Actions #1

Updated by livdywan over 2 years ago

I'm guessing this might already be the fixed for this?

https://github.com/os-autoinst/openqa_review/pull/198

Actions #2

Updated by tinita over 2 years ago

cdywan wrote:

I'm guessing this might already be the fixed for this?

https://github.com/os-autoinst/openqa_review/pull/198

This fixes the coverage and style, but this doesn't fix the fact that tox doesn't work in my local environment.

Actions #3

Updated by mkittler over 2 years ago

No, and the commit messages of the PR also don't claim that. The problem which is the concern here is this part:

Processing ./.tox/.tmp/package/1/openqa_review-1.25.0-76-ge5eb6cf.zip
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
    Preparing wheel metadata: started
    Preparing wheel metadata: finished with status 'done'
Building wheels for collected packages: openqa-review
  Building wheel for openqa-review (PEP 517): started
  Building wheel for openqa-review (PEP 517): finished with status 'done'
  Created wheel for openqa-review: filename=openqa_review-1.25.0_76_ge5eb6cf-py3-none-any.whl size=43815 sha256=8764f4588e83f3d3ade6e82283ff36ca89ed86174f681bb4775bdb5bf11f04e5
  Stored in directory: /home/martchus/.cache/pip/wheels/4b/50/ba/e1d8e5e2c3ed91690973da237676fbdabfb5d24fc4c96530a6
  WARNING: Built wheel for openqa-review is invalid: Metadata 1.2 mandates PEP 440 version, but '1.25.0-76-ge5eb6cf' is not
Failed to build openqa-review
ERROR: Could not build wheels for openqa-review which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/hdd/other-repos/openqa_review/.tox/py38/bin/python -m pip install --upgrade pip' command.

which happens also if the Python interpreter required for the specified environment (e.g. py38) is installed and means that the test suite doesn't even get to run at all.

(Doing the update as suggested only fixes the warning about the pip version but not the actual problem. rm -r .cache doesn't help either.)

Actions #4

Updated by mkittler over 2 years ago

  • Assignee set to mkittler

Maybe I can figure this out.

Actions #5

Updated by tinita over 2 years ago

I also tried this but no change:

% .tox/py39/bin/python3 -m pip install --upgrade pip setuptools wheel
...
% tox -e py39
# same error as before but nothing helpful in the log about why it failed :(
Actions #6

Updated by mkittler over 2 years ago

  • Status changed from New to Feedback

I've been adding a comment how to workaround the problem in https://github.com/os-autoinst/openqa_review/pull/199. Check whether it is working for you.

Actions #7

Updated by tinita over 2 years ago

Thanks, unfortunately it doesn't work.

I got some additional output on the first run after removing .tox/, but the actual error was the same:

py39 create: /home/tina/openqa-devel/repos/openqa_review/.tox/py39                                                                                                                                                                              
py39 installdeps: -rrequirements.txt, pytest, pytest-mock                                                                                                                                                                                       
py39 inst: /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip                                                                                                                                           
ERROR: invocation failed (exit code 1), logfile: /home/tina/openqa-devel/repos/openqa_review/.tox/py39/log/py39-2.log                                                                                                                           
ERROR: actionid: py39                                                                                                                                                                                                                           
msg: installpkg                                                                                                                                                                                                                                 
cmdargs: ['/home/tina/openqa-devel/repos/openqa_review/.tox/py39/bin/pip', 'install', '/home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip']                                                             

Processing ./.tox/dist/openqa_review-1.25.0-72-g7fc883a.zip                                                                                                                                                                                     
  Installing build dependencies: started                                                                                                                                                                                                        
  Installing build dependencies: finished with status 'done'                                                                                                                                                                                    
  Getting requirements to build wheel: started                                                                                                                                                                                                  
  Getting requirements to build wheel: finished with status 'done'                                                                                                                                                                              
  Preparing metadata (pyproject.toml): started                                                                                                                                                                                                  
  Preparing metadata (pyproject.toml): finished with status 'done'                                                                                                                                                                              
Requirement already satisfied: pika in ./.tox/py39/lib/python3.6/site-packages (from openqa-review===1.25.0-72-g7fc883a) (1.2.0)                                                                                                                
Requirement already satisfied: PyYAML in ./.tox/py39/lib/python3.6/site-packages (from openqa-review===1.25.0-72-g7fc883a) (6.0)                                                                                                                
Requirement already satisfied: certifi in ./.tox/py39/lib/python3.6/site-packages (from openqa-review===1.25.0-72-g7fc883a) (2021.10.8)                                                                                                         
Requirement already satisfied: humanfriendly in ./.tox/py39/lib/python3.6/site-packages (from openqa-review===1.25.0-72-g7fc883a) (10.0)                                                                                                        
Requirement already satisfied: requests in ./.tox/py39/lib/python3.6/site-packages (from openqa-review===1.25.0-72-g7fc883a) (2.26.0)                                                                                                           
Requirement already satisfied: beautifulsoup4 in ./.tox/py39/lib/python3.6/site-packages (from openqa-review===1.25.0-72-g7fc883a) (4.10.0)                                                                                                     
Requirement already satisfied: sortedcontainers in ./.tox/py39/lib/python3.6/site-packages (from openqa-review===1.25.0-72-g7fc883a) (2.4.0)                                                                                                    
Requirement already satisfied: soupsieve>1.2 in ./.tox/py39/lib/python3.6/site-packages (from beautifulsoup4->openqa-review===1.25.0-72-g7fc883a) (2.3.1)                                                                                       
Requirement already satisfied: idna<4,>=2.5 in ./.tox/py39/lib/python3.6/site-packages (from requests->openqa-review===1.25.0-72-g7fc883a) (3.3)                                                                                                
Requirement already satisfied: charset-normalizer~=2.0.0 in ./.tox/py39/lib/python3.6/site-packages (from requests->openqa-review===1.25.0-72-g7fc883a) (2.0.7)                                                                                 
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./.tox/py39/lib/python3.6/site-packages (from requests->openqa-review===1.25.0-72-g7fc883a) (1.26.7)                                                                                    
Building wheels for collected packages: openqa-review                                                                                                                                                                                           
  Building wheel for openqa-review (pyproject.toml): started                                                                                                                                                                                    
  Building wheel for openqa-review (pyproject.toml): finished with status 'done'                                                                                                                                                                
  Created wheel for openqa-review: filename=openqa_review-1.25.0_72_g7fc883a-py3-none-any.whl size=43648 sha256=824ca600b4fc004247265c535115b7e504da2925c92dc755d551cd2d900928ba                                                                
  Stored in directory: /home/tina/.cache/pip/wheels/76/3b/15/ac3b33683af4670706df887c8021b0a41c48a3a62ada04c25a                                                                                                                                 
  WARNING: Built wheel for openqa-review is invalid: Metadata 1.2 mandates PEP 440 version, but '1.25.0-72-g7fc883a' is not                                                                                                                     
Failed to build openqa-review                                                                                                                                                                                                                   
ERROR: Could not build wheels for openqa-review, which is required to install pyproject.toml-based projects                                                                      

I'm on Leap 15.2 and I guess I will upgrade to 15.3 to see if this fixes it. Should upgrade anyway.

Actions #8

Updated by mkittler over 2 years ago

I can reproduce the problem with py36, py39 and py10 on TW. Before I've only tested with py38. One thing which makes Python 3.8 special on my system is that it is also the "regular" Python 3 environment (python3 --version returns Python 3.8.12).

Moving the pip cache (e.g. mv /home/martchus/.cache/pip /home/martchus/.cache/pip-38) doesn't help.

Actions #9

Updated by mkittler over 2 years ago

I think the problem is https://github.com/pypa/pip/issues/9188.

I cannot reproduce it with Python 3.8 because for some reason an older pip version is used in the py38 env, even compared to py36:

/hdd/other-repos/openqa_review/.tox/py38/bin/python -m pip --version
pip 20.1.1 from /hdd/other-repos/openqa_review/.tox/py38/lib/python3.8/site-packages/pip (python 3.8)
/hdd/other-repos/openqa_review/.tox/py36/bin/python -m pip --version
pip 21.2.4 from /hdd/other-repos/openqa_review/.tox/py36/lib/python3.6/site-packages/pip (python 3.6)

This caveat is actually already mentioned in a comment in the file setup.py.

Actions #10

Updated by mkittler over 2 years ago

Actions #11

Updated by tinita over 2 years ago

mkittler wrote:

I think the problem is https://github.com/pypa/pip/issues/9188.

Huh, interesting. The message about PEP 440 is clearly a warning and not an error:

WARNING: Built wheel for openqa-review is invalid: Metadata 1.2 mandates PEP 440 version, but '1.25.0-72-g7fc883a' is not

If that is actually fatal, then this should be reported as a bug. Just don't know where. In tox? Or setuptools? Or wheel?

Actions #12

Updated by mkittler over 2 years ago

It is fatal because when fixing the version it worked again. (I've been trying different version formats and if I broke it again it also ceased to work again. So I'm pretty sure the fatal error and the logged warning are related.)

I agree that it is pretty bad this is only shows up as warning. Otherwise I'd been able to pin down the problem quicker. I'm also not sure on which level this is logged as a warning.

Actions #13

Updated by tinita over 2 years ago

I believe you that it is fatal :)
Was just trying to say that it appeared clearly as a warning

https://github.com/os-autoinst/openqa_review/pull/200 works for me!

Actions #14

Updated by tinita over 2 years ago

The doctests target is also still not working, and I don't know if there should be an extra ticket about it:

% tox -e doctests
GLOB sdist-make: /home/tina/openqa-devel/repos/openqa_review/setup.py
doctests inst-nodeps: /home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0.dev81.zip
WARNING:Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration.
doctests installed: attrs==21.2.0,beautifulsoup4==4.10.0,certifi==2021.10.8,charset-normalizer==2.0.7,humanfriendly==10.0,idna==3.3,importlib-metadata==4.8.2,iniconfig==1.1.1,openqa-review @ file:///home/tina/openqa-devel/repos/openqa_review/.tox/dist/openqa_review-1.25.0.dev81.zip,packaging==21.2,pika==1.2.0,pluggy==1.0.0,py==1.11.0,pyparsing==2.4.7,pytest==6.2.5,pytest-doc==0.0.1,PyYAML==6.0,requests==2.26.0,sortedcontainers==2.4.0,soupsieve==2.3.1,toml==0.10.2,typing_extensions==4.0.0,urllib3==1.26.7,zipp==3.6.0
doctests runtests: PYTHONHASHSEED='845820614'
doctests runtests: commands[0] | py.test --doctest-modules openqa_review/
============================================================================================================= test session starts ==============================================================================================================
platform linux -- Python 3.6.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/tina/openqa-devel/repos/openqa_review
plugins: doc-0.0.1
collected 2 items / 2 errors                                                                                                                                                                                                                   

==================================================================================================================== ERRORS ====================================================================================================================
_______________________________________________________________________________________________ ERROR collecting openqa_review/openqa_review.py ________________________________________________________________________________________________
openqa_review/openqa_review.py:111: in <module>
    from openqa_review.browser import Browser, DownloadError, BugNotFoundError, add_load_save_args  # isort:skip
E   ModuleNotFoundError: No module named 'openqa_review.browser'
_____________________________________________________________________________________________ ERROR collecting openqa_review/tumblesle_release.py ______________________________________________________________________________________________
openqa_review/tumblesle_release.py:42: in <module>
    from openqa_review.browser import Browser, add_load_save_args
E   ModuleNotFoundError: No module named 'openqa_review.browser'
=========================================================================================================== short test summary info ============================================================================================================
ERROR openqa_review/openqa_review.py - ModuleNotFoundError: No module named 'openqa_review.browser'
ERROR openqa_review/tumblesle_release.py - ModuleNotFoundError: No module named 'openqa_review.browser'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================================================== 2 errors in 0.37s ===============================================================================================================
ERROR: InvocationError: '/home/tina/openqa-devel/repos/openqa_review/.tox/doctests/bin/py.test --doctest-modules openqa_review/'
___________________________________________________________________________________________________________________ summary ____________________________________________________________________________________________________________________
ERROR:   doctests: commands failed

This hasn't been working on Travis CI and also not in GHA

Actions #15

Updated by okurz over 2 years ago

  • Copied to action #102641: openqa_review: Cannot build doctests successfully size:M added
Actions #16

Updated by okurz over 2 years ago

created separate ticket #102641 for doc tests

Actions #17

Updated by mkittler over 2 years ago

  • Status changed from Feedback to Resolved

Since we have an extra ticket for the doctest issue I'll close this one. The other environments pass for me now locally.

Actions

Also available in: Atom PDF