ethpm / ethpm-cli

CLI tool for interacting with the ethPM ecosystem.
https://ethpm-cli.readthedocs.io/
MIT License
42 stars 12 forks source link

Error running `ethpm activate`: SyntaxError: can't use starred expression here #102

Open ArshanKhanifar opened 2 years ago

ArshanKhanifar commented 2 years ago

If this is a bug report, please fill in the following sections. If this is a feature request, delete and describe what you would like with examples.

What was wrong?

After installing and running ethpm activate ethpm://packages.ethpm.eth/package@1.0.0, I get this error:

Code that produced the error

ethpm activate ethpm://packages.ethpm.eth/package@1.0.0

Full error output

Traceback (most recent call last):
  File "/Users/arshankhanifar/miniconda3/envs/brownie_token/bin/ethpm", line 5, in <module>
    from ethpm_cli import main
  File "/Users/arshankhanifar/miniconda3/envs/brownie_token/lib/python3.9/site-packages/ethpm_cli/__init__.py", line 7, in <module>
    from .main import main  # noqa: F401, E402
  File "/Users/arshankhanifar/miniconda3/envs/brownie_token/lib/python3.9/site-packages/ethpm_cli/main.py", line 4, in <module>
    from ethpm_cli.parser import parser
  File "/Users/arshankhanifar/miniconda3/envs/brownie_token/lib/python3.9/site-packages/ethpm_cli/parser.py", line 15, in <module>
    from ethpm_cli.commands.get import get_manifest
  File "/Users/arshankhanifar/miniconda3/envs/brownie_token/lib/python3.9/site-packages/ethpm_cli/commands/get.py", line 5, in <module>
    from ethpm_cli.commands.manifest import pretty_print_raw_manifest
  File "/Users/arshankhanifar/miniconda3/envs/brownie_token/lib/python3.9/site-packages/ethpm_cli/commands/manifest.py", line 284
    return ((*generated_contract_types), (*generated_sources))
             ^
SyntaxError: can't use starred expression here

Environment

# run this:
$ python -m eth_utils

# then copy the output here:
Python version:
3.9.12 (main, Apr  5 2022, 01:52:34) 
[Clang 12.0.0 ]

Operating System: macOS-12.2.1-arm64-arm-64bit

pip freeze result:
aiohttp==3.8.1
aiosignal==1.2.0
appnope==0.1.3
asttokens==2.0.5
async-timeout==4.0.2
attrs==21.4.0
backcall==0.2.0
base58==2.1.1
bitarray==1.2.2
black==22.1.0
cached-property==1.5.2
certifi==2021.10.8
charset-normalizer==2.0.11
click==8.0.3
cytoolz==0.11.2
dataclassy==0.11.1
decorator==5.1.1
eip712==0.1.0
eth-abi==2.1.1
eth-account==0.5.7
eth-bloom==1.0.4
eth-brownie==1.18.1
eth-event==1.2.3
eth-hash==0.3.2
eth-keyfile==0.5.1
eth-keys==0.3.4
eth-rlp==0.2.1
eth-tester==0.6.0b6
eth-typing==2.3.0
eth-utils==1.10.0
ethpm-cli==0.3.0
execnet==1.9.0
frozenlist==1.3.0
hexbytes==0.2.2
hypothesis==6.27.3
idna==3.3
inflection==0.5.0
iniconfig==1.1.1
ipfshttpclient==0.8.0a2
ipython==7.32.0
jedi==0.18.1
jsonschema==3.2.0
lazy-object-proxy==1.7.1
lru-dict==1.1.7
matplotlib-inline==0.1.3
multiaddr==0.0.9
multidict==6.0.2
mypy-extensions==0.4.3
mythx-models==1.9.1
netaddr==0.8.0
packaging==21.3
parsimonious==0.8.1
parso==0.8.3
pathspec==0.9.0
pexpect==4.8.0
pickleshare==0.7.5
platformdirs==2.4.1
pluggy==1.0.0
prompt-toolkit==3.0.26
protobuf==3.19.4
psutil==5.9.0
ptyprocess==0.7.0
py==1.11.0
py-ecc==5.2.0
py-evm==0.5.0a3
py-geth==3.7.0
py-solc-ast==1.2.9
py-solc-x==1.1.1
pycryptodome==3.14.1
pyethash==0.1.27
Pygments==2.11.2
pygments-lexer-solidity==0.7.0
PyJWT==1.7.1
pyparsing==3.0.7
pyrsistent==0.18.1
pysha3==1.0.2
pytest==6.2.5
pytest-forked==1.4.0
pytest-xdist==1.34.0
python-dateutil==2.8.1
python-dotenv==0.16.0
pythx==1.6.1
PyYAML==5.4.1
requests==2.27.1
rlp==2.0.1
semantic-version==2.8.5
six==1.16.0
sortedcontainers==2.4.0
termcolor==1.1.0
toml==0.10.2
tomli==2.0.0
toolz==0.11.2
tqdm==4.62.3
traitlets==5.1.1
trie==2.0.0a5
typing-extensions==3.10.0.2
urllib3==1.26.8
varint==1.0.2
vvm==0.1.0
vyper==0.3.1
wcwidth==0.2.5
web3==5.27.0
websockets==9.1
wrapt==1.13.3
yarl==1.7.2

How can it be fixed?

I don't know tbh.