Skip to content
Success

Changes

Summary

  1. fix downstream error: ImportError: cannot import name 'style' from (details)
  2. pySim.runtime: Fix file selection by upper case hex FID (details)
Commit ff4f2491b817fef3271a5d8135c95764f2f66d41 by Neels Hofmeyr
fix downstream error: ImportError: cannot import name 'style' from 'cmd2'

cmd2 version 3.0 was released, with significant API changes. Limit the
dependency to below 3.0, as already reflected in requirements.txt.

Seeing but not changing the discrepancy in minimum version:
requirements.txt has >2.6.2 while setup.py has >= 1.5.0.

Related: SYS#7775 SYS#7777
Change-Id: I5186f242dbc1b770e3ab8cdca7f27d2a1029fff6
The file was modifiedsetup.py
Commit 572a81f2af6682f2044f8f9df81aec661fa56ac8 by laforge
pySim.runtime: Fix file selection by upper case hex FID

When trying to remove a file (e.g. DF.5G_ProSe, 5FF0),
there seems to be a case sensitive check when checking for the dict:
pySim/runtime.py: get_file_for_filename():

478          def get_file_for_filename(self, name: str):
479              """Get the related CardFile object for a specified filename."""
480              sels = self.selected_file.get_selectables()
481              return sels[name]

The dict sels contains 5ff0, but not 5FF0.
The type of argument name is str. So a case sensitive check will be used.

Change-Id: Idd0db1f4bbd3ee9eec20f5fd0f4371c2882950cd
Closes: OS#6898
The file was modifiedpySim/runtime.py