Skip to content

pylode cli is broken for ver. 3.4.1 #256

@wrobell

Description

@wrobell
$ pip install pylode
...
Successfully installed anyio-4.12.1 certifi-2026.2.25 dominate-2.9.1 h11-0.16.0 html5lib-1.1 httpcore-1.0.9 httpx-0.28.1 idna-3.11 markdown-3.10.2 pylode-3.4.1 pyparsing-3.3.2 rdflib-7.6.0 six-1.17.0 tqdm-4.67.3 webencodings-0.5.1
...

Then

$ pylode
Traceback (most recent call last):
  File "/home/wrobell/venv-t/lib/python3.14/site-packages/pylode/profiles/ontpub.py", line 50, in <module>
    from .rdf_elements import AGENT_PROPS, CLASS_PROPS, ONT_PROPS, ONTDOC, PROP_PROPS
ModuleNotFoundError: No module named 'pylode.profiles.rdf_elements'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/wrobell/venv-t/bin/pylode", line 3, in <module>
    from pylode.cli import main
  File "/home/wrobell/venv-t/lib/python3.14/site-packages/pylode/__init__.py", line 1, in <module>
    from .profiles import OntPub, Supermodel, VocPub
  File "/home/wrobell/venv-t/lib/python3.14/site-packages/pylode/profiles/__init__.py", line 1, in <module>
    from .ontpub import OntPub
  File "/home/wrobell/venv-t/lib/python3.14/site-packages/pylode/profiles/ontpub.py", line 82, in <module>
    from pylode.version import __version__
  File "/home/wrobell/venv-t/lib/python3.14/site-packages/pylode/version.py", line 5, in <module>
    with _pyproject_file.open("rb") as f:
         ~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/pathlib/__init__.py", line 771, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
           ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/wrobell/venv-t/lib/python3.14/site-packages/pyproject.toml

I believe the change to version.py in this commit needs to be reverted ab5028c.

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