-
-
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
Avoid showing autoreload warnings #6297
Comments
I know this is a duplicate of #4940, but this is happening on the latest version. |
I experienced this as well with a clean/untouched console that had been left open from the previous day, after importing a few data columns from the clipboard (testing #7244 ) as pandas dataframes, and then running (as my first actual command in the terminal) just Unfortunately, I opened a new console in the same spyder instance, repeated the steps (aside from the delay), but did not get the same error. Therefore, either the delay was in fact significant, the error occurring is non-deterministic, or there was something seemingly very small that I did differently that didn't trigger it. |
It probably happens when you edit and import a file in the console which contains |
Hmm, well for me it happened in a clean console I'd opened the day before and never touched. It happened the on the very first command I entered, just creating a vanilla python list. The only thing I'd done was use the import from clipboard dialog to create a dataframe (which, however, would of course use pandas). But it didn't happen again when I tried the exact same thing in another fresh console, just not waiting a day to use it. So strange. |
Description of your problem
Ran code and got this error in the console, not in the Internal Console or in the terminal, but directly after my printed output.
What steps will reproduce the problem?
Not sure. I ran this code from the editor. It probably sat for a few hours and then I ran it again. When I ran it the second time, it produced the output and then printed the error in the IPython console window.
What is the expected output? What do you see instead?
I just expected to see my output and not a traceback. If I click run again, I don't get the error. I'll try to let it sit for awhile to see if that's the difference.
Please provide any additional information below
[autoreload of spyder.widgets.variableexplorer.utils failed: Traceback (most recent call last):
File "/home/cheryl/anaconda3/envs/spyder-dev/lib/python3.6/site-packages/IPython/extensions/autoreload.py", line 246, in check
superreload(m, reload, self.old_objects)
File "/home/cheryl/anaconda3/envs/spyder-dev/lib/python3.6/site-packages/IPython/extensions/autoreload.py", line 369, in superreload
module = reload(module)
File "/home/cheryl/anaconda3/envs/spyder-dev/lib/python3.6/imp.py", line 315, in reload
return importlib.reload(module)
File "/home/cheryl/anaconda3/envs/spyder-dev/lib/python3.6/importlib/init.py", line 166, in reload
_bootstrap._exec(spec, module)
File "", line 618, in _exec
File "", line 678, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/cheryl/spyder/spyder/widgets/variableexplorer/utils.py", line 33, in
required_version=PANDAS_REQVER, optional=True)
File "/home/cheryl/spyder/spyder/dependencies.py", line 73, in add
% modname)
ValueError: Dependency has already been registered: pandas
]
Versions and main components
Dependencies
Please go to the menu entry
Help > Optional Dependencies
(orHelp > Dependencies
), press the buttonCopy to clipboard
and paste the contents below:
IPython >=4.0 : 6.1.0 (OK)
cython >=0.21 : 0.26.1 (OK)
jedi >=0.9.0 : 0.11.0 (OK)
nbconvert >=4.0 : 5.3.1 (OK)
numpy >=1.7 : 1.13.3 (OK)
pandas >=0.13.1 : 0.20.3 (OK)
psutil >=0.3 : 5.4.1 (OK)
pycodestyle >=2.3: 2.3.1 (OK)
pyflakes >=0.6.0 : 1.6.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
pylint >=0.25 : 1.7.4 (OK)
qtconsole >=4.2.0: 4.3.1 (OK)
rope >=0.9.4 : 0.10.7 (OK)
sphinx >=0.6.6 : 1.6.3 (OK)
sympy >=0.7.3 : 1.1.1 (OK)
The text was updated successfully, but these errors were encountered: