Log in

View Full Version : No module named test2


Kevin.Marvin
February 5th, 2010, 10:26 AM
Friends:

In developing a boxee app, I've created a file in:

~/Library/ApplicationSupport/BOXEE/UserData/apps/myapp/ called test2.py

When I import this from my main.xml, the log gives me the error:

No module named test2

So it would appear that the main.xml cannot find my test2.py file. Any thoughts?

Thanks,

- Kevin

StevenR
February 5th, 2010, 11:34 AM
Exactly what is the location of your test2.py relative to the app directory?
It should be at the top level (in the same directory as the descriptor.xml).
My apps that import python scripts are working correctly with the file located there.

There are more details about exactly what should go where at http://developer.boxee.tv/App_Anatomy

Kevin.Marvin
February 22nd, 2010, 04:00 PM
Steven:

Yeah, still not getting there... Here is the output from the log that I have...

15:59:05 T:2957623296 M:4834930688 DEBUG: Process - Setting the Python path to /Applications/Boxee.app/Contents/Resources/Boxee/system/python/Lib:/Applications/Boxee.app/Contents/Resources/Boxee/system/python/python24.zip:/Applications/Boxee.app/Contents/Resources/Boxee/system/python/local:/Applications/Boxee.app/Contents/Resources/Boxee/system/python/lib/python24.zip:/Applications/Boxee.app/Contents/Resources/Boxee/system/python/lib/python2.4/:/Applications/Boxee.app/Contents/Resources/Boxee/system/python/lib/python2.4/plat-darwin:/Applications/Boxee.app/Contents/Resources/Boxee/system/python/lib/python2.4/plat-mac:/Applications/Boxee.app/Contents/Resources/Boxee/system/python/lib/python2.4/plat-mac/lib-scriptpackages:/Applications/Boxee.app/Contents/Resources/Boxee/system/python/lib/python2.4/lib-tk:/Applications/Boxee.app/Contents/Resources/Boxee/system/python/lib/python2.4/lib-dynload
15:59:05 T:2957623296 M:4834914304 NOTICE: Traceback (most recent call last):
15:59:05 T:2957623296 M:4834914304 NOTICE: File "<string>", line 4, in ?
15:59:05 T:2957623296 M:4834914304 NOTICE: ImportError
15:59:05 T:2957623296 M:4834914304 NOTICE: :
15:59:05 T:2957623296 M:4834914304 NOTICE: No module named test2
15:59:05 T:2957623296 M:4834914304 ERROR: Scriptresult: Error


I am going to attempt starting with a 'clean slate', but I don't think my boxee install is loading the root of my app into the python path.

- Kevin

Kevin.Marvin
February 22nd, 2010, 04:13 PM
Nevermind - I figured it out... /sigh...

Window id's have to be between 14000 and 14099...