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.

Pipenv fails on a RaspberryPi Zero W and Python 2.7.13

See original GitHub issue

I’ve installed pipenv via pipsi. I also installed pew using pipsi, and added the correct stuff to my path. I compiled python from source on the pi zero. This works perfectly fine on other raspberry pi’s when I’ve compiled python from source and installed everything using pipsi. Here is the output I get when I try and initialize a new environment. This fails no matter what combination of commands I use to initialize an environment (pipenv --two, pipenv install, pipenv install --two, pipenv --three, etc.)

> pi@tinypi:~/sonofwi $ pipenv --two
Creating a virtualenv for this project...
Traceback (most recent call last):
  File "/home/pi/.local/bin/pipenv", line 11, in <module>
    sys.exit(cli())
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 1043, in invoke
    return Command.invoke(self, ctx)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/cli.py", line 780, in cli
    ensure_project(three=three, python=python)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/cli.py", line 162, in ensure_project
    ensure_virtualenv(three=three, python=python)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/cli.py", line 137, in ensure_virtualenv
    do_create_virtualenv(three=three, python=python)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/cli.py", line 396, in do_create_virtualenv
    click.echo(crayons.blue(c.out), err=True)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/delegator.py", line 91, in out
    self.__out = self._pexpect_out
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/delegator.py", line 79, in _pexpect_out
    result += self.subprocess.read()
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 413, in read
    self.expect(self.delimiter)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 321, in expect
    timeout, searchwindowsize, async)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 345, in expect_list
    return exp.expect_loop(timeout)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/pexpect/expect.py", line 107, in expect_loop
    return self.timeout(e)
  File "/home/pi/.local/venvs/pipenv/lib/python2.7/site-packages/pipenv/vendor/pexpect/expect.py", line 70, in timeout
    raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0xb616d9d0>
searcher: searcher_re:
    0: EOF
<pexpect.popen_spawn.PopenSpawn object at 0xb616d9d0>
searcher: searcher_re:
    0: EOF

Issue Analytics

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

github_iconTop GitHub Comments

15reactions
rdpoorcommented, May 17, 2018

I stumbled here after asking observing this issue on stack overflow. In case someone else lands here for the same reason, the timeout can be extended like this:

pi@raspberry:~/testdir $ export PIPENV_TIMEOUT=500
pi@raspberry:~/testdir $ pipenv install requests
1reaction
nateprewittcommented, Jun 12, 2017

I think this is wrapped up in #403. Thanks again @erinxocon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pipenv locking failed - Raspberry Pi Forums
I am trying to install django (2.2.0) on my Raspberry Pi. I first installed Python 3.7 (I did not uninstall previous versions --...
Read more >
python - I can't install Gevent - Stack Overflow
I managed to solve this same issue on my raspberry pi zero by using a compiled binary instead of pip. sudo apt-get install...
Read more >
Common Pipenv Errors and How to Solve Them: Why Won't it ...
The second most common reason locking fails is that we attempt to install a package that is a pre-release version. You can resolve...
Read more >
Pillow 2.2.1 - PyPI
Port existing PIL-based code to Pillow. Pillow is a functional drop-in replacement for the Python Imaging Library. To run your existing PIL-compatible code...
Read more >
2018-April.txt - Python mailing list
We'll need clear instructions on how to reproduce it, as it doesn't fail for me ... Or one that is all zeros but...
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