Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python not found #362

Open
axel584 opened this issue Nov 28, 2023 · 0 comments
Open

Python not found #362

axel584 opened this issue Nov 28, 2023 · 0 comments

Comments

@axel584
Copy link

axel584 commented Nov 28, 2023

Good morning,
I made a debian/rules file that uses dh-virtualenv (I followed the advice in the documentation):

export DH_VIRTUALENV_INSTALL_ROOT=/opt

%:
dh $@ --with python-virtualenv

override_dh_virtualenv:
ls -l /app/src/myteam/
dh_virtualenv --upgrade-pip \
--python python3 \
--preinstall poetry \
--preinstall poetry-dynamic-versioning \
--preinstall virtualenv \
--pip-tool dh-poetry \
--install-suffix myproject

But during execution (via gitlab ci/cd), I get the following error:

FileNotFoundError: [Errno 2] No such file or directory: '/builds/myteam/myproject/debian/myteam-service-myproject/opt/myproject/bin/python'
make[1]: *** [debian/rules:10: override_dh_virtualenv] Error 1
make[1]: Leaving directory '/builds/myteam/myproject'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

I will need to know what part of the process should create the virtual environment including the python program? And how can I make sure this part works well?

Thanks for your help,

Axel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant