trying to install phpsh and got error

649 views
Skip to first unread message

Alex Pletnev

unread,
Nov 27, 2010, 2:27:07 PM11/27/10
to phpsh
line 8, in <module>
from phpsh import __version__
ImportError: No module named phpsh


can anybody explain? don't know much python

Aran Donohue

unread,
Nov 27, 2010, 4:45:11 PM11/27/10
to ph...@googlegroups.com
phpsh's architecture is a thin php wrapper that invokes a python library that in turn handles communication with php subprocesses. It appears that the python library is not in your python path. If you open a python terminal and do the following, you'll be able to see your python path. 

Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print("\n".join(sorted(sys.path)))

Double check your phpsh installation to make sure the python phpsh libraries were put in the appropriate place.

Hope this helps,
Aran

Mehdi Arbaoui

unread,
Feb 5, 2013, 2:40:49 PM2/5/13
to ph...@googlegroups.com
Edit your ~/.bash_profile and add python path like :
export PYTHONPATH=/usr/local/lib/python2.7/site-packages
Reply all
Reply to author
Forward
0 new messages