New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplejson 3.7.3 installation error on cygwin with pip #2930

Closed
furlongm opened this Issue Jun 25, 2015 · 3 comments

Comments

Projects
None yet
3 participants
@furlongm

This happens every time trying to upgrade simplesjon to 3.7.3 from 3.6.5.

Collecting simplejson==3.7.3
  Using cached simplejson-3.7.3.tar.gz
Installing collected packages: simplejson
  Found existing installation: simplejson 3.6.5
    Uninstalling simplejson-3.6.5:
      Successfully uninstalled simplejson-3.6.5
  Running setup.py install for simplejson
      0 [main] python2.7 5044 child_info_fork::abort: unable to map C:\cygwin\lib\python2.7\site-packages\simplejson\_speedups.dll, Win32 error 126
    Error [Errno 11] Resource temporarily unavailable while executing command /usr/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-MYU23f/simplejson/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-w0K0LP-record/install-record.txt --single-version-externally-managed --compile
  Rolling back uninstall of simplejson
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 223, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 297, in run
    root=options.root_path,
  File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 622, in install
    **kwargs
  File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 857, in install
    show_stdout=False,
  File "/usr/lib/python2.7/site-packages/pip/utils/__init__.py", line 701, in call_subprocess
    cwd=cwd, env=env)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1231, in _execute_child
    self.pid = os.fork()
OSError: [Errno 11] Resource temporarily unavailable

Originally reported issue to simplejson project, however they believe this is a pip issue, see simplejson/simplejson#120 (comment)

@furlongm

This comment has been minimized.

Show comment
Hide comment
@furlongm

furlongm Jul 17, 2015

From simplejson/simplejson#120 (comment)

  • pip imports simplejson
  • pip uninstalls the version of simplejson it's using
  • pip tries to use simplejson when installing the new one, which fails because the dll it needs has been uninstalled

From simplejson/simplejson#120 (comment)

  • pip imports simplejson
  • pip uninstalls the version of simplejson it's using
  • pip tries to use simplejson when installing the new one, which fails because the dll it needs has been uninstalled
@sixty4k

This comment has been minimized.

Show comment
Hide comment
@sixty4k

sixty4k Dec 23, 2017

for anyone who finds their way here trying to deal with pip segfaulting, you can work around it by adding: --no-binary simplejson to the pip command.

sixty4k commented Dec 23, 2017

for anyone who finds their way here trying to deal with pip segfaulting, you can work around it by adding: --no-binary simplejson to the pip command.

@pholcroft

This comment has been minimized.

Show comment
Hide comment
@pholcroft

pholcroft Jan 2, 2018

Thanks for that sixty4k. That lead me on the right path, but figuring out the full command was tricky. For anyone else, the full command is:
pip3 install --no-binary simplejson simplejson

Thanks for that sixty4k. That lead me on the right path, but figuring out the full command was tricky. For anyone else, the full command is:
pip3 install --no-binary simplejson simplejson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment