Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when saving QR Code #51

Open
donenoyes opened this issue Feb 27, 2021 · 1 comment
Open

Error when saving QR Code #51

donenoyes opened this issue Feb 27, 2021 · 1 comment

Comments

@donenoyes
Copy link

donenoyes commented Feb 27, 2021

Windows 10

Traceback (most recent call last):
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\Scripts\wifi-password-script.py", line 33, in <module>
    sys.exit(load_entry_point('wifi-password==1.1.1', 'console_scripts', 'wifi-password')())
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\site-packages\wifi_password-1.1.1-py3.9.egg\wifi_password\wifi_password.py", line 165, in main
  File "C:\Users\username\AppData\Local\Programs\Python\Python39\lib\site-packages\wifi_password-1.1.1-py3.9.egg\wifi_password\wifi_password.py", line 126, in generate_qr_code
  File "C:\Users\username\AppData\Roaming\Python\Python39\site-packages\qrcode\image\pil.py", line 50, in save
    self._img.save(stream, format=format, **kwargs)
  File "C:\Users\username\AppData\Roaming\Python\Python39\site-packages\PIL\Image.py", line 2161, in save
    fp = builtins.open(filename, "w+b")
OSError: [Errno 22] Invalid argument: 'Name\r.png'h

@sdushantha
Copy link
Owner

@donenoyes This seems odd. I'm not sure why there is a \r character. Is the name of your SSID Name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants