Open timsloan opened 1 week ago
eep, had my notifications set up wrong and only just saw this. let me look into it and report back asap
hmm, not able to reproduce at first blush and wouldn't expect WSL to matter. what python are you using?
I'm using 3.12. I think it might be because there's an app in my project already called pegasus where the examples are. I can rename that on my project, but it's a default with Pegasus projects. It would make sense to rename one of them (and provide some instructions in the meantime).
huh, that... makes a lot of sense! i'm now confused why it's working on my environments where i have a pegasus
folder. i just tested on 3.12 and it's still working my side. i'll try a bit harder to reproduce on Monday and report back though.
Can you try a few things for me:
python -m pegasus --help
pegasus
folder and running it again>>> import pegasus
>>> print(pegasus.__file__)
>>> import pegasus.cli
>>> print(pegasus.cli.__file__)
When the folder is "pegasus"
python -m pegasus --help
/usr/bin/python3.12: No module named pegasus.main; 'pegasus' is a package and cannot be directly executed
import pegasus Traceback (most recent call last): File "
", line 1, in ModuleNotFoundError: No module named 'pegasus'
If I rename the folder, the cli works. However, I still cannot import pegasus
@timsloan can you pip install pegasus-cli==0.5
and tell me if that fixes it?
I installed pegasus-cli with
pip install "pegasus-cli[dev]"
in my virtual env.I'm on Windows WSL2, if that helps.
Here's the error: