-
-
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
Cannot import module/plugin with Spyder standalone installer #23111
Comments
Hi @JacksonPhoong thank you for the report! Seems like you have a virtual environment with Spyder and your dependencies installed and also Spyder from our standalone installers. If you want to use spyder-notebook and be able to use the packages mentioned I think you would need to launch Spyder from a cmd/terminal with your env activated. The standalone version of Spyder doesn't support plugins installations for the moment and although it comes with some base predefined packages installed, to use other packages like ( Let us know if the info above helps! |
I launched Spyder from cmd with my env activated and I am able to use notebooks in Spyder now! Thank you @dalthviz for the fix. However, I am still unable to import the module "utility". I have set the custom interpreter to be pointing to my env with the installed packages. I could import other packages such as pennylane though. As an aside, there's a slight issue when I use the shortcut Shift + Enter to run a cell and go to the next cell for the notebook. It works for the first time. After that, the shortcut does nothing when used. I have to click on the cell before using the shortcut again and then the issue repeats. If I click on the button instead, I do not face this issue. |
Do you see any error or traceback? What happens if you try to import that module from a Python interpreter outside Spyder with your env activated?
Checking the |
I get the following error both in Spyder and from cmd, ModuleNotFoundError: No module named 'utility'.
Alright, I will report the issue over the plugin repo. |
Thank you for the info! One possible think to check is if the package name corresponds with the way it should be imported. Sometimes a package can have one name but to import it requires to use something different than the package name. If that is the case I think not being able to import that module is not related with Spyder and there is not much we can do from the Spyder side, sorry :/
Thank you! |
No problem. Thank you for your help thus far. |
Closing since there is no much we can do from the Spyder side |
Description
What steps will reproduce the problem?
I recently just installed Spyder using the standalone installer. I want to say thank you and great job to the developers who are working hard on this project. Spyder is a great IDE to use.
My issue is that I cannot import the module "utility" in Spyder. I used pip to install the module into my virtual environment and have restarted Spyder. I did not run into this issue when I installed other modules such as cvxpy and pennylane.
Also, I would love to work with notebooks in Spyder. I have installed spyder-notebook plugin but Spyder is not detecting it. I read in a blog that this was an issue with Spyder 5 but plugins should work with Spyder 6. Any help with this is appreciated.
Versions
Dependencies
Environment
Environment
The text was updated successfully, but these errors were encountered: