I am using Spyder 4.1.5 with Python 3.8.5 with Anaconda
When trying to show the content of a variable in Spyder i get the following error
Spyder is unable to show the variable you are trying to view because the module spydercustomize was not found in your Spyder environment. Please install this package in your Spyder environment.
A simple pip install spydercustomize does not work
I don't even know why it is missing. I think the problem occured the first time when I tried to update Spyder. A reinstallation of Anaconda didn't help either.
My Google skills were not good enough to find any solution. I only find problems where variables don't show in the variable explorer. But that is not my problem.
Btw, built in classes like lists or dicts can be displayed, custom classes can't.
I appreciate your help!
EDIT
After updating to Spyder 4.2.0 I got the following error:
Spyder was unable to retrieve the value of this variable from the
console.
The error message was: An error occured, see the console.
Note: Please don't report this problem on Github, there's nothing to
do about it.
Console is empty
Looks like spydercustomize is part of a package called spyder-kernels. Maybe try:
$ pip install spyder spyder-kernels --upgrade
Related
I already fixed this, but I will post the question anyways and answer it so if there are other people having this issue they may find this.
I installed blender a while ago and did some stuff using python. I can't recall what exactly I did, it was for a school project. However, when I recently tried to use pip to install something I got the following message:
Error in launcher: Unable to create process when using "path to python my blender folder"
Even if you get this answer due to another situation my solution might still help you.
This worked for me:
First I uninstalled Blender.
Then I uninstalled python and reinstalled the newest version.
I deleted every environment variable path I could find leading to an old python version.
In the Terminal I entered where pip and still got some paths leading to old python versions, I went to these locations and deleted every folder labeled with an old python version, in my case these locations were C:\Python37and C:\Users\myusername\Appdata\Roaming\Python
And that's it. After that pip worked as it should.
Hello Everyone,
I have an issue I have to immediately deal with it. I installed mlxtend and used the library for apriori(market research). In my first attempt it worked then next day I tried to update it with new data but it gives exactly this error ModuleNotFoundError: No module named 'mlxtend'. And I read everywhere to find where my mistake is? Sadly, I couldn't find it. I updated my mlxtend to current version however, again I faced with the exact, same problem. When I try to install mlxtend I got this as it is expected "Requirement already satisfied". I would appreciate and be glad if you have any suggestions? By the way, thanks to everyone who read this.
Are you installing it in the Conda shell or somewhere else? To ensure it gets installed in the correct environment type
%pip install mlxtend
from within the Jupyter notebook (in a cell at the top) that you are working in and execute that cell.
If it installs successfully you can comment out that cell or remove it.
First off I would like to say that I am aware that this question has been asked before, however, none of the other posts have offered a solution that resolves the problem.
I am trying to use pandas-datareader to grab stock prices from the internet. I am using windows with python version 3.6. I first installed pandas-datareader from the console using
pip install pandas-datareader.
I then wrote a code which used the line
import pandas_datareader.data as web
It came back with the error
`ModuleNotFoundError: No module named 'pandas_datareader'
I tried to redownload pandas-datareader, just in case it didn't work the first time, but the console came back with "Requirement already satisfied" so that wasn't the problem.
From there I uninstalled pandas-datareader, and reinstalled it with
pip3 install pandas-datareader
I still got the same error message.
I was worried that it might have something to do with old versions of python installed on my computer so I deleted all files for python 2.7, but this did not help the issue. I restarted spyder and my computer and this did not help. I tried Jupiter notebook and this did not help either.
Now to take my investigation one step further, I looked in my file folders at the hidden files to see where pandas-datareader could be hiding. When I go to C:\Users\J.Shepard\Anaconda3\pkgs and C:\Users\J.Shepard\Anaconda3\pkgs I see that pandas-0.23.0-py36h830ac7b_0 is installed but I cannot find anything that looks like pandas-datareader. In fact, when I search for "pandas-datareader" in my file search, I only see 2 text files with one line of code each. I do not know what to make of this discovery but I thought it might be helpful to someone else.
I hope that I have made a good case to prove that I have genuinely tried and failed to solve this problem on my own. Based on the number of other unresolved posts related to this same question, I believe that this is a question that deserves to be asked again.
I tried conda install pandas-datareader in Anaconda Prompt. It was installed and after my computer restarted, pandas-datareader worked in spyder 3.6.
When trying to run my code in Pycharm i get this error:
from .gurobipy import *
ImportError: libgurobi80.so: cannot open shared object file: No such file or directory
In the regular python terminal i can import gurobipy with no problem. How can Pycharm be fixed?
I've read the install instructions and posted the following 3 lines at the end of the bashrc file with a text editor.
export GUROBI_HOME="/opt/gurobi800/linux64"
export PATH="${PATH}:${GUROBI_HOME}/bin"
export LD_LIBRARY_PATH="${GUROBI_HOME}/lib"
Reinstalling PyCharm (even switching to EDU and Professional) as well as reinstalling Ubuntu did not change the error. Please help.
I had the same error and configured PyCharm on Kubuntu by adding the environment variables to the run config.
Select Edit configurations... and add the variables to the Environment variables field. In my case, I added GUROBI_HOME, LD_LIBRARY_PATH and GRB_LICENSE_FILE. Also, I had to enter the values directly: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GUROBI_HOME/lib didn't work, but LD_LIBRARY_PATH=/path/to/gurobi/lib works.
Code completion and suggestions still don't work, but at least I can run from PyCharm now.
I went around this problem by just editing the file in PyCharm and running it via the terminal. I didn't find another solution so far, so I'm still proceeding this way. It seems to be a PyCharm-specific problem.
I tried more than 10 ways to install Gurobipy in Pycharm. However, there is no way to use.
There are two days to use Gurobipy
Jupyter based on Conda - installation : recommended by Grobipy.
Install Grobipy indirectly to python (This Is what i did for my setting)
Hope Pycharm and Gurobipy to work together to resolve this issue. But most people might use Jupyter these days. So don’t know how much they will be interested in fixing this.
I keep getting an error when trying to run code from one of my IPython notebooks (the notebooks themselves open up fine, I'm just unable to run any code and view the output).
The complete error is:
ERROR:tornado.access:500 POST /api/sessions (127.0.0.1) 13.01ms referrer=http://127.0.0.1:8888/notebooks/untitled0.ipynb.
I'm running Python 3.3.5, IPython 2.0.0 via an install from easy_install on a windows 8 machine.
I tried reinstalling (uninstall via pip, reinstall via easy_install) the tornado package, IPython, it was of no use.
Any help is greatly appreciated, thank you.
When I used anaconda, I met a similar problem .
Try
pip install simplejson
This works for me
This page talks about a similar problem and solution.
https://github.com/ipython/ipython/issues/1966/
Good Luck!!!
I was using Holoviews package in the IPynb and I was caught by similar error. Then I found that if try to plot a dataframe in the server rather than a "Series", this error shows up. I dont know thw complete reason for this, but to all those who are getting the similar error,
kindly change your data to Series and then plot it in server
Hope it works for you too.