Last modified: 2014-04-16 02:11:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T64240, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 62240 - pip install phpsh fails because HOME isn't defined
pip install phpsh fails because HOME isn't defined
Status: RESOLVED FIXED
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Ori Livneh
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-05 00:15 UTC by Mark A. Hershberger
Modified: 2014-04-16 02:11 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mark A. Hershberger 2014-03-05 00:15:01 UTC
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.
Comment 1 Ori Livneh 2014-04-16 02:11:07 UTC
Fixed in phpsh 1.3.5: https://github.com/atdt/phpsh/commit/d8ba6e34ea43a6021cf44353eec979ef1846f8ec

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links