Hi,
today I wanted to upgrade my existing and working installation from 1.6.0 to 1.7.5.
It fails.
- pip install --upgrade pretext results in an error: ERROR: pretextbook 0.8.3 has requirement watchdog<3,>=2, but you'll have watchdog 3.0.0 which is incompatible.
- running the command again removes the error message but running pretext fails (see log below).
Reinstalling 1.6.0 succeeds but I am lost how to upgrade (I am on Ubuntu 20.04)
Installing dataclasses (pip install dataclasses) does not change anything.
Can someone help?
Thanks
Klaus
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/klaus/.local/lib/python3.8/site-packages/pretext/__main__.py", line 1, in <module>
from .cli import main
File "/home/klaus/.local/lib/python3.8/site-packages/pretext/cli.py", line 28, in <module>
from .project import Project
File "/home/klaus/.local/lib/python3.8/site-packages/pretext/project/__init__.py", line 9, in <module>
from .. import build as builder
File "/home/klaus/.local/lib/python3.8/site-packages/pretext/build.py", line 8, in <module>
from .project.xml import Executables
File "/home/klaus/.local/lib/python3.8/site-packages/pretext/project/xml.py", line 4, in <module>
import pydantic_xml as pxml
File "/home/klaus/.local/lib/python3.8/site-packages/pydantic_xml/__init__.py", line 7, in <module>
from .model import BaseGenericXmlModel, BaseXmlModel, XmlAttributeInfo, XmlElementInfo, XmlWrapperInfo, attr, element
File "/home/klaus/.local/lib/python3.8/site-packages/pydantic_xml/model.py", line 5, in <module>
import pydantic as pd
File "pydantic/__init__.py", line 2, in init pydantic.__init__
File "pydantic/dataclasses.py", line 41, in init pydantic.dataclasses
# +---------+-----------------------------------------+
ImportError: cannot import name dataclass_transform