You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug with old version of Python (< 3.8). The functions get_args and get_origin of the dataclass package are missing (because implemented in Python 3.8). The program won't start without these two functions.
I also noticed that some distributions always run Python 3.7 (Debian for instance). It means that the program wouldn't run on these distributions even if the user's packages are "up-to-date".
A solution can be to implement an alternative version of these two functions and check the Python's version. If it's below 3.8 then we could use our handmade functions, otherwise we would use the ones in the dataclass package. It hurts to develop such a ugly fix but I guess we don't have much solution if we want smersh-cli to run on almost every distribution.
The text was updated successfully, but these errors were encountered:
There is a bug with old version of Python (< 3.8). The functions
get_args
andget_origin
of the dataclass package are missing (because implemented in Python 3.8). The program won't start without these two functions.I also noticed that some distributions always run Python 3.7 (Debian for instance). It means that the program wouldn't run on these distributions even if the user's packages are "up-to-date".
A solution can be to implement an alternative version of these two functions and check the Python's version. If it's below 3.8 then we could use our handmade functions, otherwise we would use the ones in the
dataclass
package. It hurts to develop such a ugly fix but I guess we don't have much solution if we want smersh-cli to run on almost every distribution.The text was updated successfully, but these errors were encountered: