Skip to content

Parser issue with lxml + bs4 #119

@tshrjn

Description

@tshrjn

I'm getting the following error:

Traceback (most recent call last):
  File "login.py", line 30, in <module>
    client = fbchat.Client(os.environ['FB_ID'], os.environ['FB_PASS'])
  File "/Users/tshrjn/anaconda3/lib/python3.5/site-packages/fbchat/client.py", line 122, in __init__
    self.login(email, password, max_retries)
  File "/Users/tshrjn/anaconda3/lib/python3.5/site-packages/fbchat/client.py", line 281, in login
    if not self._login():
  File "/Users/tshrjn/anaconda3/lib/python3.5/site-packages/fbchat/client.py", line 224, in _login
    soup = bs(self._get(MobileURL).text, "lxml")
  File "/Users/tshrjn/anaconda3/lib/python3.5/site-packages/bs4/__init__.py", line 165, in __init__
    % ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

On looking around, I found that this used to be a bs4 issue which got resolved in its 4.0.3 update.
Versions I am using are as follows:

pip list
beautifulsoup4 (4.5.3)
fbchat (0.7.1)
lxml (3.7.3)

Please help me resolve this issue cause I'm not even able to login.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions