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

ImportError: cannot import name 'Mega' #14

Open
lucasmacori opened this issue May 2, 2018 · 3 comments
Open

ImportError: cannot import name 'Mega' #14

lucasmacori opened this issue May 2, 2018 · 3 comments

Comments

@lucasmacori
Copy link

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'

@lhy1024
Copy link

lhy1024 commented Mar 8, 2019

I met the same problem. I think your test filename may be "mega.py" . You can try to change its name.

@clockzhong
Copy link

I got the same error, it should be a bug.
I installed it from public pip repo as:
sudo pip install python-mega
but still face the same problems

@ccxx777
Copy link

ccxx777 commented Jan 9, 2023

I find a solution,install 1.0.7vision

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

4 participants