Page MenuHomePhabricator

pip install phpsh fails because HOME isn't defined
Closed, ResolvedPublic

Description

Testing with a slightly different precise image (maybe this is the cause? if it is, this should still be fixed)

Log:

Error: Could not update: Execution of '/usr/bin/pip install -q phpsh==1.3.4'
returned 1: Command python setup.py egg_info failed with error code 1
Storing complete log in /root/.pip/pip.log

pip.log shows:

Running setup.py egg_info for package phpsh
  Traceback (most recent call last):
    File "<string>", line 14, in <module>
    File "/home/vagrant/build/phpsh/setup.py", line 20, in <module>
      config_dir = os.getenv("HOME") + "/.phpsh"
  TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
  Complete output from command python setup.py egg_info:
  Traceback (most recent call last):

File "<string>", line 14, in <module>

File "/home/vagrant/build/phpsh/setup.py", line 20, in <module>

  config_dir = os.getenv("HOME") + "/.phpsh"

TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Able to reproduce this when logging in with "vagrant ssh" only after "unset HOME"...

Most straightforward fix is to fix phpsh, but reporting here so it can be tracked.


Version: unspecified
Severity: normal

Details

Reference
bz62240