Community mailing list archives

community@mail.odoo.com

Re: [9.0] Unable to use a closed cursor - on Fresh odoo install form git

by
Andi Becker
- 11/27/2015 02:08:28
Solution:

In Ubuntu 14.04 LTS the pillow package seems to cause the problems

Just drop the corrupted database,
stop the odoo service,
$ pip uninstall PIL
$ pip uninstall Pillow
then remove them from Python Library.
example in Ubuntu 14.04,
$ rm /usr/local/bin/python2.7/dist-packages/PIL
$ rm /usr/local/bin/python2.7/dist-packages/Pillow
(and whatever related egg folders)
reboot

If you get an error like:
Not uninstalling Pillow at /usr/lib/python2.7/dist-packages, owned by OS
try this (but it might break the OS.)
sudo apt-get remove python-pil

Than check if everything is gone from pillow

root@serv / # pip uninstall PIL
Cannot uninstall requirement PIL, not installed
Storing debug log for failure in /root/.pip/pip.log
root@serv / # pip uninstall Pillow
Cannot uninstall requirement Pillow, not installed
Storing debug log for failure in /root/.pip/pip.log
root@serv / # rm /usr/local/bin/python2.7/dist-packages/PI
rm: cannot remove ‘/usr/local/bin/python2.7/dist-packages/PI’: No such file or directory
root@serv / # rm /usr/local/bin/python2.7/dist-packages/Pillow
rm: cannot remove ‘/usr/local/bin/python2.7/dist-packages/Pillow’: No such file or directory
root@serv / # pip install pillow

 Now check if pillow gets installed completely

perhaps you will receive that:

Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-V6lRVM-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/pillow
Storing debug log for failure in /root/.pip/pip.log

It could be that you need more packages to be able to install pillow on Ubuntu 14.04

udo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
Thanks Jason that was it concerning Pillow

Let's see what follows

well when filling odoo 9 with demo data now you get perhaps and the site is throwing errors concerning "less"

Database creation error: column res_users.password_crypt does not exist LINE 1: ...eate_date","res_users"."action_id" as "action_id","res_users... ^

to solve this do the following:

Follow the instructions from the NodeJS Website:

Then install Less and accessories:

  • sudo npm install -g less less-plugin-clean-css


After all this the site should work!