Skip to content

ImportError: cannot import name 'Mega' #14

@lucasmacori

Description

@lucasmacori

Hi,

I've cloned and installed the dependencies for python-mega but I've got the following error when executing this script with both python 2 and python 3

from mega import Mega

email = 'my-email'
password = 'my-password'

m = Mega.from_credentials(email, password)

files = m.get_files()

for file in files:
    print(file)

Here's the error I get :

ImportError: cannot import name 'Mega'

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