You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Full disclaimer -- I am not a seasoned programmer. I came across this project trying to modernize my toolchain.
This reported issue is probably not a bug per-say -- just some feedback as I run into an error following the quickstart guide to setup and then trying to run nox on a repo I just setup.
Seems there's a dependency on 'cleo' missing when running poetry via nox:
❯ nox -v -r -s pre-commit
nox > Running session pre-commit
nox > Creating virtual environment (virtualenv) using python3.10 in .nox/pre-commit
created virtual environment CPython3.10.1.final.0-64 in 253ms
creator CPython3Posix(dest=/Users/douglethin/bld/scratch/topper/.nox/pre-commit, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/douglethin/Library/Application Support/virtualenv)
added seed packages: pip==21.3.1, setuptools==59.2.0, wheel==0.37.0
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
nox > poetry export --format=requirements.txt --dev --without-hashes
Traceback (most recent call last):
File "/Users/douglethin/.poetry/bin/poetry", line 25, in <module>
from poetry.console import main
File "/Users/douglethin/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
from .application import Application
File "/Users/douglethin/.poetry/lib/poetry/console/application.py", line 3, in <module>
from cleo import Application as BaseApplication
ModuleNotFoundError: No module named 'cleo'
nox > Command poetry export --format=requirements.txt --dev --without-hashes failed with exit code 1:
nox > Session pre-commit failed.
So I think I figured out where I strayed. I mentioned that I was "following the quickstart guide...", but it turns out I wasn't following it verbatim. I took a different path when installing poetry, choosing to use the installer mentioned in the poetry docs which I've now learned is deprecated, rather than use the install-poetry.py method which apparently is the new method going forward.
Turns out the old install method is the one with the missing dependencies. After uninstalling poetry and re-installing via the preferred new approach, I was able to eliminate the error I was getting running nox.
I'm going to close this issue. Thanks for what looks like I a great python starter project template.
Full disclaimer -- I am not a seasoned programmer. I came across this project trying to modernize my toolchain.
This reported issue is probably not a bug per-say -- just some feedback as I run into an error following the quickstart guide to setup and then trying to run nox on a repo I just setup.
Seems there's a dependency on 'cleo' missing when running poetry via nox:
It seems the problem is related to this nox issue - ModuleNotFoundError: No module named 'cleo'
It seems one comment suggested to install the following:
There are a lot of virtual environments in play with this toolchain. I'm having a hard time figuring out which tool to install these dependencies in.
the only way I got it to temporarily work was to install this into the code-coverage using the following command:
Then running the pre-commit session worked:
But of course if I blow away that virtual environment and regenerated the error will re-appear again.
Anyone have suggestions on how to work around this issue?
Thanks so much.
Cheers
Doug
The text was updated successfully, but these errors were encountered: