-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
This version of python seems to be incorrectly compiled
message with Python 3.11 from Anaconda
#20800
Comments
Hi @James910-code, could you provide more info about your setup? What Spyder version you have installed? Could it be that you updated you anaconda base environment Python version to be 3.11.2 and that started causing the issue? Without more info there is not much we can due to help, sorry :/ But maybe a look to the Spyder installation guide could help: https://docs.spyder-ide.org/current/installation.html#conda-based-distributions Let us know if the installation guide helps! |
I have the same issue, so I'll include my info here.
Generated the environment with:
With no issues.
If I run any command via the IDE i get the warning:
If I run the same script or command via the python / command line it runs without error. |
~~Edit. I see the problem now. The version of python I have in my 'base' environment is different than the version in my other environments. I would assume the default interpreter would be the same one as the environment that spyder is being run in. Why would it be different?~~ |
Hi @zach-morris thank you for the info! So you are launching Spyder from the new env and only when setting the custom Python interpreter option to the Python interpreter of the env from where Spyder was launched the message stops appearing? Maybe something is happening with the activation of the default environment with Python 3.11 (which should be the Python interpreter of the activated env where Spyder was launched as you mentioned) 🤔 What do you think @ccordoba12 ? |
I think we need a more detailed series of steps from @zach-morris (which is what you requested from him) to understand how to reproduce this problem. Otherwise, we won't be able to solve it. |
Well, i take that back. The message is intermittent even if I set the interpreter manually. I'm unable to determine the cause or a workaround.
The other thing I will say is that I had to uninstall anaconda and re-install the new version recently. Unsure if there are spyder settings hidden somewhere within windows outside of the anaconda environment that I should purge to see if that is causing the issue. |
Could you try to create the env with Python < 3.11 and see if the message still appears? Let us know! |
Ok, here are the requested test: Test Env 1 yml:
Test Env 2 yml:
Commands run:
|
So seems like the issue is related with Python 3.11. Could you set this env variable and check if the message continues?:
|
Setting that variable and then running the following command in spyder:
|
Checked locally and was able to reproduce this 👍 Also, creating the env with packages from the conda-forge channel prevents this message 🤔 Checking a little bit more the Python issue linked in the message, seems like if you add to the command that Spyder uses to launch the console kernel a spyder/spyder/plugins/ipythonconsole/utils/kernelspec.py Lines 113 to 119 in 00ebc4a
So the code ends up being something like: kernel_cmd = [
pyexec,
'-Xfrozen_modules=off',
'-m',
'spyder_kernels.console',
'-f',
'{connection_file}'
] The comment that suggest the use of the |
Confirmed thats a good workaround. Seems like it would need to be fixed upstream but the upstream issues are closed? If thats the case, this might need to be permanently added into spyder to avoid the issue. Related issues: |
Thank you for the confirmation and extra links @zach-morris ! I think we could try to add the extra flag mentioned checking if the interpreter is running Python 3.11. What do you think @ccordoba12 ? Is there any other way to suppress that message from appearing? |
I think that's a good idea. Thanks for tracking the problem down and finding a solution @dalthviz! Please go ahead and implement it. Since Guido himself proposed the same solution in the PyDev.Debugger repo, it doesn't appear to be harmful. In addition, we don't use nor depend on the PyDev debugger, so I'm not expecting major issues with this change. |
This version of python seems to be incorrectly compiled
message with Python 3.11 from Anaconda
can someone exactly
I am very new to jupyter notebook and I am not getting how to fix the error as you mentioned. Can someone please help me out, like where to navigate to alter the spyder code. |
the same error happens after customizing the interpretation with version 5.4.3 |
@Taha0229, @yanyu2015, this problem was fixed in our latest version (5.4.4), which is not available in Anaconda yet. In the meantime, you can safey ignore that message because it's simply a warning and doesn't affect Spyder in any way. |
I opened Anaconda Prompt using "Run as Administrator" and then I ran this command:
And it fixed this problem for me. |
There seems to be a newer Anaconda 2023-07-2 installer that is updated to Python 3.11.4 whereas the previous 2023-07-01 and 2023-07-0 used Python 3.11.3 as far as I can tell it has also resolved the issue despite it being the same version of Spyder 5.4.3: https://docs.anaconda.com/free/anaconda/reference/release-notes/#anaconda-2023-07-2-august-04-2023 |
Ok, that's great news! Thanks @PhilipYip1988 for letting us know about it. |
hello every one, I thank all of you for your contribution . But I still cannot my spyder to implement SURF and SIFT. Please I need your HELP. |
For example restart the kernel to see it:
The text was updated successfully, but these errors were encountered: