On 19/07/2022 10:17, Jani Partanen wrote:
Sorry to jump in but could you suggest something what is quite much
default programs, not something that works only debian or something..
lsdrv on Fedora 36 spit this:
./lsdrv
File "/root/lsdrv/./lsdrv", line 323
os.mkdir('/dev/block', 0755)
^
SyntaxError: leading zeros in decimal integer literals are not
permitted; use an 0o prefix for octal integers
Well, LAST I TRIED, it worked fine on gentoo, so it's certainly not
Debian-specific.
I did have to tell it to use Python 2.7 because gentoo defaulted to 3.
Apparently it's since been updated, but I haven't (tried to) use it for
a while.
I've just googled your error, and it looks like a Python-2-ism, so it's
nothing to do with the distro, and everything to do with the Python
version change. (As I did warn about in my original post!)
Cheers,
Wol