Hi Matthew,
I think there are two issues here.
1. Some of my beta-testers couldn't install rabbyt on their machines.
2. I can't seem to import rabbyt when it's a sub-package in my
project.
I'm primarily concerned with the second issue because I really like
the idea of including rabbyt (and pyglet) directly in my project. It's
one less thing the user has to install and if I make a frozen
executable they only need to double click it to run the game.
My test Windows environment here uses Windows 7 (64-bit). I have the
32-bit version of python installed (no other python modules
installed). Rabbyt is in the project structure I listed above. It
appears to only work when I try to import it from the *immediate*
parent directory.
It's probably easier to see the error for yourself. Here's a stripped
down version of the project with just 'main.py' and 'test_rabbyt.py'
and a couple of folders with empty '__init__.py':
<
http://www.mediafire.com/?avw41mbu4ryl4e8>
I can run 'test_rabbyt.py' and it imports fine (the version number is
displayed in my console). When I run 'main.py' it seems to find the
rabbyt package but raises'ImportError: No module named
rabbyt._rabbyt'. There is no '_rabbyt.py' so (to me) it looks like
it's having trouble reading '_rabbyt.pyd' - but only when it's a sub-
package. It seems to be ok when imported from the other file.
Any idea?
As for the installer issue I thought they were using the 32-bit
version of python but there's a chance that might really be the 64-bit
version (I have to ask them). The only other package for the game is
pyglet but since the latest version supports 64-bit python it never
threw any errors. The only other info I have about the issue is that
the installer never seemed to complete; it couldn't find the python
version on their machines. I just downloaded the installer and tried
it here and it appears to work fine. (I'll uninstall it in a second so
that I can concentrate on the second issue.)
> If you want it to work regardless of if the user installed 32 or 64 bit
> python, maybe you could could include both versions of rabbyt in different
> directories. You could add the respective directory to sys.path depending
> on if python is 32 or 64 bit.
Wait - I'm confused. Is there another version of rabbyt? I thought it
was only a 32-bit module?
Thanks, and I really appreciate your help! I love Rabbyt - I'd have to
really scale back my game if wasn't around. (or write it in another
language)
Carrie