Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing an invocation error through tox command #1600

Closed
NevilleMthw opened this issue Jun 11, 2020 · 14 comments
Closed

Facing an invocation error through tox command #1600

NevilleMthw opened this issue Jun 11, 2020 · 14 comments
Labels
type:question ❔ a question about how things work or if something is a bug or a feature

Comments

@NevilleMthw
Copy link

So I just ran the tox command in the project folder and once I did I got a lot of invocation errors, and I wasn't sure on how to fix it. This error was produced through the tox -rvv.
Any help would be appreciated.

smalld py - Untitled (Workspace) - Visual Studio Code 11-Jun-20 12_44_14 PM

@NevilleMthw NevilleMthw added the bug:normal affects many people or has quite an impact label Jun 11, 2020
@gaborbernat gaborbernat added type:question ❔ a question about how things work or if something is a bug or a feature and removed bug:normal affects many people or has quite an impact labels Jun 11, 2020
@gaborbernat
Copy link
Member

For the one saying interpreter not found you can try setting in your tox.ini https://tox.readthedocs.io/en/latest/config.html#conf-skip_missing_interpreters to true.

For the ones complaining about could not install we would need to see more information, try running it via tox -vve py38 and posting the output of that.

@NevilleMthw
Copy link
Author

NevilleMthw commented Jun 11, 2020

Okay so I just did the skip missing interpreters part and that worked fine but the main issue I am facing is when I try to install the deps.

Would you want me to put the entire error message after I do the tox -vve py38 command?

@gaborbernat
Copy link
Member

Yes. But make it tox -rvve py38

@NevilleMthw
Copy link
Author

Okay so the error is:

using tox.ini: C:\Users\write\Desktop\smalld.py\tox.ini (pid 6252)
  removing C:\Users\write\Desktop\smalld.py\.tox\log
using tox-3.15.1 from C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tox\__init__.py (pid 6252)
GLOB start: packaging 
GLOB sdist-make: C:\Users\write\Desktop\smalld.py\setup.py
  removing C:\Users\write\Desktop\smalld.py\.tox\dist
[4300] C:\Users\write\Desktop\smalld.py$ 'C:\Users\write\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' setup.py sdist --formats=zip --dist-dir '.tox\dist' >.tox\log\GLOB-0.log
running sdist
running egg_info
writing smalld.egg-info\PKG-INFO
writing dependency_links to smalld.egg-info\dependency_links.txt
writing requirements to smalld.egg-info\requires.txt
writing top-level names to smalld.egg-info\top_level.txt
writing manifest file 'smalld.egg-info\SOURCES.txt'
running check
warning: check: missing required meta-data: url

warning: check: missing meta-data: either (author and author_email) or (maintainer and maintainer_email) must be supplied

creating smalld-0.1.4.dev0+gcd30efb.d20200611
creating smalld-0.1.4.dev0+gcd30efb.d20200611\.github
creating smalld-0.1.4.dev0+gcd30efb.d20200611\.github\workflows
creating smalld-0.1.4.dev0+gcd30efb.d20200611\examples
creating smalld-0.1.4.dev0+gcd30efb.d20200611\requirements
creating smalld-0.1.4.dev0+gcd30efb.d20200611\smalld
creating smalld-0.1.4.dev0+gcd30efb.d20200611\smalld.egg-info
creating smalld-0.1.4.dev0+gcd30efb.d20200611\smalld\resources
creating smalld-0.1.4.dev0+gcd30efb.d20200611\test
copying files to smalld-0.1.4.dev0+gcd30efb.d20200611...
copying .coveragerc -> smalld-0.1.4.dev0+gcd30efb.d20200611
copying .gitignore -> smalld-0.1.4.dev0+gcd30efb.d20200611
copying .python-version -> smalld-0.1.4.dev0+gcd30efb.d20200611
copying LICENSE -> smalld-0.1.4.dev0+gcd30efb.d20200611
copying README.md -> smalld-0.1.4.dev0+gcd30efb.d20200611
copying setup.py -> smalld-0.1.4.dev0+gcd30efb.d20200611
copying tox.ini -> smalld-0.1.4.dev0+gcd30efb.d20200611
copying .github\workflows\build.yml -> smalld-0.1.4.dev0+gcd30efb.d20200611\.github\workflows
copying .github\workflows\coverage.yml -> smalld-0.1.4.dev0+gcd30efb.d20200611\.github\workflows
copying .github\workflows\fmt.yml -> smalld-0.1.4.dev0+gcd30efb.d20200611\.github\workflows
copying .github\workflows\install.yml -> smalld-0.1.4.dev0+gcd30efb.d20200611\.github\workflows
copying .github\workflows\release.yml -> smalld-0.1.4.dev0+gcd30efb.d20200611\.github\workflows
copying examples\cat_bot.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\examples
copying examples\ping_bot.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\examples
copying requirements\fmt.in -> smalld-0.1.4.dev0+gcd30efb.d20200611\requirements
copying requirements\fmt.txt -> smalld-0.1.4.dev0+gcd30efb.d20200611\requirements
copying requirements\test.in -> smalld-0.1.4.dev0+gcd30efb.d20200611\requirements
copying requirements\test.txt -> smalld-0.1.4.dev0+gcd30efb.d20200611\requirements
copying smalld\__init__.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\smalld
copying smalld\exceptions.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\smalld
copying smalld\gateway.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\smalld
copying smalld\ratelimit.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\smalld
copying smalld\smalld.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\smalld
copying smalld\standard_listeners.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\smalld
copying smalld.egg-info\PKG-INFO -> smalld-0.1.4.dev0+gcd30efb.d20200611\smalld.egg-info
copying smalld.egg-info\SOURCES.txt -> smalld-0.1.4.dev0+gcd30efb.d20200611\smalld.egg-info
copying smalld.egg-info\dependency_links.txt -> smalld-0.1.4.dev0+gcd30efb.d20200611\smalld.egg-info
copying smalld.egg-info\requires.txt -> smalld-0.1.4.dev0+gcd30efb.d20200611\smalld.egg-info
copying smalld.egg-info\top_level.txt -> smalld-0.1.4.dev0+gcd30efb.d20200611\smalld.egg-info
copying smalld\resources\__init__.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\smalld\resources
copying smalld\resources\ratelimit_buckets -> smalld-0.1.4.dev0+gcd30efb.d20200611\smalld\resources
copying test\test_gateway.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\test
copying test\test_httpclient.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\test
copying test\test_ratelimit.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\test
copying test\test_sanity.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\test
copying test\test_smalld.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\test
copying test\test_version.py -> smalld-0.1.4.dev0+gcd30efb.d20200611\test
Writing smalld-0.1.4.dev0+gcd30efb.d20200611\setup.cfg
creating '.tox\dist\smalld-0.1.4.dev0+gcd30efb.d20200611.zip' and adding 'smalld-0.1.4.dev0+gcd30efb.d20200611' to it
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\.github'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\examples'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\requirements'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld.egg-info'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\test'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\.coveragerc'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\.gitignore'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\.python-version'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\LICENSE'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\PKG-INFO'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\README.md'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\setup.cfg'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\setup.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\tox.ini'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\.github\workflows'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\.github\workflows\build.yml'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\.github\workflows\coverage.yml'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\.github\workflows\fmt.yml'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\.github\workflows\install.yml'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\.github\workflows\release.yml'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\examples\cat_bot.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\examples\ping_bot.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\requirements\fmt.in'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\requirements\fmt.txt'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\requirements\test.in'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\requirements\test.txt'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld\resources'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld\exceptions.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld\gateway.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld\ratelimit.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld\smalld.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld\standard_listeners.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld\__init__.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld\resources\ratelimit_buckets'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld\resources\__init__.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld.egg-info\dependency_links.txt'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld.egg-info\PKG-INFO'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld.egg-info\requires.txt'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld.egg-info\SOURCES.txt'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\smalld.egg-info\top_level.txt'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\test\test_gateway.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\test\test_httpclient.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\test\test_ratelimit.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\test\test_sanity.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\test\test_smalld.py'
adding 'smalld-0.1.4.dev0+gcd30efb.d20200611\test\test_version.py'
removing 'smalld-0.1.4.dev0+gcd30efb.d20200611' (and everything under it)

GLOB finish: packaging  after 4.43 seconds
copying new sdistfile to 'C:\\Users\\write\\.tox\\distshare\\smalld-0.1.4.dev0+gcd30efb.d20200611.zip'
package .tmp\package\1\smalld-0.1.4.dev0+gcd30efb.d20200611.zip links to dist\smalld-0.1.4.dev0+gcd30efb.d20200611.zip (C:\Users\write\Desktop\smalld.py\.tox)
py38 start: getenv C:\Users\write\Desktop\smalld.py\.tox\py38
py38 cannot reuse: -r flag
py38 create: C:\Users\write\Desktop\smalld.py\.tox\py38
py38 uses C:\Users\write\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe
  removing C:\Users\write\Desktop\smalld.py\.tox\py38
setting PATH=C:\Users\write\Desktop\smalld.py\.tox\py38\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Git\cmd;C:\Program Files (x86)\Python 3.8.1\Scripts;C:\Program Files\MongoDB\Server\4.2\bin\;C:\sqlite3;C:\Program Files\nodejs\;C:\Android\cmdline-tools\latest\bin;C:\Android\platform-tools;C:\flutter\bin;C:\Android\emulator;C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;C:\Users\write\AppData\Roaming\Python\Python38\Scripts;C:\Users\write\AppData\Local\Microsoft\WindowsApps;C:\Users\write\AppData\Local\GitHubDesktop\bin;C:\Users\write\AppData\Roaming\npm;C:\Users\write\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\Python 3.8.1\Scripts;'C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;;C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\bin;;C:\Users\write\AppData\Local\Microsoft\WindowsApps
[12200] C:\Users\write\Desktop\smalld.py\.tox$ 'C:\Users\write\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -m virtualenv --no-download --python 'C:\Users\write\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' py38
Exception in thread Thread-6:
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\threading.py", line 932, in _bootstrap_inner  
    self.run()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\seed\via_app_data\via_app_data.py", line 52, in _install
    installer.install(creator.interpreter.version_info)
  File "C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 51, in install
    for name, module in self._console_scripts.items():
  File "C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 118, in _console_scripts
    entry_points = self._dist_info / "entry_points.txt"
  File "C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 105, in _dist_info
    raise RuntimeError("no dist info")  # pragma: no cover
RuntimeError: no dist info
created virtual environment CPython3.8.3.final.0-64 in 1662ms
  creator Venv(dest=C:\Users\write\Desktop\smalld.py\.tox\py38, clear=False, global=False, describe=CPython3Windows)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\seed-app-data\v1.0.1)
  activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
py38 installdeps: -rrequirements/test.txt
setting PATH=C:\Users\write\Desktop\smalld.py\.tox\py38\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Git\cmd;C:\Program Files (x86)\Python 3.8.1\Scripts;C:\Program Files\MongoDB\Server\4.2\bin\;C:\sqlite3;C:\Program Files\nodejs\;C:\Android\cmdline-tools\latest\bin;C:\Android\platform-tools;C:\flutter\bin;C:\Android\emulator;C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;C:\Users\write\AppData\Roaming\Python\Python38\Scripts;C:\Users\write\AppData\Local\Microsoft\WindowsApps;C:\Users\write\AppData\Local\GitHubDesktop\bin;C:\Users\write\AppData\Roaming\npm;C:\Users\write\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\Python 3.8.1\Scripts;'C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;;C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\bin;;C:\Users\write\AppData\Local\Microsoft\WindowsApps
[11220] C:\Users\write\Desktop\smalld.py$ 'C:\Users\write\Desktop\smalld.py\.tox\py38\Scripts\python.EXE' -m pip install -rrequirements/test.txt
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\__main__.py", line 26, in <module>
    sys.exit(_main())
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_internal\cli\main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_internal\commands\__init__.py", line 104, in create_command
    module = importlib.import_module(module_path)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_internal\commands\install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand, with_cleanup
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_internal\cli\req_command.py", line 16, in <module>
    from pip._internal.index.package_finder import PackageFinder
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_internal\index\package_finder.py", line 21, in <module>
    from pip._internal.index.collector import parse_links
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_internal\index\collector.py", line 14, in <module>
    from pip._vendor import html5lib, requests
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_vendor\html5lib\__init__.py", line 25, in <module>
    from .html5parser import HTMLParser, parse, parseFragment
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_vendor\html5lib\html5parser.py", line 7, in <module>
    from . import _inputstream
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_vendor\html5lib\_inputstream.py", line 9, in <module>
    from pip._vendor import webencodings
ImportError: cannot import name 'webencodings' from 'pip._vendor' (C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_vendor\__init__.py) 
ERROR: invocation failed (exit code 1)
ERROR: could not install deps [-rrequirements/test.txt]; v = InvocationError("'C:\\Users\\write\\Desktop\\smalld.py\\.tox\\py38\\Scripts\\python.EXE' -m 
pip install -rrequirements/test.txt", 1)
py38 finish: getenv C:\Users\write\Desktop\smalld.py\.tox\py38 after 6.05 seconds
_______________________________________________________________________ summary ________________________________________________________________________ 
ERROR:   py38: could not install deps [-rrequirements/test.txt]; v = InvocationError("'C:\\Users\\write\\Desktop\\smalld.py\\.tox\\py38\\Scripts\\python.EXE' -m pip install -rrequirements/test.txt", 1)
cleanup C:\Users\write\Desktop\smalld.py\.tox\.tmp\package\1\smalld-0.1.4.dev0+gcd30efb.d20200611.zip

@gaborbernat
Copy link
Member

@NevilleMthw
Copy link
Author

NevilleMthw commented Jun 11, 2020

Okay so I did create a separate pyproject.toml file and made the change in the tox.ini file as well but there's still no change in the error for installing the deps.

The pyproject.toml file:

[build-system]
requires = [
    "setuptools >= 35.0.2",
    "setuptools_scm >= 2.0.0, <3"
]
build-backend = "setuptools.build_meta"

The tox.ini file:

[tox]
envlist=clean,py{36,37,38},report
skip_missing_interpreters=True
isolated_build = True

[testenv]
commands=
  coverage run --append -m pytest
  coverage report
deps=-r requirements/test.txt

[testenv:report]
basepython=python3.8
skip_install=true
deps=-r requirements/test.txt
commands=
  coverage report
  coverage xml 

[testenv:clean]
basepython=python3.8
skip_install=True
deps=-r requirements/test.txt
commands=coverage erase

[testenv:run]
basepython=python3.8
commands=python {posargs}
passenv=SMALLD_TOKEN
deps=

[testenv:fmt]
basepython=python3.8
skip_install=True
commands=
  autoflake -ri --remove-all-unused-imports --ignore-init-module-imports {env:PY_FILES}
  isort -rc {env:PY_FILES}
  black -t py36 {env:PY_FILES}
  sort -o .gitignore .gitignore
deps=-r requirements/fmt.txt
whitelist_externals=sort
setenv=
  LC_ALL=C.UTF-8
  PY_FILES=setup.py smalld/ test/ examples/

[testenv:pip-compile]
basepython=python3.6
skip_install=True
commands=
  pip-compile --output-file=requirements/fmt.txt requirements/fmt.in
  pip-compile --output-file=requirements/test.txt requirements/test.in
deps=pip-tools==5.1.2
setenv=
  LC_ALL=C.UTF-8
  LANG=C.UTF-8

What if the error is fixed but stored as cache, just a guess?

@gaborbernat
Copy link
Member

There should be change, can you post again the output? What tox version are you using?

@NevilleMthw
Copy link
Author

I am using the Tox version, 3.15.1.

The output shows as:

using tox.ini: C:\Users\write\Desktop\smalld.py\tox.ini (pid 8924)
  removing C:\Users\write\Desktop\smalld.py\.tox\log
using tox-3.15.1 from C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tox\__init__.py (pid 8924)
.package start: getenv C:\Users\write\Desktop\smalld.py\.tox\.package
.package cannot reuse: -r flag
.package create: C:\Users\write\Desktop\smalld.py\.tox\.package
C:\Users\write\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe (C:\Users\write\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe) is {'executable': 'C:\\Users\\write\\AppData\\Local\\Microsoft\\WindowsApps\\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\\python.exe', 'name': 'python', 'version_info': [3, 8, 3, 'final', 0], 'version': '3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]', 'is_64': True, 'sysplatform': 'win32'}
.package uses C:\Users\write\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe
  removing C:\Users\write\Desktop\smalld.py\.tox\.package
setting PATH=C:\Users\write\Desktop\smalld.py\.tox\.package\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program 
Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Git\cmd;C:\Program Files (x86)\Python 3.8.1\Scripts;C:\Program Files\MongoDB\Server\4.2\bin\;C:\sqlite3;C:\Program Files\nodejs\;C:\Android\cmdline-tools\latest\bin;C:\Android\platform-tools;C:\flutter\bin;C:\Android\emulator;C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;C:\Users\write\AppData\Roaming\Python\Python38\Scripts;C:\Users\write\AppData\Local\Microsoft\WindowsApps;C:\Users\write\AppData\Local\GitHubDesktop\bin;C:\Users\write\AppData\Roaming\npm;C:\Users\write\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\Python 3.8.1\Scripts;'C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;;C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\bin;;C:\Users\write\AppData\Local\Microsoft\WindowsApps
[11688] C:\Users\write\Desktop\smalld.py\.tox$ 'C:\Users\write\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -m virtualenv --no-download --python 'C:\Users\write\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' .package
Exception in thread Thread-6:
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\threading.py", line 932, in _bootstrap_inner  
    self.run()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\seed\via_app_data\via_app_data.py", line 52, in _install
    installer.install(creator.interpreter.version_info)
  File "C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 51, in install
    for name, module in self._console_scripts.items():
  File "C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 118, in _console_scripts
    entry_points = self._dist_info / "entry_points.txt"
  File "C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 105, in _dist_info
    raise RuntimeError("no dist info")  # pragma: no cover
RuntimeError: no dist info
created virtual environment CPython3.8.3.final.0-64 in 1838ms
  creator Venv(dest=C:\Users\write\Desktop\smalld.py\.tox\.package, clear=False, global=False, describe=CPython3Windows)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\seed-app-data\v1.0.1)
  activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
.package installdeps: setuptools==47.1.1, setuptools_scm==3.3.3
setting PATH=C:\Users\write\Desktop\smalld.py\.tox\.package\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program 
Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Git\cmd;C:\Program Files (x86)\Python 3.8.1\Scripts;C:\Program Files\MongoDB\Server\4.2\bin\;C:\sqlite3;C:\Program Files\nodejs\;C:\Android\cmdline-tools\latest\bin;C:\Android\platform-tools;C:\flutter\bin;C:\Android\emulator;C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;C:\Users\write\AppData\Roaming\Python\Python38\Scripts;C:\Users\write\AppData\Local\Microsoft\WindowsApps;C:\Users\write\AppData\Local\GitHubDesktop\bin;C:\Users\write\AppData\Roaming\npm;C:\Users\write\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\Python 3.8.1\Scripts;'C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;;C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\bin;;C:\Users\write\AppData\Local\Microsoft\WindowsApps
[7520] C:\Users\write\Desktop\smalld.py$ 'C:\Users\write\Desktop\smalld.py\.tox\.package\Scripts\python.EXE' -m pip install setuptools==47.1.1 setuptools_scm==3.3.3
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\write\Desktop\smalld.py\.tox\.package\lib\site-packages\pip\__main__.py", line 26, in <module>
    sys.exit(_main())
  File "C:\Users\write\Desktop\smalld.py\.tox\.package\lib\site-packages\pip\_internal\cli\main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "C:\Users\write\Desktop\smalld.py\.tox\.package\lib\site-packages\pip\_internal\commands\__init__.py", line 104, in create_command
    module = importlib.import_module(module_path)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\write\Desktop\smalld.py\.tox\.package\lib\site-packages\pip\_internal\commands\install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand, with_cleanup
  File "C:\Users\write\Desktop\smalld.py\.tox\.package\lib\site-packages\pip\_internal\cli\req_command.py", line 16, in <module>
    from pip._internal.index.package_finder import PackageFinder
  File "C:\Users\write\Desktop\smalld.py\.tox\.package\lib\site-packages\pip\_internal\index\package_finder.py", line 21, in <module>
    from pip._internal.index.collector import parse_links
  File "C:\Users\write\Desktop\smalld.py\.tox\.package\lib\site-packages\pip\_internal\index\collector.py", line 14, in <module>
    from pip._vendor import html5lib, requests
  File "C:\Users\write\Desktop\smalld.py\.tox\.package\lib\site-packages\pip\_vendor\html5lib\__init__.py", line 25, in <module>
    from .html5parser import HTMLParser, parse, parseFragment
  File "C:\Users\write\Desktop\smalld.py\.tox\.package\lib\site-packages\pip\_vendor\html5lib\html5parser.py", line 7, in <module>
    from . import _inputstream
  File "C:\Users\write\Desktop\smalld.py\.tox\.package\lib\site-packages\pip\_vendor\html5lib\_inputstream.py", line 9, in <module>
    from pip._vendor import webencodings
ImportError: cannot import name 'webencodings' from 'pip._vendor' (C:\Users\write\Desktop\smalld.py\.tox\.package\lib\site-packages\pip\_vendor\__init__.py)
ERROR: invocation failed (exit code 1)
ERROR: could not install deps [setuptools==47.1.1, setuptools_scm==3.3.3]; v = InvocationError("'C:\\Users\\write\\Desktop\\smalld.py\\.tox\\.package\\Scripts\\python.EXE' -m pip install setuptools==47.1.1 setuptools_scm==3.3.3", 1)
.package finish: getenv C:\Users\write\Desktop\smalld.py\.tox\.package after 6.38 seconds
.package start: get-build-requires C:\Users\write\Desktop\smalld.py\.tox\.package
setting PATH=C:\Users\write\Desktop\smalld.py\.tox\.package\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program 
Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Git\cmd;C:\Program Files (x86)\Python 3.8.1\Scripts;C:\Program Files\MongoDB\Server\4.2\bin\;C:\sqlite3;C:\Program Files\nodejs\;C:\Android\cmdline-tools\latest\bin;C:\Android\platform-tools;C:\flutter\bin;C:\Android\emulator;C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;C:\Users\write\AppData\Roaming\Python\Python38\Scripts;C:\Users\write\AppData\Local\Microsoft\WindowsApps;C:\Users\write\AppData\Local\GitHubDesktop\bin;C:\Users\write\AppData\Roaming\npm;C:\Users\write\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\Python 3.8.1\Scripts;'C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;;C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\bin;;C:\Users\write\AppData\Local\Microsoft\WindowsApps
[12464] C:\Users\write\Desktop\smalld.py$ 'C:\Users\write\Desktop\smalld.py\.tox\.package\Scripts\python' 'C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tox\helper\build_requires.py' setuptools.build_meta '' >.tox\.package\log\.package-0.log
.package finish: get-build-requires C:\Users\write\Desktop\smalld.py\.tox\.package after 1.35 seconds
.package start: perform-isolated-build C:\Users\write\Desktop\smalld.py\.tox\.package
setting PATH=C:\Users\write\Desktop\smalld.py\.tox\.package\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program 
Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Git\cmd;C:\Program Files (x86)\Python 3.8.1\Scripts;C:\Program Files\MongoDB\Server\4.2\bin\;C:\sqlite3;C:\Program Files\nodejs\;C:\Android\cmdline-tools\latest\bin;C:\Android\platform-tools;C:\flutter\bin;C:\Android\emulator;C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;C:\Users\write\AppData\Roaming\Python\Python38\Scripts;C:\Users\write\AppData\Local\Microsoft\WindowsApps;C:\Users\write\AppData\Local\GitHubDesktop\bin;C:\Users\write\AppData\Roaming\npm;C:\Users\write\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\Python 3.8.1\Scripts;'C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;;C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\bin;;C:\Users\write\AppData\Local\Microsoft\WindowsApps
[12168] C:\Users\write\Desktop\smalld.py$ 'C:\Users\write\Desktop\smalld.py\.tox\.package\Scripts\python' 'C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\tox\helper\build_isolated.py' '.tox\dist' setuptools.build_meta '' >.tox\.package\log\.package-1.log
running sdist
running egg_info
writing smalld.egg-info\PKG-INFO
writing dependency_links to smalld.egg-info\dependency_links.txt
writing requirements to smalld.egg-info\requires.txt
writing top-level names to smalld.egg-info\top_level.txt
reading manifest file 'smalld.egg-info\SOURCES.txt'
writing manifest file 'smalld.egg-info\SOURCES.txt'
running check
creating smalld-0.0.0
creating smalld-0.0.0\.github
creating smalld-0.0.0\.github\workflows
creating smalld-0.0.0\examples
creating smalld-0.0.0\requirements
creating smalld-0.0.0\smalld
creating smalld-0.0.0\smalld.egg-info
creating smalld-0.0.0\smalld\resources
creating smalld-0.0.0\test
copying files to smalld-0.0.0...
copying .coveragerc -> smalld-0.0.0
copying .gitignore -> smalld-0.0.0
copying .python-version -> smalld-0.0.0
copying LICENSE -> smalld-0.0.0
copying README.md -> smalld-0.0.0
copying pyproject.toml -> smalld-0.0.0
copying setup.py -> smalld-0.0.0
copying tox.ini -> smalld-0.0.0
copying .github\workflows\build.yml -> smalld-0.0.0\.github\workflows
copying .github\workflows\coverage.yml -> smalld-0.0.0\.github\workflows
copying .github\workflows\fmt.yml -> smalld-0.0.0\.github\workflows
copying .github\workflows\install.yml -> smalld-0.0.0\.github\workflows
copying .github\workflows\release.yml -> smalld-0.0.0\.github\workflows
copying examples\cat_bot.py -> smalld-0.0.0\examples
copying examples\ping_bot.py -> smalld-0.0.0\examples
copying requirements\fmt.in -> smalld-0.0.0\requirements
copying requirements\fmt.txt -> smalld-0.0.0\requirements
copying requirements\test.in -> smalld-0.0.0\requirements
copying requirements\test.txt -> smalld-0.0.0\requirements
copying smalld\__init__.py -> smalld-0.0.0\smalld
copying smalld\exceptions.py -> smalld-0.0.0\smalld
copying smalld\gateway.py -> smalld-0.0.0\smalld
copying smalld\ratelimit.py -> smalld-0.0.0\smalld
copying smalld\smalld.py -> smalld-0.0.0\smalld
copying smalld\standard_listeners.py -> smalld-0.0.0\smalld
copying smalld.egg-info\PKG-INFO -> smalld-0.0.0\smalld.egg-info
copying smalld.egg-info\SOURCES.txt -> smalld-0.0.0\smalld.egg-info
copying smalld.egg-info\dependency_links.txt -> smalld-0.0.0\smalld.egg-info
copying smalld.egg-info\requires.txt -> smalld-0.0.0\smalld.egg-info
copying smalld.egg-info\top_level.txt -> smalld-0.0.0\smalld.egg-info
copying smalld\resources\__init__.py -> smalld-0.0.0\smalld\resources
copying smalld\resources\ratelimit_buckets -> smalld-0.0.0\smalld\resources
copying test\test_gateway.py -> smalld-0.0.0\test
copying test\test_httpclient.py -> smalld-0.0.0\test
copying test\test_ratelimit.py -> smalld-0.0.0\test
copying test\test_sanity.py -> smalld-0.0.0\test
copying test\test_smalld.py -> smalld-0.0.0\test
copying test\test_version.py -> smalld-0.0.0\test
Writing smalld-0.0.0\setup.cfg
Creating tar archive
removing 'smalld-0.0.0' (and everything under it)
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'use_scm_version'
  warnings.warn(msg)
smalld-0.0.0.tar.gz

.package finish: perform-isolated-build C:\Users\write\Desktop\smalld.py\.tox\.package after 2.18 seconds
copying new sdistfile to 'C:\\Users\\write\\.tox\\distshare\\smalld-0.0.0.tar.gz'
package .tmp\package\1\smalld-0.0.0.tar.gz links to dist\smalld-0.0.0.tar.gz (C:\Users\write\Desktop\smalld.py\.tox)
py38 start: getenv C:\Users\write\Desktop\smalld.py\.tox\py38
py38 cannot reuse: -r flag
py38 create: C:\Users\write\Desktop\smalld.py\.tox\py38
py38 uses C:\Users\write\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe
  removing C:\Users\write\Desktop\smalld.py\.tox\py38
setting PATH=C:\Users\write\Desktop\smalld.py\.tox\py38\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Git\cmd;C:\Program Files (x86)\Python 3.8.1\Scripts;C:\Program Files\MongoDB\Server\4.2\bin\;C:\sqlite3;C:\Program Files\nodejs\;C:\Android\cmdline-tools\latest\bin;C:\Android\platform-tools;C:\flutter\bin;C:\Android\emulator;C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;C:\Users\write\AppData\Roaming\Python\Python38\Scripts;C:\Users\write\AppData\Local\Microsoft\WindowsApps;C:\Users\write\AppData\Local\GitHubDesktop\bin;C:\Users\write\AppData\Roaming\npm;C:\Users\write\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\Python 3.8.1\Scripts;'C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;;C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\bin;;C:\Users\write\AppData\Local\Microsoft\WindowsApps
[5812] C:\Users\write\Desktop\smalld.py\.tox$ 'C:\Users\write\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' -m virtualenv --no-download --python 'C:\Users\write\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' py38
Exception in thread Thread-6:
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\threading.py", line 932, in _bootstrap_inner  
    self.run()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\seed\via_app_data\via_app_data.py", line 52, in _install
    installer.install(creator.interpreter.version_info)
  File "C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 51, in install
    for name, module in self._console_scripts.items():
  File "C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 118, in _console_scripts
    entry_points = self._dist_info / "entry_points.txt"
  File "C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\virtualenv\seed\via_app_data\pip_install\base.py", line 105, in _dist_info
    raise RuntimeError("no dist info")  # pragma: no cover
RuntimeError: no dist info
created virtual environment CPython3.8.3.final.0-64 in 1552ms
  creator Venv(dest=C:\Users\write\Desktop\smalld.py\.tox\py38, clear=False, global=False, describe=CPython3Windows)
  seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\Local\pypa\virtualenv\seed-app-data\v1.0.1)
  activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
py38 installdeps: -rrequirements/test.txt
setting PATH=C:\Users\write\Desktop\smalld.py\.tox\py38\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Git\cmd;C:\Program Files (x86)\Python 3.8.1\Scripts;C:\Program Files\MongoDB\Server\4.2\bin\;C:\sqlite3;C:\Program Files\nodejs\;C:\Android\cmdline-tools\latest\bin;C:\Android\platform-tools;C:\flutter\bin;C:\Android\emulator;C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;C:\Users\write\AppData\Roaming\Python\Python38\Scripts;C:\Users\write\AppData\Local\Microsoft\WindowsApps;C:\Users\write\AppData\Local\GitHubDesktop\bin;C:\Users\write\AppData\Roaming\npm;C:\Users\write\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\Python 3.8.1\Scripts;'C:\Users\write\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\Scripts;;C:\Program Files\JetBrains\IntelliJ IDEA 2020.1.2\bin;;C:\Users\write\AppData\Local\Microsoft\WindowsApps
[8736] C:\Users\write\Desktop\smalld.py$ 'C:\Users\write\Desktop\smalld.py\.tox\py38\Scripts\python.EXE' -m pip install -rrequirements/test.txt
Traceback (most recent call last):
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\__main__.py", line 26, in <module>
    sys.exit(_main())
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_internal\cli\main.py", line 73, in main
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_internal\commands\__init__.py", line 104, in create_command
    module = importlib.import_module(module_path)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.1008.0_x64__qbz5n2kfra8p0\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_internal\commands\install.py", line 24, in <module>
    from pip._internal.cli.req_command import RequirementCommand, with_cleanup
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_internal\cli\req_command.py", line 16, in <module>
    from pip._internal.index.package_finder import PackageFinder
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_internal\index\package_finder.py", line 21, in <module>
    from pip._internal.index.collector import parse_links
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_internal\index\collector.py", line 14, in <module>
    from pip._vendor import html5lib, requests
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_vendor\html5lib\__init__.py", line 25, in <module>
    from .html5parser import HTMLParser, parse, parseFragment
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_vendor\html5lib\html5parser.py", line 7, in <module>
    from . import _inputstream
  File "C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_vendor\html5lib\_inputstream.py", line 9, in <module>
    from pip._vendor import webencodings
ImportError: cannot import name 'webencodings' from 'pip._vendor' (C:\Users\write\Desktop\smalld.py\.tox\py38\lib\site-packages\pip\_vendor\__init__.py) 
ERROR: invocation failed (exit code 1)
ERROR: could not install deps [-rrequirements/test.txt]; v = InvocationError("'C:\\Users\\write\\Desktop\\smalld.py\\.tox\\py38\\Scripts\\python.EXE' -m 
pip install -rrequirements/test.txt", 1)
py38 finish: getenv C:\Users\write\Desktop\smalld.py\.tox\py38 after 4.45 seconds
_______________________________________________________________________ summary ________________________________________________________________________
ERROR:   py38: could not install deps [-rrequirements/test.txt]; v = InvocationError("'C:\\Users\\write\\Desktop\\smalld.py\\.tox\\py38\\Scripts\\python.EXE' -m pip install -rrequirements/test.txt", 1)
cleanup C:\Users\write\Desktop\smalld.py\.tox\.tmp\package\1\smalld-0.0.0.tar.gz

@gaborbernat
Copy link
Member

There's something broken with the virtualenv alongside tox. Can you try to reinstall tox with -m pip install tox -U --force-reinstall and also then do -m virtualenv --reset-app-data venv afterwards? Feel free to delete venv created at this point. Run again tox and see if it changes.

@NevilleMthw
Copy link
Author

Yeah I did both of those commands, it doesn't change anything. I restarted the IDE, checked the PATH variables for Python and even cloned the repo again to see if there was any change.

@gaborbernat
Copy link
Member

The underlying issues seem to be a virtualenv bug; there is a pip has no dist-info within... I'm fairly certain that pypa/virtualenv#1841 will fix this, but that's probably a week away from release.

@NevilleMthw
Copy link
Author

Oh okay thank you, will keep a lookout for it.

@jadchaar
Copy link

jadchaar commented Jul 21, 2020

We have been getting InvocationErrors often on Arrow's CI pipeline runs with pypy3/tox/pytest on Windows over the past few days. I have attached the logs from our latest failure (and added a quick snippet):

2020-07-21T05:14:21.6753567Z ##[group]Run tox
2020-07-21T05:14:21.6753772Z �[36;1mtox�[0m
2020-07-21T05:14:21.6800545Z shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
2020-07-21T05:14:21.6800673Z env:
2020-07-21T05:14:21.6800790Z   pythonLocation: C:\hostedtoolcache\windows\PyPy\3.6.9\x86
2020-07-21T05:14:21.6800903Z ##[endgroup]
2020-07-21T05:14:23.6807518Z GLOB sdist-make: D:\a\arrow\arrow\setup.py
2020-07-21T05:14:25.6537606Z pypy3 create: D:\a\arrow\arrow\.tox\pypy3
2020-07-21T05:14:32.5752546Z pypy3 installdeps: -rrequirements.txt
2020-07-21T05:15:52.9389420Z pypy3 inst: D:\a\arrow\arrow\.tox\.tmp\package\1\arrow-0.15.8.zip
2020-07-21T05:15:59.8911860Z pypy3 installed: alabaster==0.7.12,appdirs==1.4.4,arrow @ file:///D:/a/arrow/arrow/.tox/.tmp/package/1/arrow-0.15.8.zip,atomicwrites==1.4.0,attrs==19.3.0,Babel==2.8.0,certifi==2020.6.20,cffi==1.14.0,cfgv==3.1.0,chardet==3.0.4,colorama==0.4.3,coverage==5.2,dateparser==0.7.6,distlib==0.3.1,docutils==0.16,filelock==3.0.12,greenlet==0.4.13,identify==1.4.24,idna==2.10,imagesize==1.2.0,importlib-metadata==1.7.0,importlib-resources==3.0.0,Jinja2==2.11.2,MarkupSafe==1.1.1,more-itertools==8.4.0,nodeenv==1.4.0,packaging==20.4,pluggy==0.13.1,pre-commit==2.6.0,py==1.9.0,Pygments==2.6.1,pyparsing==2.4.7,pytest==5.4.3,pytest-cov==2.10.0,pytest-mock==3.2.0,python-dateutil==2.8.1,pytz==2019.3,PyYAML==5.3.1,readline==6.2.4.1,regex==2020.7.14,requests==2.24.0,simplejson==3.17.2,six==1.15.0,snowballstemmer==2.0.0,Sphinx==3.1.2,sphinxcontrib-applehelp==1.0.2,sphinxcontrib-devhelp==1.0.2,sphinxcontrib-htmlhelp==1.0.3,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-qthelp==1.0.3,sphinxcontrib-serializinghtml==1.1.4,toml==0.10.1,tzlocal==2.1,urllib3==1.25.9,virtualenv==20.0.27,wcwidth==0.2.5,zipp==3.1.0
2020-07-21T05:15:59.8922318Z pypy3 run-test-pre: PYTHONHASHSEED='672'
2020-07-21T05:15:59.8925754Z pypy3 run-test: commands[0] | pytest
2020-07-21T05:16:03.5643252Z ============================= test session starts =============================
2020-07-21T05:16:03.5658691Z platform win32 -- Python 3.6.9[pypy-7.3.1-final], pytest-5.4.3, py-1.9.0, pluggy-0.13.1 -- d:\a\arrow\arrow\.tox\pypy3\scripts\python.exe
2020-07-21T05:16:03.6345620Z cachedir: .tox\pypy3\.pytest_cache
2020-07-21T05:16:03.6351084Z rootdir: D:\a\arrow\arrow, inifile: tox.ini
2020-07-21T05:16:03.6357114Z plugins: cov-2.10.0, mock-3.2.0
2020-07-21T05:16:21.2570843Z collecting ... ERROR: InvocationError for command 'D:\a\arrow\arrow\.tox\pypy3\Scripts\pytest.EXE' (exited with code 3221225477)
2020-07-21T05:16:21.2580176Z ___________________________________ summary ___________________________________
2020-07-21T05:16:21.2580810Z ERROR:   pypy3: commands failed
2020-07-21T05:16:21.4439553Z ##[error]Process completed with exit code 1.
2020-07-21T05:16:21.4614085Z Post job cleanup.
2020-07-21T05:16:33.1601402Z [command]"C:\Program Files\Git\bin\git.exe" version
2020-07-21T05:16:33.1794129Z git version 2.27.0.windows.1
2020-07-21T05:16:33.1867385Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp core\.sshCommand
2020-07-21T05:16:33.2082625Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2020-07-21T05:16:33.6843655Z [command]"C:\Program Files\Git\bin\git.exe" config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2020-07-21T05:16:33.7010647Z http.https://github.com/.extraheader
2020-07-21T05:16:33.7073964Z [command]"C:\Program Files\Git\bin\git.exe" config --local --unset-all http.https://github.com/.extraheader
2020-07-21T05:16:33.7309869Z [command]"C:\Program Files\Git\bin\git.exe" submodule foreach --recursive "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2020-07-21T05:16:34.2270030Z Cleaning up orphan processes
2020-07-21T05:16:34.2957514Z Terminate orphan process: pid (6204) (vctip)

3_windows-latest (pypy3).txt
Is this related and will pypa/virtualenv#1841 fix this?

This is our tox.ini config and we have not changed much in it the past few weeks.

@gaborbernat gaborbernat changed the title Facing an invocation error through Tox command Facing an invocation error through tox command Jul 21, 2020
@gaborbernat
Copy link
Member

@jadchaar feels to me like a pytest issue. pypa/virtualenv#1841 is unrelated.

@tox-dev tox-dev locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type:question ❔ a question about how things work or if something is a bug or a feature
Projects
None yet
Development

No branches or pull requests

3 participants