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

pyactr installs, but fails to run w/Python 3.10 #137

Closed
asmaloney opened this issue Jun 2, 2022 · 4 comments
Closed

pyactr installs, but fails to run w/Python 3.10 #137

asmaloney opened this issue Jun 2, 2022 · 4 comments
Labels
bug Something isn't working can't reproduce Need more info because I can't reproduce the problem

Comments

@asmaloney
Copy link
Owner

When trying to run a model on pyactr with Python 3.10:

python package 'pyactr' not found. Please ensure it is installed with pip or is in your PYTHONPATH env variable

The problem here is that pyactr is using a deprecated import for collections.Sequence in chunks.py (& possibly elsewhere?). What was a deprecation warning in Python <= 3.9 is now an error in 3.10.

See: Stack Overflow question

@asmaloney asmaloney added the bug Something isn't working label Jun 2, 2022
@asmaloney
Copy link
Owner Author

Fixes proposed for pyactr. We will need a pyactr pip release so people can run with Python 3.10.

asmaloney added a commit that referenced this issue Jun 5, 2022
Avoid an error message and possible confusion while we wait for #137 to be solved.
@asmaloney
Copy link
Owner Author

pyactr 0.3.1 has been released as a pip package with fixes for this.

Need to update pyactr in requirements.txt to 0.3.1.

@asmaloney asmaloney added the task Small(ish) task that just needs doin' label Jun 8, 2022
@asmaloney
Copy link
Owner Author

Looks like it's still a problem.

When I ran the command that checks this on the command line it worked, so I'm not sure what else is going on here.

@asmaloney asmaloney reopened this Jun 9, 2022
@asmaloney
Copy link
Owner Author

asmaloney commented Jun 10, 2022

Cannot reproduce using homebrew python 3.10.4 on macOS 12.4 or macOS 10.14.6...

If I install everything from scratch it works.

@asmaloney asmaloney added can't reproduce Need more info because I can't reproduce the problem and removed task Small(ish) task that just needs doin' labels Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working can't reproduce Need more info because I can't reproduce the problem
Projects
None yet
Development

No branches or pull requests

1 participant