Tutorial: ImportError: No module named geddit.model

74 views
Skip to first unread message

Angelus_ira

unread,
Aug 12, 2011, 2:57:16 PM8/12/11
to Genshi
I am the one who use the track instead of the mail group. Sorry for
that.

I follow the steps on the tutorial (geddit app) on windows. When i
reach the step after adding the data to the database, i try to start
the cherrypy server and always get:

c:\programacion\pypytests\geditsvn>python geddit/controller.py
geddit.db
Traceback (most recent call last):
File "geddit/controller.py", line 8, in <module>
from geddit.model import Link, Comment
ImportError: No module named geddit.model

If i use the svn of the tutorial i get this:
c:\programacion\pypytests\geditsvn>python geddit/controller.py
geddit.db
Traceback (most recent call last):
File "geddit/controller.py", line 10, in <module>
from geddit.form import LinkForm, CommentForm
ImportError: No module named geddit.form

I also have tested the tutorial from the svn, and i get the same
mistake. I am learning python so it could be my mistake, but the
tutorial files should work from the start.
I did not create the file geddit/form.py on my test because i am on
the The Data Model section and after this:

---
You should now have two links in the pickle file, with the first link
having two comments. Start the CherryPy server again by running
--

Today i will make the same test on linux, but the OS should not be the
problem.
OS: Windows 7 64bits Python: 2.7.2 Cherrypy: 3.2 Genshi: 0.6
FormEncode:1.2.4


Simon Cross

unread,
Aug 13, 2011, 5:30:03 AM8/13/11
to gen...@googlegroups.com
On Fri, Aug 12, 2011 at 8:57 PM, Angelus_ira <admojos...@gmail.com> wrote:
> I follow the steps on the tutorial (geddit app) on windows. When i
> reach the step after adding the data to the database, i try to start
> the cherrypy server and always get:

Angelus_ira replied on IRC that they had sorted the issues out.

Schiavo
Simon

Reply all
Reply to author
Forward
0 new messages