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

chore: upgrade py 3.6 to 3.11 #99

Closed
wants to merge 2 commits into from
Closed

chore: upgrade py 3.6 to 3.11 #99

wants to merge 2 commits into from

Conversation

dmeecs
Copy link
Contributor

@dmeecs dmeecs commented Mar 29, 2023

Seems to be going ok except when I run tox, it's giving me an error like so:

➜  cloudsmith-cli git:(chore/python-311) ✗ tox
Traceback (most recent call last):
  File "/Users/dmee/github/cloudsmith-cli/.venv/py3/lib/python3.11/site-packages/py/_vendored_packages/apipkg.py", line 141, in __makeattr
    modpath, attrname = self.__map__[name]
                        ~~~~~~~~~~~~^^^^^^
KeyError: '__spec__'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/dmee/github/cloudsmith-cli/.venv/py3/bin/tox", line 8, in <module>
    sys.exit(cmdline())
             ^^^^^^^^^
  File "/Users/dmee/github/cloudsmith-cli/.venv/py3/lib/python3.11/site-packages/tox/session.py", line 39, in main
    config = prepare(args)
             ^^^^^^^^^^^^^
  File "/Users/dmee/github/cloudsmith-cli/.venv/py3/lib/python3.11/site-packages/tox/session.py", line 27, in prepare
    config = parseconfig(args)
             ^^^^^^^^^^^^^^^^^
  File "/Users/dmee/github/cloudsmith-cli/.venv/py3/lib/python3.11/site-packages/tox/config.py", line 217, in parseconfig
    config = Config(pluginmanager=pm, option=option, interpreters=interpreters)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dmee/github/cloudsmith-cli/.venv/py3/lib/python3.11/site-packages/tox/config.py", line 595, in __init__
    self.invocationcwd = py.path.local()
                         ^^^^^^^^^^^^^
  File "/Users/dmee/github/cloudsmith-cli/.venv/py3/lib/python3.11/site-packages/py/_vendored_packages/apipkg.py", line 148, in __makeattr
    result = importobj(modpath, attrname)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/dmee/github/cloudsmith-cli/.venv/py3/lib/python3.11/site-packages/py/_vendored_packages/apipkg.py", line 69, in importobj
    module = __import__(modpath, None, None, ['__doc__'])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1138, in _find_and_load_unlocked
  File "/Users/dmee/github/cloudsmith-cli/.venv/py3/lib/python3.11/site-packages/py/_vendored_packages/apipkg.py", line 146, in __makeattr
    raise AttributeError(name)
AttributeError: __spec__

which seems to be an issue with pytests 'py' dependency tox-dev/tox#2249

@chrisimcevoy
Copy link
Contributor

@dmeecs closing this in favour of #136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants