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.

spyder ValueError: Invalid Signature:

See original GitHub issue

Description

What steps will reproduce the problem?

  1. I open spyder and error is produced

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

Please provide any additional information below

ValueError: Invalid Signature: b’4eb60105a40ae5efed4462fcda95240d465fb552a040592f88e612f7fc314337’ ValueError: Invalid Signature: b’4eb60105a40ae5efed4462fcda95240d465fb552a040592f88e612f7fc314337’ ValueError: Invalid Signature: b’9231b9cc51a19211b13179fcec6bfbce467be9db144f7aff7c702d4b8fefff2c’

Version and main components

  • Spyder Version: 3.2.6
  • Python Version: 3.6.4
  • Qt Versions: 5.6.2, PyQt5 5.6 on Windows

Dependencies

pyflakes >=0.6.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.0 (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)
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.2.1 (OK)
pylint >=0.25    :  1.8.2 (OK)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
CAM-Gerlachcommented, Apr 24, 2018

Thanks for the followup. Please remember to put ``` above and below your code/output blocks as I stated previously, or they will be all messed up and very hard to read due to Github’s formatting, as you can clearly see looking at your posts. I had to do so again editing your post above so I could follow it.

some of update appeared the message something like below

Thanks, that’s quite helpful. Please try to post error messages in full like that in the future. The message suggests something is indeed corrupted with your install, which has to do with conda and other Anaconda infrastructure rather than anything related to Spyder, and a quick Google revealed this relevant issue on the conda repo, to which further problems in the vein should be reported it has nothing to do with Spyder and there isn’t anything we can do about it. Very likely, this is related to something specific in your environment, like installing a bad package, using pip in any way, or something weird with your environments; there’s also a chance it could be security/antivirus software messing with things (as the Guide suggests).

First time I install anaconda spyder ,they all works.

Right…

After running some code about tensorflow , spyder crashes

Well, there you go. That’s the most likely source of the problem discussed above; there are many problems with Tensorflow and many users install it with pip or its whole problem conda environment, so very likely this is your issue. Again, this has nothing to do with Spyder and there’s nothing more we can do to help from our side; this should be reported to the conda folks or possibly Tensorflow if you’re sure its not a problem on your end (which it seems like to some extent).

Also, I didn’t get an answer to my previous question,

Now if you start jupyter qtconsole, does an error still appear?

But I assume the answer is still yes, which is yet another piece of clear evidence this error is not Spyder-related.

Best of luck!

1reaction
Andyyoweicommented, Apr 24, 2018

The following is jupyter qtconsole

(base) C:\Users\MC_Server>jupyter qtconsole ERROR:tornado.general:Uncaught exception in ZMQStream callback Traceback (most recent call last): File “C:\Users\MC_Server\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py”, line 432, in _run_callback callback(*args, **kwargs) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\tornado\stack_context.py”, line 276, in null_wrapper return fn(*args, **kwargs) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\jupyter_client\threaded.py”, line 86, in _handle_recv msg = self.session.deserialize(smsg) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\jupyter_client\session.py”, line 923, in deserialize raise ValueError(“Invalid Signature: %r” % signature) ValueError: Invalid Signature: b’fec7b5ca465cdc9bbd1d4427b2a690922ceef7421f10c428d7ba011c77749507’ ERROR:tornado.general:Uncaught exception in zmqstream callback Traceback (most recent call last): File “C:\Users\MC_Server\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py”, line 450, in _handle_events self._handle_recv() File “C:\Users\MC_Server\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py”, line 480, in _handle_recv self._run_callback(callback, msg) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py”, line 432, in _run_callback callback(*args, **kwargs) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\tornado\stack_context.py”, line 276, in null_wrapper return fn(*args, **kwargs) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\jupyter_client\threaded.py”, line 86, in _handle_recv msg = self.session.deserialize(smsg) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\jupyter_client\session.py”, line 923, in deserialize raise ValueError(“Invalid Signature: %r” % signature) ValueError: Invalid Signature: b’fec7b5ca465cdc9bbd1d4427b2a690922ceef7421f10c428d7ba011c77749507’ [IPKernelApp] ERROR | Invalid Message Traceback (most recent call last): File “C:\Users\MC_Server\Anaconda3\lib\site-packages\ipykernel\kernelbase.py”, line 206, in dispatch_shell msg = self.session.deserialize(msg, content=True, copy=False) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\jupyter_client\session.py”, line 923, in deserialize raise ValueError(“Invalid Signature: %r” % signature) ValueError: Invalid Signature: b’438aceff56ef6f1984bb782d999b69b6004eed336043cd3c8150ff5f05a5bb41’ ERROR:asyncio:Exception in callback BaseAsyncIOLoop._handle_events(884, 1) handle: <Handle BaseAsyncIOLoop._handle_events(884, 1)> Traceback (most recent call last): File “C:\Users\MC_Server\Anaconda3\lib\asyncio\events.py”, line 145, in _run self._callback(*self._args) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\tornado\platform\asyncio.py”, line 117, in _handle_events handler_func(fileobj, events) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\tornado\stack_context.py”, line 276, in null_wrapper return fn(*args, **kwargs) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py”, line 450, in _handle_events self._handle_recv() File “C:\Users\MC_Server\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py”, line 480, in _handle_recv self._run_callback(callback, msg) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py”, line 432, in _run_callback callback(*args, **kwargs) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\tornado\stack_context.py”, line 276, in null_wrapper return fn(*args, **kwargs) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\jupyter_client\threaded.py”, line 86, in _handle_recv msg = self.session.deserialize(smsg) File “C:\Users\MC_Server\Anaconda3\lib\site-packages\jupyter_client\session.py”, line 923, in deserialize raise ValueError(“Invalid Signature: %r” % signature) ValueError: Invalid Signature: b’fec7b5ca465cdc9bbd1d4427b2a690922ceef7421f10c428d7ba011c77749507’

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working on a Common Lisp Jupyter notebook server
I am unclear as to how the PYTHON jupyter client even enters into the ... line 902, in deserialize raise ValueError("Invalid Signature: %r ......
Read more >
Troubleshooting and tips — Numba 0.50.1 documentation
TypingError: Failed at nopython (nopython frontend) Invalid use of + with parameters (int64, tuple(int64 x 1)) Known signatures: * (int64, int64) -> int64 ......
Read more >
Python Signature Example is not working while Node.js ...
Python 3 code generates an invalid signature due to which I am getting the error of Invalid signature while joining meeting.
Read more >
ValueError: invalid literal for int() with base 10: '.' Code Example
Just for the record: print(int('55063.000000')) #Traceback (most recent call last): #File " ", line 1, in #ValueError: invalid literal for int() with base ......
Read more >
IPython Documentation - Read the Docs
#2425: Liaise with Spyder devs to integrate newer IPython ... #2936: Tornado assumes invalid signature for parse_qs on Python 3.1.
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