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
If you are using this on the server then you might get a problem with the print("line 16: mode: byte") part if you don't want to fork the repo to fix it you can monkey patch the print() function like this.
importosfromMyQRimportmyqrimportbuiltinsdefcustom_print(*args, **kwargs):
passprint("print called")
original_print=printbuiltins.print=custom_printprint("now print is also called but should not show up")
version, level, qr_name=myqr.run(
"https://somesite.eu",
version=1,
level='H',
picture='./tmp/lab.gif',
colorized=True,
contrast=1.0,
brightness=1.0,
save_name='tmp/labout.gif',
save_dir=os.getcwd()
)
builtins.print=original_printprint("now print should also show up agian")
The text was updated successfully, but these errors were encountered:
If you are using this on the server then you might get a problem with the
print("line 16: mode: byte")
part if you don't want to fork the repo to fix it you can monkey patch theprint()
function like this.The text was updated successfully, but these errors were encountered: