Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throws TypeError: 'NoneType' object is not iterable on load #10

Open
cyian-1756 opened this issue Sep 28, 2016 · 1 comment
Open

Throws TypeError: 'NoneType' object is not iterable on load #10

cyian-1756 opened this issue Sep 28, 2016 · 1 comment

Comments

@cyian-1756
Copy link

If I try to load a level the following error is thrown

Traceback (most recent call last): File "/usr/share/panda3d/direct/showbase/EventManager.py", line 52, in eventLoopTask self.doEvents() File "/usr/share/panda3d/direct/showbase/EventManager.py", line 46, in doEvents processFunc(self.eventQueue.dequeueEvent()) File "/usr/share/panda3d/direct/showbase/EventManager.py", line 103, in processEvent messenger.send(eventName, paramList) File "/usr/share/panda3d/direct/showbase/Messenger.py", line 327, in send self.__dispatch(acceptorDict, event, sentArgs, foundWatch) File "/usr/share/panda3d/direct/showbase/Messenger.py", line 412, in __dispatch method (*(extraArgs + sentArgs)) File "main.py", line 1261, in load self.current_grass_textures) File "/home/wil/code/koparka/sqliteloader.py", line 121, in LoadScene row = dict(cur.fetchone()) TypeError: 'NoneType' object is not iterable :task(error): Exception occurred in PythonTask eventManager Traceback (most recent call last): File "main.py", line 1817, in <module> base.run() File "/usr/share/panda3d/direct/showbase/ShowBase.py", line 2986, in run self.taskMgr.run() File "/usr/share/panda3d/direct/task/Task.py", line 510, in run self.step() File "/usr/share/panda3d/direct/task/Task.py", line 467, in step self.mgr.poll() File "/usr/share/panda3d/direct/showbase/EventManager.py", line 52, in eventLoopTask self.doEvents() File "/usr/share/panda3d/direct/showbase/EventManager.py", line 46, in doEvents processFunc(self.eventQueue.dequeueEvent()) File "/usr/share/panda3d/direct/showbase/EventManager.py", line 103, in processEvent messenger.send(eventName, paramList) File "/usr/share/panda3d/direct/showbase/Messenger.py", line 327, in send self.__dispatch(acceptorDict, event, sentArgs, foundWatch) File "/usr/share/panda3d/direct/showbase/Messenger.py", line 412, in __dispatch method (*(extraArgs + sentArgs)) File "main.py", line 1261, in load self.current_grass_textures) File "/home/wil/code/koparka/sqliteloader.py", line 121, in LoadScene row = dict(cur.fetchone()) TypeError: 'NoneType' object is not iterable

running on Ubuntu 16.04 with Python 2.7.12

@wezu
Copy link
Owner

wezu commented Oct 2, 2016

It looks like there's a missing record in the sqlite database (or it's failing to load find it). I'm looking into it, but so far a was not able to reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants