Changes needed for Python 3.7

Bug #1817515 reported by Robert Tari
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
my-weather-indicator
New
Undecided
Unassigned

Bug Description

Starting from Python 3.7 "async" is a reserved word, so the async.py module will not import. Here is what needs to change:

1. async.py:
rename async.py to myasync.py

2. whereami.py:33
"from async import async_function" --> "from myasync import async_function"

3. debian/md5sums:54
f0cd9a66d9ce38828748bc37c230e693 opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/async.py --> f0cd9a66d9ce38828748bc37c230e693 opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myasync.py

Revision history for this message
Jan Wester (j-vester) wrote :

Since ubuntu disco dingo (19.04) is released, and disco dingo is delievered with python 3.7, my-weather-indicator does not work any longer. Looking in the crash file definitively proves that the problem is the one described above.

Revision history for this message
Jan Wester (j-vester) wrote :

my-weather-indicator now seems to work for systems that was upgraded to disco dingo and where the my-weather-indicator earlier worked. but it does not seem to work on systems that were installed without webkit-3.0. and that is not installed on disco dingo from start. It says Depends on: gir1.2-webkit-3.0. Disco dingo is delievered with gir1.2-webkit2-4.0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.