override obj val
See original GitHub issueDescription
What steps will reproduce the problem?
Attempted to use variable explorer to edit an integer within an object from package: pymc3, class: multitrace
Traceback
File "C:\ProgramData\Anaconda3_\envs\GANS2\lib\site-packages\spyder\plugins\variableexplorer\widgets\collectionsdelegate.py", line 273, in <lambda>
lambda eid=id(editor): self.editor_accepted(eid))
File "C:\ProgramData\Anaconda3_\envs\GANS2\lib\site-packages\spyder\plugins\variableexplorer\widgets\collectionsdelegate.py", line 566, in editor_accepted
self.set_value(index, conv_func(value))
File "C:\ProgramData\Anaconda3_\envs\GANS2\lib\site-packages\spyder\plugins\variableexplorer\widgets\collectionsdelegate.py", line 442, in set_value
index.model().set_value(index, value)
File "C:\ProgramData\Anaconda3_\envs\GANS2\lib\site-packages\spyder\plugins\variableexplorer\widgets\objectexplorer\tree_model.py", line 539, in set_value
setattr(parent, obj_name, value)
AttributeError: can't set attribute
Versions
- Spyder version: 4.1.5
- Python version: 3.8.5
- Qt version: 5.9.7
- PyQt5 version: 5.9.2
- Operating System: Windows 10
Dependencies
# Mandatory:
atomicwrites >=1.2.0 : 1.4.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 1.6.0 (OK)
diff_match_patch >=20181111 : 20200713 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.21.0 (OK)
jedi =0.17.1 : 0.17.1 (OK)
nbconvert >=4.0 : 6.0.7 (OK)
numpydoc >=0.6.0 : 1.1.0 (OK)
paramiko >=2.4.0 : 2.7.2 (OK)
parso =0.7.0 : 0.7.0 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.8.0 (OK)
pygments >=2.0 : 2.8.0 (OK)
pylint >=1.0 : 2.7.1 (OK)
pyls >=0.34.0;<1.0.0 : 0.35.1 (OK)
qdarkstyle >=2.8 : 2.8.1 (OK)
qtawesome >=0.5.7 : 1.0.1 (OK)
qtconsole >=4.6.0 : 5.0.2 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
rtree >=0.8.3 : 0.9.4 (OK)
sphinx >=0.6.6 : 3.5.1 (OK)
spyder_kernels >=1.9.4;<1.10.0 : 1.9.4 (OK)
watchdog : None (OK)
zmq >=17 : 20.0.0 (OK)
# Optional:
cython >=0.21 : 0.29.22 (OK)
matplotlib >=2.0.0 : 3.3.4 (OK)
numpy >=1.7 : 1.19.2 (OK)
pandas >=0.13.1 : 1.2.1 (OK)
scipy >=0.17.0 : 1.6.1 (OK)
sympy >=0.7.3 : 1.7.1 (OK)
# Spyder plugins:
spyder_notebook : 0.3.2 (OK)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Overriding val in scala - Stack Overflow
You don't need to use the override keyword to override a var field in a subclass (or trait), but you do need to...
Read more >Scala | Field Overriding - GeeksforGeeks
In order to execute a Field Overriding, we need to override variables that are declared utilizing only the val keyword in both super...
Read more >Override object inner trait - Google Groups
I go an "overriding object writes in trait BaseEnum" but my eclipse said all is ok. I wonder why it's impossible to override...
Read more >Object.assign() - JavaScript - MDN Web Docs
The Object.assign() method copies all enumerable own properties from one or more ... Later sources' properties overwrite earlier ones.
Read more >Override only specified val property defaults? - Support
I am wondering if Kotlin provides a type-safe way to construct an object whose properties are val s by providing only a dynamically...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @marcchale for the code.
@dalthviz, please try to reproduce this one because it’s related to the Object Explorer.
@ccordoba12 @steff456 I was able to recreate the error by running the following code (adapted from pymc3 documentation) then opening the variable trace from the variable explorer, then clicking on “chains”, clicking on “1” and trying to change the value to another number. You may need to install a few libraries (sorry)