[aklug] Python Libraries: Install Hexoshi

Tim Johnson tim at akwebsoft.com
Sat Apr 22 16:35:54 AKDT 2017

* Christopher Howard <christopher.howard at qlfiles.net> [170422 10:09]:
> Hi list, I was trying to install this:
> http://hexoshi.nongnu.org/download.html
> I ran the command
> python -m pip install pathlib six sge-pygame tmx xsge_gui xsge_lighting
> xsge_path xsge_physics xsge_tmx
> which seemed to work by installing something in /usr/local/lib/python2.7/.
> But when I try
> $ ./hexoshi.py
> I get
> Traceback (most recent call last):
>   File "./hexoshi.py", line 41, in <module>
>     import sge
> ImportError: No module named sge
> It has been quite a few years since I've coded anything in python... is
> there an environment variable I need to set or something?
  Python will check for a PYTHONPATH variable. 
  $ echo $PYTHONPATH  # to verify if set
  Also, take a look at sys.path
  start python intrepeter
  >>> import sys
  >>> print(sys.path)
  # sys.path is a list of strings that contain paths to various 
  # file locations
  # locate sge.py or sge.pyc and note where it is installed.
  # determine whether the location above
  Also to determine whether sys.path may have been munged, 
  you could test sys.path from a script (as above)
http://www.akwebsoft.com, http://www.tj49.com

More information about the aklug mailing list