Contents of your ape-config.yaml (NOTE: do not post anything private like RPC urls or secrets!):
no config
What went wrong?
When python package scripts is installed (or any python package named scripts), ape cannot run CLI (clickbased scripts, the ones that define acli`.
steps to repro:
make a cli script (repro.py):
import click
@click.command()
def cli():
print("Won't see this.")
install any python package named scripts (note: there is one on pypi, but i dont know what it is so be careful lol)
pip install scripts
try running the cli script:
ape run repro
fails like:
ERROR: Exception while parsing script: scripts/repro.py
ImportError: No module named scripts.repro
(Use `--verbosity DEBUG` to see full stack-trace)
ERROR: Exception while parsing script: scripts/repro.py
ImportError: No module named scripts.repro
Usage: ape run [OPTIONS] COMMAND [ARGS]...
Try 'ape run -h' for help.
Error: No such command 'repro'.
How can it be fixed?
I don't know yet
More info
this is currently blocking us from upgrading web3.py for some reason, because py-evm is mistakenly exporting their scripts folder as a python package. I have told the about it and I think they'll fix it, but it highlighted this bug independently in ape.
it might be a clue that the main based scripts still work!
also would like to investigate why the log appears twice
Environment information
ape
and plugin versions:no plugins.
ape-config.yaml
(NOTE: do not post anything private like RPC urls or secrets!):no config
What went wrong?
When python package scripts is installed (or any python package named scripts), ape cannot run
CLI
(clickbased scripts, the ones that define a
cli`.steps to repro:
scripts
(note: there is one on pypi, but i dont know what it is so be careful lol)fails like:
How can it be fixed?
I don't know yet
More info
this is currently blocking us from upgrading web3.py for some reason, because py-evm is mistakenly exporting their
scripts
folder as a python package. I have told the about it and I think they'll fix it, but it highlighted this bug independently in ape.it might be a clue that the
main
based scripts still work!also would like to investigate why the log appears twice