Hi!
Installed scrapy and just trying to start the tutorial gives me that:
scrapy startproject tutorial
Traceback (most recent call last):
File "/home/fred/.local/bin/scrapy", line 5, in <module>
from scrapy.cmdline import execute
File
"/home/fred/.local/lib/python3.12/site-packages/scrapy/__init__.py",
line 12, in <module>
from scrapy.http import FormRequest, Request
File
"/home/fred/.local/lib/python3.12/site-packages/scrapy/http/__init__.py",
line 10, in <module>
from scrapy.http.request.form import FormRequest
File
"/home/fred/.local/lib/python3.12/site-packages/scrapy/http/request/form.py",
line 19, in <module>
from parsel.selector import create_root_node
File
"/home/fred/.local/lib/python3.12/site-packages/parsel/__init__.py",
line 16, in <module>
from parsel.selector import Selector, SelectorList # NOQA
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/fred/.local/lib/python3.12/site-packages/parsel/selector.py",
line 31, in <module>
from .csstranslator import GenericTranslator, HTMLTranslator
File
"/home/fred/.local/lib/python3.12/site-packages/parsel/csstranslator.py",
line 8, in <module>
from cssselect.parser import Element, FunctionalPseudoElement,
PseudoElement
ImportError: cannot import name 'PseudoElement' from 'cssselect.parser'
(/usr/lib/python3.12/site-packages/cssselect/parser.py)
fred@romeo:~/Downloads/scrapy$ scrapy startproject test
Traceback (most recent call last):
File "/home/fred/.local/bin/scrapy", line 5, in <module>
from scrapy.cmdline import execute
File
"/home/fred/.local/lib/python3.12/site-packages/scrapy/__init__.py",
line 12, in <module>
from scrapy.http import FormRequest, Request
File
"/home/fred/.local/lib/python3.12/site-packages/scrapy/http/__init__.py",
line 10, in <module>
from scrapy.http.request.form import FormRequest
File
"/home/fred/.local/lib/python3.12/site-packages/scrapy/http/request/form.py",
line 19, in <module>
from parsel.selector import create_root_node
File
"/home/fred/.local/lib/python3.12/site-packages/parsel/__init__.py",
line 16, in <module>
from parsel.selector import Selector, SelectorList # NOQA
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/home/fred/.local/lib/python3.12/site-packages/parsel/selector.py",
line 31, in <module>
from .csstranslator import GenericTranslator, HTMLTranslator
File
"/home/fred/.local/lib/python3.12/site-packages/parsel/csstranslator.py",
line 8, in <module>
from cssselect.parser import Element, FunctionalPseudoElement,
PseudoElement
ImportError: cannot import name 'PseudoElement' from 'cssselect.parser'
(/usr/lib/python3.12/site-packages/cssselect/parser.py)
Any idea why it's not working?
Thank you.
Fred
--
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue