Comments (3)
I have got a similar issues:
E
======================================================================
ERROR: test_get_file (__main__.TestMega)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 55, in test_get_file
Mega.from_credentials(self._email, self._password).get_files()
File "/Users/Matt3o12/Documents/Developing/py/mega-api/mega/mega.py", line 112, in get_files
key = decrypt_key(base64_to_a32(key), self.master_key)
File "/Users/Matt3o12/Documents/Developing/py/mega-api/mega/crypto.py", line 58, in decrypt_key
for i in xrange(0, len(a), 4)), ())
File "/Users/Matt3o12/Documents/Developing/py/mega-api/mega/crypto.py", line 58, in <genexpr>
for i in xrange(0, len(a), 4)), ())
File "/Users/Matt3o12/Documents/Developing/py/mega-api/mega/crypto.py", line 24, in aes_cbc_decrypt_a32
return str_to_a32(aes_cbc_decrypt(a32_to_str(data), a32_to_str(key)))
File "/Users/Matt3o12/Documents/Developing/py/mega-api/mega/crypto.py", line 16, in aes_cbc_decrypt
return decryptor.decrypt(data)
File "build/bdist.macosx-10.8-intel/egg/Crypto/Cipher/blockalgo.py", line 295, in decrypt
return self._cipher.decrypt(ciphertext)
ValueError: Input strings must be a multiple of 16 in length
----------------------------------------------------------------------
Ran 1 test in 4.502s
from python-mega.
Ive also ran into this issue while trying to download from a url, however only sometimes I believe it may be the request taking too long to respond.
from python-mega.
Same here:
======================================================================
ERROR: test_get_quota (__main__.TestMega)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 40, in test_get_quota
resp = m.get_quota()
File "C:\Python27\lib\site-packages\mega\mega.py", line 321, in get_quota
json_resp = self._api_request({'a': 'uq', 'xfer': 1})
File "C:\Python27\lib\site-packages\mega\mega.py", line 111, in _api_request
json_resp = json.loads(req.text)
File "C:\Python27\lib\json\__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "C:\Python27\lib\json\decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Python27\lib\json\decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
----------------------------------------------------------------------
Ran 16 tests in 21.788s
FAILED (errors=1)
from python-mega.
Related Issues (11)
- Python 3 support HOT 20
- Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/4c/qjnnzbf17w7dbttpwsjr1_vw0000gn/T/pip-build-bioziida/python-mega/ HOT 2
- ImportError: cannot import name 'Mega' HOT 3
- Cannot install the python-mega package
- PyCrypto is dead
- can't install your lib HOT 1
- Handle failed integrity checks
- Tests failing & Can't upload (ENOENT)
- 'Mega' object has no attribute 'root_id' HOT 2
- SSL error: "SSL23_GET_SERVER_HELLO:unknown protocol" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-mega.