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

awsume development on python 3.12 #264

Closed
cspotcode opened this issue Jun 27, 2024 · 4 comments
Closed

awsume development on python 3.12 #264

cspotcode opened this issue Jun 27, 2024 · 4 comments

Comments

@cspotcode
Copy link

Is there a developer guide to clone, develop, and run tests for awsume?

On python 3.12, pip install pipenv and then pipenv gives an error traceback about module 'collections' has no attribute 'MutableMapping':

❯ pipenv
Traceback (most recent call last):
  File "/usr/bin/pipenv", line 33, in <module>
    sys.exit(load_entry_point('pipenv==11.9.0', 'console_scripts', 'pipenv')())
  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 696, in main
    with self.make_context(prog_name, args, **extra) as ctx:
  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 621, in make_context
    self.parse_args(ctx, args)
  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 1018, in parse_args
    rest = Command.parse_args(self, ctx, args)
  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 875, in parse_args
    parser = self.make_parser(ctx)
  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 821, in make_parser
    for param in self.get_params(ctx):
  File "/usr/lib/python3/dist-packages/pipenv/vendor/click/core.py", line 774, in get_params
    help_option = self.get_help_option(ctx)
  File "/usr/lib/python3/dist-packages/pipenv/cli.py", line 26, in get_help_option
    from .import core
  File "/usr/lib/python3/dist-packages/pipenv/core.py", line 21, in <module>
    import requests
  File "/usr/lib/python3/dist-packages/pipenv/vendor/requests/__init__.py", line 65, in <module>
    from . import utils
  File "/usr/lib/python3/dist-packages/pipenv/vendor/requests/utils.py", line 27, in <module>
    from .cookies import RequestsCookieJar, cookiejar_from_dict
  File "/usr/lib/python3/dist-packages/pipenv/vendor/requests/cookies.py", line 172, in <module>
    class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'

Python isn't my main development environment, so I'd rather not go down a rabbit hole learning all the intricacies and gotchas of python's venv / dependency management landscape. Is there a quick guide to setting up a dev environment for awsume?

@cspotcode
Copy link
Author

I see the test matrix doesn't run on anything newer than python 3.9; is that related?

python-version: [ '3.7', '3.8', '3.9' ]

@lhendrick-t10
Copy link
Collaborator

Hey there @cspotcode! Can you provide your pipenv version?
Screenshot 2024-07-12 at 9 29 21 AM

Based on that error message it looks like it may be 11.9.0 which does not support 3.12 - I had to update this in our test matrix as well because we were also using an older version

@cspotcode
Copy link
Author

cspotcode commented Jul 13, 2024 via email

@mtskillman
Copy link
Collaborator

per above comments, considering issue as resolved

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

No branches or pull requests

3 participants