fbchat-dev / fbchat

Facebook Chat (Messenger) for Python
https://fbchat.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.19k stars 412 forks source link

AttributeError: 'module' object has no attribute 'signature' #136

Closed Kudu closed 7 years ago

Kudu commented 7 years ago

I get the following error when attempting to simply initialize the client:

Traceback (most recent call last):
  File "test.py", line 25, in <module>
    client = fbchat.Client(fb_username, fb_password)
  File "/usr/local/lib/python2.7/dist-packages/fbchat/client.py", line 113, in __init__
    self.onLoggingIn += lambda email: log.info("Logging in %s..." % email)
  File "/usr/local/lib/python2.7/dist-packages/fbchat/event_hook.py", line 26, in __iadd__
    params = inspect.signature(handler).parameters
AttributeError: 'module' object has no attribute 'signature'
madsmtm commented 7 years ago

I accidentally merged a PR before it was ready, so this is the cause. Try updating fbchat again :)

Dainius14 commented 7 years ago

Are you on Python 2?

neenams commented 7 years ago

Could you please share what is this error ? and how to revolve it ? I am getting similar error on open BMC compilation

madsmtm commented 7 years ago

@neenams the code responsible for causing this issue has been completely removed, maybe you could open a seperate issue, and include some code & stack trace