-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01/23/2014 08:37 PM, Thomas Grzybowski wrote: > Hi, > > I am attempting to run through the ZODB + Traversal Wiki Tutorial, but > when I come to Defining Views - Viewing the Application in a Browser, > when I run "../bin/pserve development.ini --reload", I run into the > following error: "cannot import name DBSession". Running > "../bin/pserve production.ini" gives the same error. > > When I run the setup test "../bin/python setup.py test -q", I get the > following: "AttributeError: 'module' object has no attribute 'views' > ". I'm not sure if this error is related to the previous. > > I have reviewed the code changes I made as per the tutorial, but > cannot find any reference to "DBSession." > > Any suggestions on how to proceed debugging would be greatly > appreciated.
Ensure your project is set up as a "development egg" by running: $ ../bin/python setup.py develop That will get any needed dependencies installed, and will set up the links to ensure that your package is importable. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlLh6bIACgkQ+gerLs4ltQ6tiQCgvmbxEwP+mk9oSO6/UalHHIAk WLsAoIjsDnUz810sH5ofnTbIg/HKjr6N =t5wW -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/groups/opt_out.