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

async.py conflicts with dist-package pyexpect #52

Closed
palevell opened this issue Oct 17, 2018 · 2 comments
Closed

async.py conflicts with dist-package pyexpect #52

palevell opened this issue Oct 17, 2018 · 2 comments

Comments

@palevell
Copy link

Issue:
my-weather-indicator quit working after being updated by apt-get on Ubuntu 18.04. The syslog reports a syntax error (see below).

Error:

File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 47, in <module>
 import preferences
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/preferences.py", line 27, in <module>
 from whereami import WhereAmI
File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/whereami.py", line 33
 from async import async_function
          ^
 SyntaxError: invalid syntax

Files:

  • /opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/async.py
  • /opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/whereami.py
  • /usr/lib/python3/dist-packages/pexpect/async.py

Workaround:
rename my-weather-indicator's async.py to async_.py and edit whereami.py as follows:

# 2018-Oct-17 PAL - Renamed async.py to async_.py, due to a conflict with
#                   /usr/lib/python3/dist-packages/pexpect/async.py (Python 3.6+)
# from async import async_function
from async_ import async_function
@Spurlos
Copy link

Spurlos commented Apr 19, 2019

Got this issue while upgrading to 19.10 today.
@atareao any chance to patch it and do a bugfix release?

@atareao
Copy link
Owner

atareao commented Apr 19, 2019

I will work on this next week to fix it.
Thanks

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