Project

General

Profile

Actions

Bug #5111

closed

python3.5 support regression

Added by roh almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
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

Actions #1

Updated by fixeria almost 3 years ago

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

Actions #2

Updated by laforge almost 3 years 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
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)