sifive / duhportinf

🐉 DUH port inference package
https://github.com/sifive/duh
Apache License 2.0
3 stars 3 forks source link

pip3 not found #5

Closed derekpappas closed 4 years ago

derekpappas commented 5 years ago

> duhportinf@0.1.0 install /Users/depappas/demo-block/node_modules/duhportinf
> npm run -s gen-reqs && npm run -s install-pyreqs && pip3 install --target $PWD/pylib .

Traceback (most recent call last):
  File ".npm-install/gen-local-req.py", line 13, in <module>
    txt = subprocess.check_output(['pip3', 'list', '--format=freeze'])
  File "/Users/depappas/anaconda3/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/Users/depappas/anaconda3/lib/python3.6/subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/Users/depappas/anaconda3/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/Users/depappas/anaconda3/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pip3': 'pip3'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! duhportinf@0.1.0 install: `npm run -s gen-reqs && npm run -s install-pyreqs && pip3 install --target $PWD/pylib .`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the duhportinf@0.1.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/depappas/.npm/_logs/2019-02-27T22_29_43_543Z-debug.log
derekpappas commented 5 years ago

https://medium.com/@henriquebastos/the-definitive-guide-to-setup-my-python-workspace-628d68552e14

abishara commented 5 years ago

Hi Derek,

I have updated the duhportinf installation to at least check pip3 and python3 are correctly setup, and if they are not, then an interpretable error message is now displayed before proceeding with installation.

The way the installation is currently setup for duh (and the dependency duhportinf), I think we will have to depend on python3 being correctly setup on the user's side. There doesn't seem to be a good portable solution to package a self-contained python interpreter with duh. One alternative we could consider in the future is including a statically compiled binary of duhportinf as a dependency.

Thanks, alex

drom commented 5 years ago

@derekpappas are you good with resolution?

derekpappas commented 5 years ago

I think that the duh pkg should include a local Python installer for each OS platform.

DUH should not rely on the system level Python packages.

On Fri, Mar 22, 2019 at 4:44 PM Aliaksei Chapyzhenka < notifications@github.com> wrote:

@derekpappas https://github.com/derekpappas are you good with resolution?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sifive/duh/issues/25#issuecomment-475817169, or mute the thread https://github.com/notifications/unsubscribe-auth/Ah0-vtzRQ-oLCZvTJBHpzFPp1IYVgFlpks5vZWrUgaJpZM4bVmKz .

drom commented 4 years ago

Assuming that Python 3.5+ is installed