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-django devfile debug command fails when component starts in pod making remote degugging impossible #876

Closed
dgolovin opened this issue Jun 21, 2022 · 0 comments · Fixed by devfile/registry#117
Assignees
Labels
kind/bug Something isn't working
Projects

Comments

@dgolovin
Copy link

/kind bug

Which area this bug is related to?

/area registry

What versions of software are you using?

Operating System: n/a

Go Pkg Version: n/a

Bug Summary

Describe the bug:

https://registry.devfile.io/devfiles/python-django devfile debug command fails with error when pushed to cluster using odo 2.5.1

Executing command cd ${PROJECT_SOURCE} && pip install --user debugpy && export DEBUG_MODE=True && python -m debugpy --listen 0.0.0.0:${DEBUG_PORT} manage.py runserver 0.0.0.0:8000 --noreload --nothreading
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.

As a result vscode python cannot connect to localhost port forwarded with odo debug port-forward,

To Reproduce:

  1. odo create python-django
  2. odo push
  3. odo log | grep ERROR

Expected behavior

No error during debug command execution

Any logs, error output, screenshots etc? Provide the devfile that sees this bug, if applicable.

Executing command cd ${PROJECT_SOURCE} && pip install --user debugpy && export DEBUG_MODE=True && python -m debugpy --listen 0.0.0.0:${DEBUG_PORT} manage.py runserver 0.0.0.0:8000 --noreload --nothreading
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.

Additional context

Any workaround?

Removing --user form debug command fixes the issue

Suggestion on how to fix the bug

@openshift-ci openshift-ci bot added the kind/bug Something isn't working label Jun 21, 2022
@elsony elsony added this to Under consideration in Sprint 220 via automation Jun 30, 2022
@elsony elsony added this to Under consideration in Sprint 221 via automation Jun 30, 2022
@elsony elsony removed this from Under consideration in Sprint 220 Jun 30, 2022
@elsony elsony moved this from Under consideration to To do in Sprint 221 Jul 5, 2022
Sprint 221 automation moved this from To do to Done Jul 13, 2022
@dgolovin dgolovin changed the title python-django devile debug command fails when component starts in pod making remote degugging impossible python-django devfile debug command fails when component starts in pod making remote degugging impossible Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants