-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
ModuleNotFoundError: When running RFSwarm-Agent on Python 3.12 #177
Comments
Build examples: ubuntu-latest 3.12: https://github.com/damies13/rfswarm/actions/runs/7933990270/job/21663969339 |
This works on Python 3.9.10
|
https://docs.python.org/3.11/library/importlib.metadata.html#module-importlib.metadata module importlib.metadata
|
And also as give a little performance boost to python versions 3.8 - 3.11
Now the agent appears fixed on 3.12, the manager is getting errors when trying to run the test case Turning this issue into a general any python 3.12 related issues until test case I created for Issue #171 can run sucessfully under python 3.12 New Error (repeats over and over:
|
Maybe related |
This looks related Still need to investigate more |
Attempts to resolve RuntimeError: can't create new thread at interpreter shutdown Issue #177
Also probbaly related https://stackoverflow.com/questions/2846653/how-do-i-use-threading-in-python This is begining to look like a bigger issue than I expected |
I think I'm being impacted by this bug: |
This is interesting, looks like the is a workaround with sleep? |
Workaround in python/cpython#113964 worked Now just tuned from 300 sec to 10 sec in the loop, no need to wait 5 min after base.run_dbthread is set false, 10 sec should be plenty, actually 1 would probably be enough. Cut debugging in test back to level 1 Issue #177
Fixes for Issue #177 merged into release branch v1.2.1 |
All tests and linter passed |
ModuleNotFoundError: When running RFSwarm-Agent on Python 3.12
Occurs on Windows, MacOS & Ubuntu github actions,
but interestingly though the help and version screens fail it appears the agent will actually run robots with this error.Traceback (most recent call last):
File "/Users/runner/work/rfswarm/rfswarm/rfswarm_agent/rfswarm_agent.py", line 34, in
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
The text was updated successfully, but these errors were encountered: