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

本地不能运行啊 #1

Open
szj1214 opened this issue Feb 19, 2023 · 1 comment
Open

本地不能运行啊 #1

szj1214 opened this issue Feb 19, 2023 · 1 comment

Comments

@szj1214
Copy link

szj1214 commented Feb 19, 2023

PS E:\docker\NeteaseMusic_Upgrade-main> python.exe .\main.py
Traceback (most recent call last):
File "E:\docker\NeteaseMusic_Upgrade-main\main.py", line 191, in
main()
File "E:\docker\NeteaseMusic_Upgrade-main\main.py", line 179, in main
user_cookies, user_uid = code_login()
^^^^^^^^^^^^
File "E:\docker\NeteaseMusic_Upgrade-main\main.py", line 55, in code_login
img.save('code.jpg')
File "D:\Python\Python311\Lib\site-packages\qrcode\image\pure.py", line 26, in save
self._img.write(stream, self.rows_iter())
File "D:\Python\Python311\Lib\site-packages\png.py", line 668, in write
nrows = self.write_passes(outfile, check_rows(rows))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Python311\Lib\site-packages\png.py", line 703, in write_passes
return self.write_packed(outfile, rows)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Python\Python311\Lib\site-packages\png.py", line 723, in write_packed
self.write_preamble(outfile)
File "D:\Python\Python311\Lib\site-packages\png.py", line 771, in write_preamble
outfile.write(signature)
^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'write'

@bighammer-link
Copy link
Owner

可能是你的依赖的问题,你更新一下依赖试试

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