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

Debugging 2.9 with debugpy does not work with reloader #83

Open
GordianDziwis opened this issue Oct 13, 2021 · 1 comment
Open

Debugging 2.9 with debugpy does not work with reloader #83

GordianDziwis opened this issue Oct 13, 2021 · 1 comment

Comments

@GordianDziwis
Copy link

GordianDziwis commented Oct 13, 2021

I added to the development container startup script ckan-dev/2.9/setup/start_ckan_development.sh, the following line for debugging:

sudo -u ckan -EH python3 -m debugpy --listen 0.0.0.0:5678 /usr/bin/ckan -c $CKAN_INI run -H 0.0.0.0

But this produces this error:

/usr/bin/python3: No module named ckan.__main__; 'ckan' is a package and cannot be directly executed

Disabling the reloader with -r helps.

@GordianDziwis GordianDziwis changed the title Debugging 2.9 with debugpy Debugging 2.9 with debugpy does not work with reloader Oct 13, 2021
@amercader
Copy link
Member

I don't have experience with this tool so I can't help but maybe these discussions can point you in the right direction:

ckan/ckan#6457
ckan/ckan#6458

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

2 participants