Skip to content

'Mega' object has no attribute 'root_id' #6

@rogcg

Description

@rogcg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions