<![CDATA[Arch Linux Forums / PYTHONHOME?]]> 2005-10-22T15:22:55Z FluxBB https://bbs.archlinux.org/viewtopic.php?id=15856 <![CDATA[Re: PYTHONHOME?]]> I installed it in /usr/local and edited the script to use that for it's PYTHONHOME and PYTHONPATH.

Seems to have worked  big_smile

and 2.4 is still the default python...

https://bbs.archlinux.org/profile.php?id=364 2005-10-22T15:22:55Z https://bbs.archlinux.org/viewtopic.php?pid=119759#p119759
<![CDATA[Re: PYTHONHOME?]]> install it in /opt is your looking to make a pkg
or just extract to your home if its jusy for personal use

probalby worth adding the path to is to /etc/ld.so.conf
and /etc/profile.d

look at the other scripts in there for an example

usr rpmunpack to extract the files and copy thm to

https://bbs.archlinux.org/profile.php?id=3218 2005-10-22T09:27:24Z https://bbs.archlinux.org/viewtopic.php?pid=119713#p119713
<![CDATA[Re: PYTHONHOME?]]> OK - so it sounds like it's worth trying then...

I went to the python page to see if I could download python, but it's only available as RPMs... also I want to be able to make sure I can install it in such a way that it doesn't overwrite my 2.4 install...

I'm a bit clueless at this point...

https://bbs.archlinux.org/profile.php?id=364 2005-10-22T09:10:53Z https://bbs.archlinux.org/viewtopic.php?pid=119711#p119711
<![CDATA[Re: PYTHONHOME?]]> yep there were mass breakages from 2.2 to 2.3....

https://bbs.archlinux.org/profile.php?id=3218 2005-10-21T19:40:43Z https://bbs.archlinux.org/viewtopic.php?pid=119663#p119663
<![CDATA[Re: PYTHONHOME?]]> One of the deps is python 2.2 and I have 2.4.  Is it possible that some deprectated APIs are being used or something like that...?

If so, what's the best way to install 2.2 and could I have both versions alongside each other.  For example python 2.4 could be my base installation of python, but 2.2 would be installed somewhere and the script that starts the game could set PYTHONHOME and PYTHONPATH to the 2.2 installation...

Does that make sense?  Would it work?

https://bbs.archlinux.org/profile.php?id=364 2005-10-21T19:37:30Z https://bbs.archlinux.org/viewtopic.php?pid=119662#p119662
<![CDATA[Re: PYTHONHOME?]]> I know it's a big ask, but is there any chance someone else could install the demo and tell me if it works for them?  I can get the game running but if I go into some buildings - which should trigger an event in python and run a script - I get nothing but an empty building.

If you don't get the same problem we can compare packages installed, and if you do then we can assume it's something to do with how arch is set up...

https://bbs.archlinux.org/profile.php?id=364 2005-10-15T20:38:33Z https://bbs.archlinux.org/viewtopic.php?pid=118691#p118691
<![CDATA[Re: PYTHONHOME?]]> I have all of those installed and have rebooted since the install...

https://bbs.archlinux.org/profile.php?id=364 2005-10-14T21:18:08Z https://bbs.archlinux.org/viewtopic.php?pid=118560#p118560
<![CDATA[Re: PYTHONHOME?]]> log out and back in again this can help sometimes with wonky python

if you have just downloaded it extracted it and are trying to run it, if you have already tried tis ignore me:)

deps show as sdl sdlmixer SMPEG and zlib....

do you have smpeg installed?

https://bbs.archlinux.org/profile.php?id=3218 2005-10-14T20:53:49Z https://bbs.archlinux.org/viewtopic.php?pid=118558#p118558
<![CDATA[Re: PYTHONHOME?]]> The game is Devil Whiskey.  I'm not even trying to compile it.  I just downloaded binaries in a tar file and extracted it...

https://bbs.archlinux.org/profile.php?id=364 2005-10-14T19:42:58Z https://bbs.archlinux.org/viewtopic.php?pid=118550#p118550
<![CDATA[Re: PYTHONHOME?]]> I did a google search on "eventapi python" but it didn't turn up anything. The only thing that I can think of is that:
A) The Arch Linux python package is somehow missing it.
B) Missing dependency like snowman suggested
C) Something wrong with the program.

What game are you trying to compile? Maybe googling that will help.

https://bbs.archlinux.org/profile.php?id=879 2005-10-14T19:39:08Z https://bbs.archlinux.org/viewtopic.php?pid=118549#p118549
<![CDATA[Re: PYTHONHOME?]]> The syntax error might be a red herring.  I've tried running some of the python scripts and they all turn up the following error:

ImportError: No module named eventAPI

There is nothing called eventAPI in /usr/lib/python2.4 - I wonder if the lack of this module might be an issue...

https://bbs.archlinux.org/profile.php?id=364 2005-10-14T16:16:17Z https://bbs.archlinux.org/viewtopic.php?pid=118525#p118525
<![CDATA[Re: PYTHONHOME?]]> Well I don't know if I can help you with a syntax error. It looks like a problem with the original program. You might want to contact the developer of the game about it or do a google search to see if anyone else has encountered similar problems.

https://bbs.archlinux.org/profile.php?id=879 2005-10-13T21:25:21Z https://bbs.archlinux.org/viewtopic.php?pid=118409#p118409
<![CDATA[Re: PYTHONHOME?]]> random.py is there.  I had already tried reinstalling python though.  I tried setting both PYTHONHOME and PYTHONPATH to /usr/lib/python2.4 and now the random module is found - but still doesn't work properly - it throws the following errors:

'import site' failed; use -v for traceback
/usr/lib/python2.4/types.py:52: Warning: 'yield' will become a reserved keyword in the future
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/usr/lib/python2.4/random.py", line 42, in ?
    from warnings import warn as _warn
  File "/usr/lib/python2.4/warnings.py", line 6, in ?
    import sys, types
  File "/usr/lib/python2.4/types.py", line 52
    yield 1
SyntaxError: invalid syntax
Vertex3f: 2
Normal3f: 1
TexCoord2f: 1

Some of that may be other output from the game and not all python.

The game is neither an official package nor one that I'm making - I just unzipped the tar file.  Essentially it works perfectly except for when it's supposed to run python scripts in which case, with one exception, it just doesn't run them - but no further error is given...

https://bbs.archlinux.org/profile.php?id=364 2005-10-13T21:16:51Z https://bbs.archlinux.org/viewtopic.php?pid=118407#p118407
<![CDATA[Re: PYTHONHOME?]]> What game are you trying to play? It looks like it can't find the random module which I assume would be random.py which is located in the /usr/lib/python2.4 directory. I don't know a lot about python so I don't know if I were to trust me. tongue
Maybe the first step would be to confirm that the file is there. If it is not, try reinstalling python and see if that helps. Is this an official package or are you trying to package it yourself?

https://bbs.archlinux.org/profile.php?id=879 2005-10-13T20:52:54Z https://bbs.archlinux.org/viewtopic.php?pid=118404#p118404
<![CDATA[Re: PYTHONHOME?]]> Missing dependency?

https://bbs.archlinux.org/profile.php?id=1940 2005-10-13T20:49:00Z https://bbs.archlinux.org/viewtopic.php?pid=118403#p118403