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.

pip does not work on Haiku

See original GitHub issue

Environment

  • pip version: Most recent version available on Haiku https://www.haiku-os.org/
  • Python version: Most recent version available on Haiku
  • OS: Haiku

Description

pip 3 install hangs

Expected behavior

pip 3 install works

How to Reproduce

Run the latest Haiku Anyboot image from https://download.haiku-os.org/nightly-images/x86_64 . Then do:

git clone https://github.com/micahflee/onionshare.git
cd onionsharepython3 -m venv venv
pkgman i setuptools_python36 # pkgman i setuptools_python installs for 3.7
pip3 install -r install/requirements.txt
Could not find a version that satisfies the requirement PyQt5==5.12.1 (from -r install/requirements.txt (line 15)) (from versions: )
No matching distribution found for PyQt5==5.12.1 (from -r install/requirements.txt (line 15))
# stalled here - does not continue or exit

Output

None

According to a Haiku developer, the stalled pip is because pip wants to use hardlinks but Haiku doesn’t support those.

Reference: https://medium.com/@probonopd/my-second-week-with-haiku-lots-of-hidden-gems-and-pleasant-surprises-and-some-issues-7e508f0db987

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
probonopdcommented, Jul 25, 2019
(venv) /Haiku/home/onionshare> pip3.6 install --no-cache-dir -r install/requirements.txt 

(...)

Collecting PyQt5==5.12.1 (from -r install/requirements.txt (line 15))
  Could not find a version that satisfies the requirement PyQt5==5.12.1 (from -r install/requirements.txt (line 15)) (from versions: )
No matching distribution found for PyQt5==5.12.1 (from -r install/requirements.txt (line 15))

(hangs forever here)

Ctrl-C, Ctrl-D gives:

Traceback (most recent call last):
  File "/packages/python36-3.6.8-2/.self/lib/python3.6/vendor-packages/pip/_vendor/lockfile/linklockfile.py", line 31, in acquire
    os.link(self.unique_name, self.lock_file)
PermissionError: [Errno -2147483633] Operation not allowed: '/boot/home/config/cache/pip/shredder-5fc8f580.756-6502217927950064930' -> '/boot/home/config/cache/pip/selfcheck.json.lock'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/bin/pip3.6", line 11, in <module>
    load_entry_point('pip==9.0.0', 'console_scripts', 'pip3.6')()
  File "/packages/python36-3.6.8-2/.self/lib/python3.6/vendor-packages/pip/__init__.py", line 233, in main
    return command.main(cmd_args)
  File "/packages/python36-3.6.8-2/.self/lib/python3.6/vendor-packages/pip/basecommand.py", line 252, in main
    pip_version_check(session)
  File "/packages/python36-3.6.8-2/.self/lib/python3.6/vendor-packages/pip/utils/outdated.py", line 138, in pip_version_check
    state.save(pypi_version, current_time)
  File "/packages/python36-3.6.8-2/.self/lib/python3.6/vendor-packages/pip/utils/outdated.py", line 71, in save
    with lockfile.LockFile(self.statefile_path):
  File "/packages/python36-3.6.8-2/.self/lib/python3.6/vendor-packages/pip/_vendor/lockfile/__init__.py", line 197, in __enter__
    self.acquire()
  File "/packages/python36-3.6.8-2/.self/lib/python3.6/vendor-packages/pip/_vendor/lockfile/linklockfile.py", line 50, in acquire
    time.sleep(timeout is not None and timeout / 10 or 0.1)
KeyboardInterrupt
1reaction
extrowerkcommented, Jul 22, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find a version that satisfies the requirement haiku
After read documentation about haiku https://dm-haiku.readthedocs.io/en/latest/. the document suggest to install with this code pip install ...
Read more >
How to use pip install? - Help - Haiku Community
The haiku packages can install all included files to the right position (write protected areas too). Phyton packages could get problems here. If ......
Read more >
dm-haiku - PyPI
Haiku can be expected to compose with other libraries and work well with the rest of JAX. Haiku otherwise is designed to get...
Read more >
Haiku Documentation — Haiku documentation
Read Limitations of Nesting JAX Functions and Haiku Modules to find out how to work around these issues. Contribute#. Issue tracker: https://github.com/deepmind ...
Read more >
Haiku/SenseMe Smart Fan Support - #80 by germplan
The aiosenseme library should be installed with “pip”. If you just copied files it may not work so I recommend removing any aiosenseme...
Read more >

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