Skip to content

can't install and run the command-line program: invalid escape sequence #1127

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

Open
realyukii opened this issue Mar 23, 2025 · 0 comments
Open

Comments

@realyukii
Copy link

$ uvx facebook-scraper --help
      Built demjson3==3.0.6
      Built websockets==10.4
Installed 31 packages in 10ms
/home/reyuki/.cache/uv/archive-v0/IaEeXp2eS31YqlKsb3Gw2/lib/python3.13/site-packages/facebook_scraper/facebook_scraper.py:885: SyntaxWarning: invalid escape sequence '\d'
  post_url = re.search("\d+", url).group()
Traceback (most recent call last):
  File "/home/reyuki/.cache/uv/archive-v0/IaEeXp2eS31YqlKsb3Gw2/bin/facebook-scraper", line 6, in <module>
    from facebook_scraper.__main__ import run
  File "/home/reyuki/.cache/uv/archive-v0/IaEeXp2eS31YqlKsb3Gw2/lib/python3.13/site-packages/facebook_scraper/__init__.py", line 13, in <module>
    from .facebook_scraper import FacebookScraper
  File "/home/reyuki/.cache/uv/archive-v0/IaEeXp2eS31YqlKsb3Gw2/lib/python3.13/site-packages/facebook_scraper/facebook_scraper.py", line 15, in <module>
    from requests_html import HTMLSession
  File "/home/reyuki/.cache/uv/archive-v0/IaEeXp2eS31YqlKsb3Gw2/lib/python3.13/site-packages/requests_html.py", line 14, in <module>
    from lxml.html.clean import Cleaner
  File "/home/reyuki/.cache/uv/archive-v0/IaEeXp2eS31YqlKsb3Gw2/lib/python3.13/site-packages/lxml/html/clean.py", line 18, in <module>
    raise ImportError(
    ...<2 lines>...
    ) from None
ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
Install lxml[html_clean] or lxml_html_clean directly.
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