- Updated Wednesday, September 2nd 2015 @ 16:46:09
I've downloaded the python starter bot from the "Getting Started" page. After I've modified the starter bot, I've zipped and uploaded it. Unfortunately, it always fails the input test. Locally it runs fine!
I get the following error:
Error dump Traceback (most recent call last): File "src/BotRun.py", line 3, in from Bot import Planner ImportError: No module named Bot Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/apportpythonhook.py", line 66, in apportexcepthook from apport.fileutils import likelypackaged, getrecentcrashes File "/usr/lib/python2.7/dist-packages/apport/init.py", line 1, in from apport.report import Report File "/usr/lib/python2.7/dist-packages/apport/report.py", line 20, in import apport.fileutils File "/usr/lib/python2.7/dist-packages/apport/fileutils.py", line 22, in from apport.packagingimpl import impl as packaging File "/usr/lib/python2.7/dist-packages/apport/packagingimpl.py", line 20, in import apt File "/usr/lib/python2.7/dist-packages/apt/init.py", line 35, in apt_pkg.init() SystemError: E:Unable to determine a suitable packaging system type
Original exception was: Traceback (most recent call last): File "src/BotRun.py", line 3, in from Bot import Planner ImportError: No module named Bot
Input dump Output dump Running testcase /opt/aigames/etc/testsblockbattle/testblockbattle.txt... Testing Bot with setup input... ... finished testcase in 0.239999998361 seconds Test failed: no output
There is no way I can debug this, because it only appears on the server side. Can someone have a look at this?
- Created Thursday, September 3rd 2015 @ 09:15:56
I'm guessing you are working from a mac?
- Updated Thursday, September 3rd 2015 @ 13:21:34
No, I'm working on a Linux computer. How should the OS by a reason for this error?
Maybe the starter bot was originally created on a mac, I don't know...
- Updated Thursday, September 3rd 2015 @ 15:05:03
No, I don't think this is the case. I don't have any carriage returns in my source code.
If I remove the empty file "init.py" from the "Bot" directory, I get the same error on my local machine:
Traceback (most recent call last): File "BotRun.py", line 7, in
from Bot import Planner ImportError: No module named Bot
Also if I rename the Bot directory, I get this error. Can it be, that on your server the empty file init.py is removed or that the folders are given another name? It's a really strange problem.
I've also tried to use the the Unicode header "# -- coding: utf-8 --" in my code, but it didn't help...
- Created Thursday, September 3rd 2015 @ 15:25:20
Can you give it a try now?
- Created Thursday, September 3rd 2015 @ 16:53:48
Oh wow, it seems to work now! I still get an error, but this time it seems to be an error in my code, so I can solve this on my own. Thank you very much! How could you solve this? What was the problem?
- Created Thursday, September 3rd 2015 @ 16:55:17
Cool. For some reason there were some permission problems with the module folders so they couldn't be read.