question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot open objects in variable explorer

See original GitHub issue

Description

What steps will reproduce the problem?

  1. Define a class in another file

  2. In a new file import the class file

  3. create an object with that class

  4. run the code. The code runs fine

  5. try to explore the newly created object and get the following message

Spyder was unable to retrieve the value of this variable from the console.

The error message was: ‘tuple’ object has no attribute ‘raise_error’

  1. The object is not a tuple. Indeed the value is " XXX object of YYYY module"

This is not related only to a single script. As I tried to create mock files and scripts but the problem persists.

Regards.

Versions

  • Spyder version: 4.0.1
  • Python version: 3.7.4
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Linux 4.15.0-76-generic

Dependencies

atomicwrites >=1.2.0         :  1.3.0 (OK)
chardet >=2.0.0              :  3.0.4 (OK)
cloudpickle >=0.5.0          :  1.2.2 (OK)
diff_match_patch >=20181111  :  20181111 (OK)
intervaltree                 :  None (OK)
IPython >=4.0                :  7.11.1 (OK)
jedi =0.14.1                 :  0.14.1 (OK)
keyring                      :  None (OK)
nbconvert >=4.0              :  5.6.1 (OK)
numpydoc >=0.6.0             :  0.9.2 (OK)
pexpect >=4.4.0              :  4.8.0 (OK)
pickleshare >=0.4            :  0.7.5 (OK)
psutil >=0.3                 :  5.6.7 (OK)
pygments >=2.0               :  2.5.2 (OK)
pylint >=0.25                :  2.4.4 (OK)
pyls >=0.31.2;<0.32.0        :  0.31.2 (OK)
xdg >=0.26                   :  0.26 (OK)
zmq >=17                     :  18.1.0 (OK)
qdarkstyle >=2.7             :  2.7 (OK)
qtawesome >=0.5.7            :  0.6.0 (OK)
qtconsole >=4.6.0            :  4.6.0 (OK)
qtpy >=1.5.0                 :  1.9.0 (OK)
rtree >=0.8.3                :  0.8.3 (OK)
sphinx >=0.6.6               :  2.3.1 (OK)
spyder_kernels >=1.8.1;<2.0.0:  1.8.1 (OK)
watchdog                     :  None (OK)
cython >=0.21                :  0.29.14 (OK)
matplotlib >=2.0.0           :  3.1.1 (OK)
numpy >=1.7                  :  1.18.1 (OK)
pandas >=0.13.1              :  0.25.3 (OK)
scipy >=0.17.0               :  1.3.2 (OK)
sympy >=0.7.3                :  1.5.1 (OK)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
impact27commented, Feb 18, 2020

@PedroMat8 You should wait for the next release of Spyder, or installing it from source. The fix won’t let you open the objects in the variable explorer as spyder won’t know where to look for class_folder/init.py (because you modify the path manually.) This is a limitation of pickle so there is nothing we can do now. I would encourage you to organise your code in a way that doesn’t require to manually change the path.

1reaction
dalthvizcommented, Feb 12, 2020

I’m unsure but will check @ccordoba12 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

can't open dataframe in variable explorer in Spyder IDE
So I installed official python on my PC, taking Spyder IDE as a code editor. <-- It can work by changing the python...
Read more >
Variable Explorer — Spyder 5 documentation
The Variable Explorer gives you information on the name, size, type and value of each object. To modify a scalar variable, like an...
Read more >
Can't open spatial dataframe in Spyder 4.2.1 Variable Explorer
Solved: I upgraded to Spyder 4.2.1 from 3.6, and now when I run my script that creates a spatially enabled dataframe, the dataframe...
Read more >
Tips for showing user defined objects in Spyder's variable ...
I've been working on a new class for the first time in Spyder and when I try to display the object in variable...
Read more >
JetBrains Rider - Inspect variable values and objects
Modified objects are displayed with a different color. You can also click value hints to open the corresponding object in a popup, where...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found