Project

General

Profile

Bug #5111

python3.5 support regression

Added by roh 6 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/09/2021
Due date:
% Done:

100%

Spec Reference:

Description

in one the last few updates for pysim we broke python3.5 support

debian9 oldstable ships with 3.5.3
also some libs are quite old, e.g. cmd2
the ones from backport are also too old.

using pip3 to install the most recent python packages fixes these lib issues. i think thats ok as a workaround for debian9 dependencies.

but i still get this issue:

$ ./pySim-read.py 
Traceback (most recent call last):
  File "./pySim-read.py", line 31, in <module>
    from pySim.ts_51_011 import EF, DF, EF_SST_map, EF_AD_mode_map
  File "/home/roh/kunde/sysmocom/git.admin.sysmocom.de/pysim/pySim/ts_51_011.py", line 336, in <module>
    from pySim.filesystem import *
  File "/home/roh/kunde/sysmocom/git.admin.sysmocom.de/pysim/pySim/filesystem.py", line 68
    self.shell_commands: List[CommandSet] = []
                       ^
SyntaxError: invalid syntax

same goes for pySim-prog.py and pySim-shell.py

Associated revisions

Revision a0040792 (diff)
Added by fixeria 6 months ago

pySim/filesystem.py: fix compatibility with Python 3.5

Change-Id: Ia4021551bcd28e6020958964f6f4e9b6dc989d94
Related: OS#5111

History

#1 Updated by fixeria 6 months ago

https://gerrit.osmocom.org/c/pysim/+/23690 pySim/filesystem.py: fix compatibility with Python 3.5 [NEW]

#2 Updated by laforge 6 months ago

  • Status changed from New to Resolved
  • Assignee set to laforge
  • % Done changed from 0 to 100
14:35 <@LaF0rge> roh: I've tested my current pySim master (laforge/wip on gerrit/git.osmocom.org) on 
                 Debian9 and it works just fine

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)