Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Hello People, I need to install the "lib xlrd" for my OpenErp 7.0 system so I can install de the "bank_statement_module".
I don't now what I am doing rong!
1. I installed the Putty for my windows 7 machine
2. I configured my Synology NAS for a terminal connection including the firewall setting
3. I start-up a connection with Putty between my windows 7 machine and my Synology NAS
4. I downloaded the xlrd module on the Python website
5. I tried to install the module but it doesn't work! :-(
I used different kind of actions like
"sudo apt-get update"
"sudo apt-get upgrade"
"sudo apt-get install xlrd"
But I get all the time a massage like "Not found"
Please good some one help my?
Dear Synology users,
This answer is directly targeting those of you who'd like to use OpenERP on a Synology NAS server.
I've gone through substantial efforts to get to the bottom of certain issues with the combination of OpenERP7.x with a Synology server. In this posting I'd like to give you a heads-up on some of the most "crucial" elements one has to think about when (or before deciding if) starting to customise the standard OpenERP installation:
1. By default only a "limited" set of modules are available on a standard OpenERP installation on a syno Box. If a user want to add more modules this is quite well possible but one needs to have some knowledge of SSH and command line syntax to do this succesfully. More about this later (see Ad 1. section).
2. If Python needs additional modules (like xlrd), this will require adding the python code to OpenERP7.x's "modules" directory (this is located in the following path on a Synlogy box: /volume1/@appstore/OpenERP7.x/openerp/modules. This is completely different from adding a "module" through OpenERP7.x directly and also completely different from adding a library like xlrd to Python.
To add "non-standard" modules first download whatever module you'd like to add to your Mac/PC and,
unzip/untar the downloaded file (for those of you adventurous enough, obviously you can also do the unzipping/untar-ing on the box)
now copy the unzipped folder (whole directory) to your Synology NAS (I'll assume you copy it using your web-interface to /volume1/homes/admin (the main admin directory)
access your Syno box via SSH and enter the following command (adapt the paths to the locations you have used)
cp -R /volume1/homes/admin/name_of_directory_with_OpenERP7_module /volume1/@appstore/OpenERP7.x/openerp/addons
Check if the new module "landed" in the correct spot
ls -la /volume1/@appstore/OpenERP7.x/openerp/addons/name_of_directory_with_OpenERP7_module
The response should be a listing of the contents of the directory you just added. If you get an error (directory does not exist or something, please make sure the paths you entered were correct)
The last thing you need to do is to change the owner of the new files in the module
(by default any file for OpenERP7.x is owned by http and the group http
chown -R http:http /volume1/@appstore/OpenERP7.x/openerp/addons/name_of_directory_with_OpenERP7_module
Now you can reload the modules in OpenERP "Update Modules list" from within OpenERP (in "settings" menu)
Ad 2. To add a library/module like xlrd (which is required for a module like for instance "Swiss bank statements import" for OpenERP7.x, the following steps need to be executed:
Download the library/module https://pypi.python.org/pypi/xlrd and unpack the package on local HD
Copy the contents of the package to the Synology. Copy it to any location of the user's desire (I'll assume /volume1/homes/admin/xlrd-0.9.3, using rsync via SSH or just drag and drop via web interface)
python setup.py install
The above commands will add the module to Python but still not available to OpenERP7.x. It took me a while to realise this so I'm hoping this line will help you go the next steps. So if you're not quite feeling satisfied, read on...
In order for OpenERP7.x to be able to use 'xlrd' copy a file called 'runxlrd.py' into the modules directory (located at: /volume1/@appstore/OpenERP7.x/openerp/modules
cp /volume1/homes/admin/xlrd-0.9.3/scripts/runxlrd.py /volume1/@appstore/OpenERP7.x/openerp/modules
Now xlrd will be accessible to OpenERP7.x but OpenERP may require a reboot (this you can do via the package manager (stop/start) or using a command like this:
su -s /bin/sh -m -c "/volume1/@appstore/OpenERP7.x/bin/openerp-server --config=/volume1/@appstore/OpenERP7.x/openerp-server.conf --addons-path=/volume1/@appstore/OpenERP7.x/openerp/addons/ --logfile=/volume1/@appstore/OpenERP8.x/logs/server.log" http
All done, hope this helps.
Synology linux is a very customized version of linux. The usual linux command language doesn't work. The directory structure is also very special. Adding libraries is possible but difficult and can give conflicts. Starting with synology installed openerp version is easy but it is only nice to play with. I have tried it for more than a year and couldn' t make it functional and stable for my business environment. The community is not familiar enough with this combination. You are on your own. Anyway i didn't succeed in it. And i have put everything on hold waiting for more interest in the community for this.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 8/3/14, 5:27 PM|
|Seen: 5592 times|
|Last updated: 3/28/15, 3:59 PM|