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

AttributeError: module 'marathon' has no attribute 'MarathonClient' #100

Closed
rajivreddy opened this issue May 11, 2016 · 2 comments
Closed

Comments

@rajivreddy
Copy link

rajivreddy commented May 11, 2016

Hi,

I installed package through pip

when i try to load *_"from marathon import MarathonClient" *_in script, i am getting an error message.
marathon.py file:

import marathon

c = marathon.MarathonClient("http://10.10.201.71:8080")

Error:
Traceback (most recent call last):
File "/Users/rajivreddy/PycharmProjects/Ezbuilder/source/marathon.py", line 1, in
import marathon
File "/Users/rajivreddy/PycharmProjects/Ezbuilder/source/marathon.py", line 3, in
c = marathon.MarathonClient("http://10.10.201.71:8080")
AttributeError: module 'marathon' has no attribute 'MarathonClient'

Python Version:
$python --version
Python 3.5.1 :: Continuum Analytics, Inc.

@rajivreddy rajivreddy changed the title Weired error: AttributeError: module 'marathon' has no attribute 'MarathonClient' AttributeError: module 'marathon' has no attribute 'MarathonClient' May 11, 2016
@Rob-Johnson
Copy link
Contributor

I suspect your marathon module is clashing with the one you're trying to import. Try renaming your marathon.py to foo.py and I suspect it'll work just fine.

@rajivreddy
Copy link
Author

Yep,

Thank you

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

2 participants