Skip to content

after install, error on import #1

Description

@kr0b3rts

Picking up from email as requested ....

Here is the traceback. The exception occurs on the import pydoxtools step

Traceback (most recent call last):
File "testpydox.py", line 1, in
import pydoxtools as pdx
File "/home/kroberts/dev/chat/lib/python3.8/site-packages/pydoxtools/init.py", line 9, in
from .document import Document, DocumentBag, DatabaseSource
File "/home/kroberts/dev/chat/lib/python3.8/site-packages/pydoxtools/document.py", line 25, in
from . import dask_operators
File "/home/kroberts/dev/chat/lib/python3.8/site-packages/pydoxtools/dask_operators.py", line 12, in
from .document_base import Pipeline
File "/home/kroberts/dev/chat/lib/python3.8/site-packages/pydoxtools/document_base.py", line 239, in
class DocumentLocation(pydantic.BaseModel):
File "pydantic/main.py", line 178, in pydantic.main.ModelMetaclass.new
File "pydantic/typing.py", line 400, in pydantic.typing.resolve_annotations

File "/usr/lib/python3.8/typing.py", line 270, in _eval_type
return t._evaluate(globalns, localns)
File "/usr/lib/python3.8/typing.py", line 518, in _evaluate
eval(self.forward_code, globalns, localns),
File "", line 1, in
TypeError: 'type' object is not subscriptable

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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