-
Notifications
You must be signed in to change notification settings - Fork 440
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
pyre-check not found in python:3.7-alpine docker image #115
Comments
Thanks for the report. I am not sure if alpine uses the upstream pip repo or a mirror; could you please re-run |
|
There's the problem: Does alpine ship with Python3.4 or previous? Pyre supports Python3.5+ only. |
If this is still a problem, please reopen the issue with the information requested above. |
I'm having the same problem when trying to install on an Alpine container. Using
Same result for |
For anyone else that finds themselves with this problem, doing
(or equivalent Python version folder) allows installation to succeed. Unfortunately (and I have no idea why and am giving up and not using Alpine for CI related work) $ docker run -it python:3.7.0-alpine3.8 /bin/sh
/ # echo 'manylinux1_compatible = True' > /usr/local/lib/python3.7/site-packages/_manylinux.py
/ # pip install pyre-check
Collecting pyre-check
Downloading https://files.pythonhosted.org/packages/bc/a2/43b3694c0237be28cd3cd610d3fb4aedbb43570423c4766dad693bb8ddac/pyre_check-0.0.21-py3-none-manylinux1_x86_64.whl (18.5MB)
100% |████████████████████████████████| 18.5MB 667kB/s
Installing collected packages: pyre-check
Successfully installed pyre-check-0.0.21
You are using pip version 18.1, however version 19.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
/ # ls
bin dev etc home lib media mnt proc root run sbin srv sys tmp usr var
/ # pyre init
ƛ Which directory should pyre be initialized in? (Default: `.`):
ƛ Successfully initialized pyre! You can view the configuration at `/.pyre_configuration`.
/ # pyre
No watchman binary found.
To enable pyre incremental, you can install watchman: https://facebook.github.io/watchman/docs/install.html
Defaulting to non-incremental check.
ƛ [Errno 2] No such file or directory: '/usr/local/bin/pyre.bin': '/usr/local/bin/pyre.bin'
ƛ Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pyre_check/pyre.py", line 387, in main
command(arguments, configuration, analysis_directory)
File "/usr/local/lib/python3.7/site-packages/pyre_check/commands/command.py", line 109, in run
self._run()
File "/usr/local/lib/python3.7/site-packages/pyre_check/commands/check.py", line 46, in _run
result = self._call_client(command="check")
File "/usr/local/lib/python3.7/site-packages/pyre_check/commands/command.py", line 207, in _call_client
preexec_fn=limit_memory_usage,
File "/usr/local/lib/python3.7/subprocess.py", line 756, in __init__
restore_signals, start_new_session)
File "/usr/local/lib/python3.7/subprocess.py", line 1499, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/pyre.bin': '/usr/local/bin/pyre.bin'
/ # ls /usr/local/bin/
2to3 easy_install-3.7 idle3.7 pip3.7 pydoc3.7 python python3-config python3.7m pyvenv-3.7
2to3-3.7 idle pip pydoc pyre python-config python3.7 python3.7m-config wheel
easy_install idle3 pip3 pydoc3 pyre.bin python3 python3.7-config pyvenv
/ # ls /usr/local/bin/ | grep pyre.bin | wc -l
1 |
Below I've dropped in my docker file and the relevant output for installing pyre-check on python:3.7-alpine. The issue is that pyre-check doesn't appear to be included in the python:3.7-alpine docker image. python:3.7-slim finds the pyre-check dependency just fine. It's just the -alpine base image that has the problem.
Dockerfile
docker build
output:The text was updated successfully, but these errors were encountered: