python-mega icon indicating copy to clipboard operation
python-mega copied to clipboard

'Mega' object has no attribute 'root_id'

Open rogcg opened this issue 12 years ago • 2 comments

when trying to upload a file, i have this error in the uploadfile method:

File "/home/rogcg/projects/myapp/mega/mega.py", line 207, in uploadfile
    root_id = getattr(self, 'root_id')
AttributeError: 'Mega' object has no attribute 'root_id'

i have logged the self instance on the uploadfile method like this: self.__dict__ to see the attributes in the self instance, and the only attributes logged were:

seqno, rsa_private_key, master_key and sid

i've also checked if this attribute is present on the self instance by doing hasattr(self, 'root_id'), and there is no root_id attribute. where does this root_id attribute comes from? how is it set. any explanation on that?

anyways, the error is in mega.py file, line 207. if anyone could check that.

thanks.

rogcg avatar Jun 09 '13 23:06 rogcg

I'm having the same issue; @rogcg, were you able to find a solution?

yusufhm avatar Aug 10 '13 07:08 yusufhm

@yusufhm unfortunately not.

rogcg avatar Sep 02 '13 17:09 rogcg