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 3.11] - Debugger warning: It seems that frozen modules are being used #1861

Closed
1 task done
benz0li opened this issue Jan 24, 2023 · 11 comments
Closed
1 task done
Labels
type:Bug A problem with the definition of one of the docker images maintained here

Comments

@benz0li
Copy link
Contributor

benz0li commented Jan 24, 2023

What docker image(s) are you using?

base-notebook (modified build)

Host OS system and architecture running docker image

Debian 11 / x86_64

What Docker command are you running?

docker run -it --rm -p 8888:8888 registry.gitlab.b-data.ch/jupyterlab/python/base:3.11.1

How to Reproduce the problem?

Visit http://127.0.0.1:8888/lab?token=<token>

Command output

...
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.

Expected behavior

This warning seems to be expected with Python 3.11: https://discourse.jupyter.org/t/debugger-warning-it-seems-that-frozen-modules-are-being-used-python-3-11-0/16544

Actual behavior

This is not a bug.

The question is: What should be done here?

  1. Nothing (it's just a warning).
  2. Pass -Xfrozen_modules=off to python.
    • = disable frozen modules.
  3. Set PYDEVD_DISABLE_FILE_VALIDATION=1.
    • = disable this validation.

Anything else?

No response

Latest Docker version

  • I've updated my Docker version to the latest available and the issue still persists
@benz0li benz0li added the type:Bug A problem with the definition of one of the docker images maintained here label Jan 24, 2023
@benz0li
Copy link
Contributor Author

benz0li commented Feb 14, 2023

@mathbunnyru @fcollonval Do you have any suggestion what should be done here?

  1. Nothing (it's just a warning).
  2. Pass -Xfrozen_modules=off to python.
    • = disable frozen modules.
  3. Set PYDEVD_DISABLE_FILE_VALIDATION=1.
    • = disable this validation.

@mathbunnyru
Copy link
Member

Unfortunately, I'm not yet familiar with frozen modules, so I can't answer this question, sorry :(

@benz0li
Copy link
Contributor Author

benz0li commented Feb 14, 2023

Cross reference: #1844

@benz0li
Copy link
Contributor Author

benz0li commented May 5, 2023

My recommendation is to leave as is at system level. it's just a warning.

If it bothers anyone,PYDEVD_DISABLE_FILE_VALIDATION=1 can be set at user level.

@benz0li benz0li closed this as completed May 5, 2023
@ZeroHzzzz
Copy link

I could not understand yet.What does it mean?Could you teach me how to deal with it?I am just a greenhand.Thanks!

@mathbunnyru
Copy link
Member

I could not understand yet.What does it mean?Could you teach me how to deal with it?I am just a greenhand.Thanks!

Just ignore this warning. It's a warning so you shouldn't have any problems running your scripts because of it.

@ZeroHzzzz
Copy link

@mathbunnyru @fcollonval Do you have any suggestion what should be done here?

  1. Nothing (it's just a warning).

  2. Pass -Xfrozen_modules=off to python.

    • = disable frozen modules.
  3. Set PYDEVD_DISABLE_FILE_VALIDATION=1.

    • = disable this validation.

I meet this problem too.

@mathbunnyru
Copy link
Member

@JustaGreenhand you mentioned not a problem, but 3 possible solutions.
And my current advice is to use the first solution.

@ZeroHzzzz
Copy link

@JustaGreenhand you mentioned not a problem, but 3 possible solutions. And my current advice is to use the first solution.

OK.Thanks.But sometimes i would thought it unconfortable.(cry)

@theraghavjuneja
Copy link

But code isnt running in jupyter notebook due to this warning. Now what

@mathbunnyru
Copy link
Member

But code isnt running in jupyter notebook due to this warning. Now what

Please, create a new issue, explaining what doesn’t work for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:Bug A problem with the definition of one of the docker images maintained here
Projects
None yet
Development

No branches or pull requests

4 participants