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.

Again: Resource temporarily unavailable

See original GitHub issue

Problem Description

I’m starting Spyder in a virtual anaconda-environment called “main”, I’m doing this via the shortcut provided by Anaconda in the start menu. When Executing an entire script by pressing F5 and afterwards entering reset to reset the console I’m getting a Again: Resource temporarily unavailable-error.

I’m getting the same error when using getpass.getpass() in a file and executing it via F5.

None of this happens when I execute the same code by marking the lines and pressing F9. If I only execute code via F9 I can use reset fine, it becomes only unusable after pressing F5.

What steps reproduce the problem?

  1. Start Spyder in an environment using the shortcut provided by Anaconda. 2a. Execute some file by pressing F5, then enter reset. 2b. Use getpass.getpass() in the file you’re executing.

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

No error.

Paste Traceback/Error Below (if applicable)

---------------------------------------------------------------------------
Again                                     Traceback (most recent call last)
C:/Users/My.Name/Documents/Python_Projects/SVN/Sources/dev/allgemein_sonstiges/check_ip.py in <module>
----> 1 get_ipython().run_line_magic('reset', '')

~\AppData\Local\Continuum\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py in run_line_magic(self, magic_name, line, _stack_depth)
   2305                 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
   2306             with self.builtin_trap:
-> 2307                 result = fn(*args, **kwargs)
   2308             return result
   2309 

<C:\Users\My.Name\AppData\Local\Continuum\anaconda3\Lib\site-packages\decorator.py:decorator-gen-86> in reset(self, parameter_s)

~\AppData\Local\Continuum\anaconda3\Lib\site-packages\IPython\core\magic.py in <lambda>(f, *a, **k)
    185     # but it's overkill for just that one bit of state.
    186     def magic_deco(arg):
--> 187         call = lambda f, *a, **k: f(*a, **k)
    188 
    189         if callable(arg):

~\AppData\Local\Continuum\anaconda3\Lib\site-packages\IPython\core\magics\namespace.py in reset(self, parameter_s)
    535                 ans = self.shell.ask_yes_no(
    536                 "Once deleted, variables cannot be recovered. Proceed (y/[n])?",
--> 537                 default='n')
    538             except StdinNotImplementedError:
    539                 ans = True

~\AppData\Local\Continuum\anaconda3\Lib\site-packages\IPython\core\interactiveshell.py in ask_yes_no(self, prompt, default, interrupt)
   3511         if self.quiet:
   3512             return True
-> 3513         return ask_yes_no(prompt,default,interrupt)
   3514 
   3515     def show_usage(self):

~\AppData\Local\Continuum\anaconda3\Lib\site-packages\IPython\utils\io.py in ask_yes_no(prompt, default, interrupt)
    172     while ans not in answers.keys():
    173         try:
--> 174             ans = input(prompt+' ').lower()
    175             if not ans:  # response was an empty string
    176                 ans = default

~\AppData\Local\Continuum\anaconda3\Lib\site-packages\ipykernel\kernelbase.py in raw_input(self, prompt)
    851             self._parent_ident,
    852             self._parent_header,
--> 853             password=False,
    854         )
    855 

~\AppData\Local\Continuum\anaconda3\Lib\site-packages\ipykernel\kernelbase.py in _input_request(self, prompt, ident, parent, password)
    861         while True:
    862             try:
--> 863                 self.stdin_socket.recv_multipart(zmq.NOBLOCK)
    864             except zmq.ZMQError as e:
    865                 if e.errno == zmq.EAGAIN:

~\AppData\Local\Continuum\anaconda3\Lib\site-packages\zmq\sugar\socket.py in recv_multipart(self, flags, copy, track)
    468             for any of the reasons :func:`~Socket.recv` might fail
    469         """
--> 470         parts = [self.recv(flags, copy=copy, track=track)]
    471         # have first part already, only loop while more to receive
    472         while self.getsockopt(zmq.RCVMORE):

zmq/backend/cython/socket.pyx in zmq.backend.cython.socket.Socket.recv()

zmq/backend/cython/socket.pyx in zmq.backend.cython.socket.Socket.recv()

zmq/backend/cython/socket.pyx in zmq.backend.cython.socket._recv_copy()

zmq/backend/cython/socket.pyx in zmq.backend.cython.socket._recv_copy()

~\AppData\Local\Continuum\anaconda3\Lib\site-packages\zmq\backend\cython\checkrc.pxd in zmq.backend.cython.checkrc._check_rc()

Again: Resource temporarily unavailable
---------------------------------------------------------------------------
Again                                     Traceback (most recent call last)
C:/Users/My.Name/Documents/Python_Projects/SVN/Sources/dev/allgemein_sonstiges/check_ip.py in <module>
----> 1 getpass.getpass()

~\AppData\Local\Continuum\anaconda3\Lib\site-packages\ipykernel\kernelbase.py in getpass(self, prompt, stream)
    834             self._parent_ident,
    835             self._parent_header,
--> 836             password=True,
    837         )
    838 

~\AppData\Local\Continuum\anaconda3\Lib\site-packages\ipykernel\kernelbase.py in _input_request(self, prompt, ident, parent, password)
    861         while True:
    862             try:
--> 863                 self.stdin_socket.recv_multipart(zmq.NOBLOCK)
    864             except zmq.ZMQError as e:
    865                 if e.errno == zmq.EAGAIN:

~\AppData\Local\Continuum\anaconda3\Lib\site-packages\zmq\sugar\socket.py in recv_multipart(self, flags, copy, track)
    468             for any of the reasons :func:`~Socket.recv` might fail
    469         """
--> 470         parts = [self.recv(flags, copy=copy, track=track)]
    471         # have first part already, only loop while more to receive
    472         while self.getsockopt(zmq.RCVMORE):

zmq/backend/cython/socket.pyx in zmq.backend.cython.socket.Socket.recv()

zmq/backend/cython/socket.pyx in zmq.backend.cython.socket.Socket.recv()

zmq/backend/cython/socket.pyx in zmq.backend.cython.socket._recv_copy()

zmq/backend/cython/socket.pyx in zmq.backend.cython.socket._recv_copy()

~\AppData\Local\Continuum\anaconda3\Lib\site-packages\zmq\backend\cython\checkrc.pxd in zmq.backend.cython.checkrc._check_rc()

Again: Resource temporarily unavailable

Versions

  • Spyder version: 3.3.4
  • Python version: 3,7,3 64-bit
  • Qt version: 5.9.6
  • PyQt version: 5.9.2
  • Operating System name/version: Windows 10 64-bit

Dependencies

IPython >=4.0     :  7.4.0 (OK)
cython >=0.21     :  0.29.6 (OK)
jedi >=0.9.0      :  0.13.3 (OK)
matplotlib >=2.0.0:  3.0.3 (OK)
nbconvert >=4.0   :  5.4.1 (OK)
numpy >=1.7       :  1.16.2 (OK)
pandas >=0.13.1   :  0.24.2 (OK)
pycodestyle >=2.3 :  2.5.0 (OK)
pyflakes >=0.6.0  :  2.1.1 (OK)
pygments >=2.0    :  2.3.1 (OK)
pylint >=0.25     :  2.3.1 (OK)
qtconsole >=4.2.0 :  4.4.3 (OK)
rope >=0.9.4      :  0.12.0 (OK)
sphinx >=0.6.6    :  1.8.5 (OK)
sympy >=0.7.3     :  1.3 (OK)

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
Khris777commented, Jul 16, 2019

In the end I scrapped my entire bugged Anaconda installation and did a clean reinstall using Miniconda.

The problem is gone now.

0reactions
ccordoba12commented, Jul 12, 2019

I have no idea, sorry.

Read more comments on GitHub >

github_iconTop Results From Across the Web

socket.recv(flags=zmq.NOBLOCK) always throws ... - GitHub
Clearly the server is responding with "Ack" as soon as it receives the message. The Error message is, Resource temporarily unavailable.
Read more >
zmq send with NOBLOCK raise Resource temporarily ...
1 Answer 1 · if you call send() in blocking mode, it blocks until a peer connects · if you call send() in...
Read more >
[zeromq-dev] ZMQError: Resource temporarily unavailable
I have an zmq function as below def recieve_messages(self): string = self.sub_socket.recv(flags=zmq.NOBLOCK) print('flow mod messages recieved ...
Read more >
What does the error message "fork failed: Resource ...
There is a misbehaving service or process running, consuming more resources than expected. · The system was not able to create new processes, ......
Read more >
Could not wait for server fd - select (11: Resource temporarily ...
It is set in some file(s) located in /etc/apt/sources.list.d directory. Google repository is temporary unavailable for some reason. You can try ...
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