spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.32k stars 1.61k forks source link

error spyder #9465

Closed gupchi closed 5 years ago

gupchi commented 5 years ago

Description

What steps will reproduce the problem?

What is the expected output? What do you see instead?

Please provide any additional information below

File "/Users/gustavo/anaconda2/lib/python2.7/site-packages/spyder/widgets/ipythonconsole/namespacebrowser.py", line 61, in refresh_namespacebrowser 'get_ipython().kernel.get_namespace_view()') File "/Users/gustavo/anaconda2/lib/python2.7/site-packages/spyder/widgets/ipythonconsole/shell.py", line 340, in silent_exec_method local_uuid = to_text_string(uuid.uuid1()) File "/Users/gustavo/anaconda2/lib/python2.7/uuid.py", line 588, in uuid1 clock_seq_hi_variant, clock_seq_low, node), version=1) File "/Users/gustavo/anaconda2/lib/python2.7/uuid.py", line 164, in init raise ValueError('field 6 out of range (need a 48-bit value)') ValueError: field 6 out of range (need a 48-bit value) Traceback (most recent call last): File "/Users/gustavo/anaconda2/lib/python2.7/site-packages/spyder/widgets/ipythonconsole/shell.py", line 128, in get_cwd self.silent_exec_method(code) File "/Users/gustavo/anaconda2/lib/python2.7/site-packages/spyder/widgets/ipythonconsole/shell.py", line 340, in silent_exec_method local_uuid = to_text_string(uuid.uuid1()) File "/Users/gustavo/anaconda2/lib/python2.7/uuid.py", line 588, in uuid1 clock_seq_hi_variant, clock_seq_low, node), version=1) File "/Users/gustavo/anaconda2/lib/python2.7/uuid.py", line 164, in init raise ValueError('field 6 out of range (need a 48-bit value)') ValueError: field 6 out of range (need a 48-bit value)

Version and main components

Dependencies

pyflakes >=0.5.0  :  1.6.0 (OK)
pycodestyle >=2.3 :  2.3.1 (OK)
pygments >=2.0    :  2.2.0 (OK)
pandas >=0.13.1   :  0.22.0 (OK)
numpy >=1.7       :  1.14.2 (OK)
sphinx >=0.6.6    :  1.6.6 (OK)
rope >=0.9.4      :  0.10.7 (OK)
jedi >=0.9.0      :  0.11.1 (OK)
psutil >=0.3      :  5.4.3 (OK)
nbconvert >=4.0   :  5.3.1 (OK)
sympy >=0.7.3     :  1.1.1 (OK)
cython >=0.21     :  0.27.3 (OK)
qtconsole >=4.2.0 :  4.3.1 (OK)
IPython >=4.0;<6.0:  5.4.1 (OK)
pylint >=0.25     :  1.8.2 (OK)
ccordoba12 commented 5 years ago

You need to update Python to fix this error. For that please open Terminal.app and run the following command

conda update python
ccordoba12 commented 5 years ago

Sorry, that problem is probably not fixed in Python 2, so my above solution doesn't work. The only possible solution is to update to Python 3 (and given that Python 2 has only 6 months of life, it's about time, sorry).