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

Ubuntu下运行报错 #1

Open
justghostof opened this issue Oct 30, 2018 · 0 comments
Open

Ubuntu下运行报错 #1

justghostof opened this issue Oct 30, 2018 · 0 comments

Comments

@justghostof
Copy link

Traceback (most recent call last):
File "163music_download.py", line 128, in
main()
File "163music_download.py", line 125, in main
spider.run()
File "163music_download.py", line 106, in run
songs = self.__get_songs(name)
File "163music_download.py", line 70, in __get_songs
data = wyy.get_data()
File "163music_download.py", line 50, in get_data
params = self.aes_encrypt(self.d,self.g)
File "163music_download.py", line 38, in aes_encrypt
encryptor = AES.new(key, AES.MODE_CBC, iv)
File "/usr/local/lib/python3.6/dist-packages/Crypto/Cipher/AES.py", line 206, in new
return _create_cipher(sys.modules[name], key, mode, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/Crypto/Cipher/init.py", line 79, in _create_cipher
return modes[mode](factory, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/Crypto/Cipher/_mode_cbc.py", line 234, in _create_cbc_cipher
cipher_state = factory._create_base_cipher(kwargs)
File "/usr/local/lib/python3.6/dist-packages/Crypto/Cipher/AES.py", line 102, in _create_base_cipher
result = start_operation(c_uint8_ptr(key),
File "/usr/local/lib/python3.6/dist-packages/Crypto/Util/_raw_api.py", line 196, in c_uint8_ptr
raise TypeError("Object type %s cannot be passed to C code" % type(data))
TypeError: Object type <class 'str'> cannot be passed to C code

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

1 participant