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

Attribute Error: module has no attribute Client #5

Closed
aviaryan opened this issue Sep 26, 2015 · 1 comment
Closed

Attribute Error: module has no attribute Client #5

aviaryan opened this issue Sep 26, 2015 · 1 comment

Comments

@aviaryan
Copy link

Hello
I am using Python x64 3.4.3 on Windows 8.1. When I try to run the sample code you provided, I face the following error.

Traceback (most recent call last):
  File "S:\Dev\python\fbchat.py", line 1, in <module>
    import fbchat
  File "S:\Dev\python\fbchat.py", line 3, in <module>
    client = fbchat.Client("YOUR_ID", "YOUR_PASSWORD")
AttributeError: 'module' object has no attribute 'Client'

The interesting thing is that your lib works perfectly when I run the same code in the Python shell. But when I save the code in a file script.py and call python script.py, it gives me the error.

@aviaryan
Copy link
Author

Never mind, my file was named as fbchat.py so import fbchat imported the file itself.

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

1 participant