question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CI: pypy3-xdist on Python 3.7 ubuntu

See original GitHub issue

Our pypy3-xdist seems to fail on occasion:

tox -e pypy3-xdist
.package create: /home/runner/work/pytest/pytest/.tox/.package
.package installdeps: setuptools>=45.0, setuptools-scm[toml]>=6.2.3, wheel
/home/runner/work/pytest/pytest/.tox/.package/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
Traceback (most recent call last):
  File "/opt/hostedtoolcache/PyPy/3.[7](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:8).13/x64/site-packages/py/_error.py", line 66, in checked_call
    return func(*args, **kwargs)
FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/pytest/pytest/.tox/dist/  warnings.warn(msg, warning_class)'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/bin/tox", line [8](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:9), in <module>
    sys.exit(cmdline())
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/tox/session/__init__.py", line 44, in cmdline
    main(args)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/tox/session/__init__.py", line 6[9](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:10), in main
    exit_code = session.runcommand()
  File "/opt/hostedtoolcache/PyPy/3.7.[13](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:14)/x64/site-packages/tox/session/__init__.py", line 197, in runcommand
    return self.subcommand_test()
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/tox/session/__init__.py", line 213, in subcommand_test
    venv.package = self.hook.tox_package(session=self, venv=venv)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/pluggy/_callers.py", line 60, in _multicall
    return outcome.get_result()
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/pluggy/_result.py", line 60, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/tox/package/__init__.py", line [16](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:17), in tox_package
    session.package, session.dist = get_package(session)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/tox/package/__init__.py", line 29, in get_package
    package = acquire_package(config, session)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/tox/package/__init__.py", line 52, in acquire_package
    path.copy(sdist_file)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/py/_path/local.py", line 440, in copy
    for x in self.visit(rec=rec):
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/py/_path/common.py", line 383, in visit
    for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/py/_path/common.py", line 4[20](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:21), in gen
    entries = path.listdir()
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/py/_path/local.py", line [39](https://github.com/pytest-dev/pytest/runs/7060980910?check_suite_focus=true#step:5:40)5, in listdir
    names = py.error.checked_call(os.listdir, self.strpath)
  File "/opt/hostedtoolcache/PyPy/3.7.13/x64/site-packages/py/_error.py", line 86, in checked_call
    raise cls("%s%r" % (func.__name__, args))
py.error.ENOENT: [No such file or directory]: listdir('/home/runner/work/pytest/pytest/.tox/dist/  warnings.warn(msg, warning_class)',)

This is running tox (before it reaches pytest), but looking at the traceback tox is just trying to copy the dist file.

Posting it here in case someone has any ideas of what might be causing this.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
asottilecommented, Jun 29, 2022

I’ve got a fix from tox’s side https://github.com/tox-dev/tox/pull/2449

0reactions
nicoddemuscommented, Jun 30, 2022

Awesome! I will configure pypy3-xdist to be required again.

Thanks a lot @asottile!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ubuntu – Details of package python3.7 in bionic
Interactive high-level object-oriented language (version 3.7)
Read more >
How to Install pip for python 3.7 on Ubuntu 18? - Stack Overflow
I'm assuming that if I can install pip for Python 3.7, I can run the pip install command and get the modules I...
Read more >
How to Install Python 3.7 on Ubuntu 18.04 - Linuxize
Python 3.7 is the latest major release of the Python language. This tutorial describes two ways of installing Python 3.7 on Ubuntu 18.04....
Read more >
It's time to stop using Python 3.7
Python 3.7 will stop getting security updates in June 2023. Given the existence of 3.8, 3.9, 3.10, and 3.11, you really should upgrade....
Read more >
Preparations - DZone
In this post, we will install Python 3.7.0 on Ubuntu 18.04 / Debian 9.5. This is the latest version of the Python Programming...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found