Community mailing list archives

community@mail.odoo.com

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

by
Qingdao Oudu Software Co.,Ltd, Cui Jianping / Jason
- 11/27/2015 03:31:00

Very good documentation indeed. And I can confirm the same symptom could be found on CentOS 6.5 and 7.0. Solution is the same except using different commands.

 

From: bounce-4262948-mail.group-59@mail.odoo.com [mailto:bounce-4262948-mail.group-59@mail.odoo.com] On Behalf Of Andreas Becker
Sent: Friday, November 27, 2015 3:13 PM
To: Community <community@mail.odoo.com>
Subject: Re: [9.0] Unable to use a closed cursor - on Fresh odoo install form git

 

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:

·         curl -sL https://deb.nodesource.com/setup_0.10 | sudo bash -

·         sudo apt-get install -y nodejs

·         sudo npm install -g npm  (to update npm)

Then install Less and accessories:

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

 

After all this the site should work!

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe