Launch script issues

36 views
Skip to first unread message

Paul Jerem

unread,
Oct 2, 2020, 9:04:08 AM10/2/20
to autopilot-users
Hi there,

I've successfully forked/installed Autopilot on MacOS 10.4.4/Python 3.8.5 (following the instructions here). Running the setup routine for a terminal agent also seemed to work fine, giving:

--------------------------------
Environment Configuration:
  [ SUCCESS ] virtualenv detected, path: /Users/pauljerem/.virtualenvs/autopilot

Additional Messages:  Launch file created at /Users/pauljerem/autopilot/launch_autopilot.sh
--------------------------------


(albeit with the following warning):

/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py:127: RuntimeWarning: 'autopilot.setup.setup_autopilot' found in sys.modules after import of package 'autopilot.setup', but prior to execution of 'autopilot.setup.setup_autopilot'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))


However, when I try to run the launch script (sh launch_autopilot.sh), I get:

/Users/pauljerem/PycharmProjects/autopilot/autopilot/autopilot/core/terminal.py:251: DeprecationWarning: QDesktopWidget.availableGeometry(int screen) const is deprecated
  winsize = app.desktop().availableGeometry()
/Users/pauljerem/PycharmProjects/autopilot/autopilot/autopilot/core/terminal.py:343: DeprecationWarning: QDesktopWidget.screenGeometry(int screen) const is deprecated
  screensize = app.desktop().screenGeometry()
/Users/pauljerem/PycharmProjects/autopilot/autopilot/autopilot/core/terminal.py:344: DeprecationWarning: QDesktopWidget.availableGeometry(int screen) const is deprecated
  winsize = app.desktop().availableGeometry()
/Users/pauljerem/PycharmProjects/autopilot/autopilot/autopilot/core/terminal.py:372: DeprecationWarning: QDesktopWidget.availableGeometry(int screen) const is deprecated
  primary_display = app.desktop().availableGeometry(0)
INFO:main:Net Node Initialized
Traceback (most recent call last):
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 194, in _run_module_as_main
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 87, in _run_code
  File "/Users/pauljerem/PycharmProjects/autopilot/autopilot/autopilot/core/terminal.py", line 911, in <module>
  File "/Users/pauljerem/PycharmProjects/autopilot/autopilot/autopilot/core/terminal.py", line 188, in __init__
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/process.py", line 121, in start
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/context.py", line 224, in _Popen
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/context.py", line 284, in _Popen
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in __init__
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 47, in _launch
  File "/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/reduction.py", line 60, in dump
TypeError: cannot pickle '_thread.RLock' object

Do you have any idea what the issue might be? I'm very much a Python novice (much more of an R user...), so please forgive me if I've just made a rookie error! :)

Thanks v. much,

Paul.

Luke Sjulson

unread,
Oct 25, 2020, 12:00:00 PM10/25/20
to autopilot-users
I think you need to set up and use an environment with python 3.7 instead of 3.8. 

jlsaun...@gmail.com

unread,
Oct 25, 2020, 6:09:34 PM10/25/20
to autopilot-users
Haven't seen this one before, but yes there are some things that need to be fixed for a bump to 3.8 -- currently  the major thing holding back the bump is that the spinnaker camera drivers only support 3.7, but I think we should move to using Aravis to not have to rely on closed-source packages like that. If making a venv with 3.7 fixes the problem then good, but if not submit as an issue and i'll chase down. In the meantime have made requirement of 3.7.* more explicit here: https://github.com/wehr-lab/autopilot/commit/01543a9708d4bf06c74dc6af6fc7e8917331fc98

Paul Jerem

unread,
Oct 26, 2020, 11:59:17 AM10/26/20
to autopilot-users
Thanks both - will try again with 3.7.
Reply all
Reply to author
Forward
0 new messages