ethereum / execution-specs

Specification for the Execution Layer. Tracking network upgrades.
Creative Commons Zero v1.0 Universal
806 stars 222 forks source link

Pyt8n missing module platformdirs #969

Closed winsvega closed 6 days ago

winsvega commented 1 week ago

Please check that pip install command is correct

I get this trace when trying to use t8n.

Traceback (most recent call last):
  File "/pyt8n/venv/bin/ethereum-spec-evm", line 5, in <module>
    from ethereum_spec_tools.evm_tools import main
  File "/pyt8n/src/ethereum_spec_tools/evm_tools/__init__.py", line 13, in <module>
    from .daemon import Daemon, daemon_arguments
  File "/pyt8n/src/ethereum_spec_tools/evm_tools/daemon.py", line 16, in <module>
    from platformdirs import user_runtime_dir
ModuleNotFoundError: No module named 'platformdirs'
SamWilsn commented 1 week ago

You'll need to add the feature test when installing the package.

If you already have it checked out locally, something like:

pip install -e .[test]
winsvega commented 1 week ago

Just pip install . won't do?

SamWilsn commented 1 week ago

The important part is the [test]. If you don't want an editable install, this'll work:

pip install .[test]

t8n and related tools are optional, and need additional dependencies to work.