243: running tests says "Error: One or more models did not validate:"

kumar.m*******@gmai***** (Google Code) (Is this you? Claim this profile.)
Oct. 5, 2007
What steps will reproduce the problem?
1. python 2.4.2, using rev 6447 of django's trunk, check out rev 955 of
reviewboard trunk 
2. install PIL 1.1.6, 
3. copy settings template to test_settings.py and add this to the bottom of
the file:

DATABASE_ENGINE = 'sqlite3' 
DATABASE_NAME = ':memory:'

4. export DJANGO_SETTINGS_MODULE=reviewboard.test_settings
5. cd into reviewboard dir and run `nosetests -v`
6. all tests say that they pass except there is this warning at the bottom
(after "Testing parse on a unified diff ... ok") :

Error: One or more models did not validate:
reviews.screenshot: "image": To use ImageFields, you need to install the
Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ .

_

however, PIL is installed and it seems to be working due to all other
passing tests.

Oh well, I'll see if the app itself works, just thought I'd mention it.
#1 kumar.m*******@gmai***** (Google Code) (Is this you? Claim this profile.)
oh, apparently PIL wasn't installed correctly.  Either setuptools or PIL itself
somehow installed into PIL-blah-blah.egg/__init__.py instead of
PIL-blah-blah.egg/PIL/__init__.py.  I symlinked it to try the tests again.  

Now way more tests are running :)

and 8 are failing, but it's because I forgot to install pysvn.  uggh.  This machine
has its ports all out of date and I'm having trouble compiling pysvn.  I'll have to
try later on a different machine.  Sorry for the noise, I'd suggest closing this issue.
chipx86
#2 chipx86
Glad we could help! ;)
  • +NotABug