Shawn,
Thank you so much for offering to help! I'm new to OpenERP, python, buildout and other things involving programming. In other words, I'm not a developer but I need to use web_socketio for a project I'm working on, integrating OpenERP with FreeSWITCH.
I used the buildout.cfg on main web_socketio page as a template to install OpenERP 7 and the base_phone_popup module is already installed. When I run the following command (based on the instructions on the main page), everything seems to work well:
bin/start_openerp -d openerp -i web_socketio --addons-path=/usr/local/src/oe7-python27-project/openerp-addons,/usr/local/src/oe7-python27-project/openerp-web/addons,/usr/local/src/oe7-python27-project/web_action_request,/usr/local/src/oe7-python27-project/web_socketio,/usr/local/src/oe7-python27-project/web_notification
I get the following output:
2015-02-10 15:32:29,937 31948 INFO ? openerp: OpenERP version 7.0
2015-02-10 15:32:29,938 31948 INFO ? openerp: addons paths: /usr/local/src/oe7-python27-project/openerp-addons,/usr/local/src/oe7-python27-project/openerp-web/addons,/usr/local/src/oe7-python27-project/web_action_request,/usr/local/src/oe7-python27-project/web_socketio,/usr/local/src/oe7-python27-project/web_notification
2015-02-10 15:32:29,938 31948 INFO ? openerp: database hostname: localhost
2015-02-10 15:32:29,938 31948 INFO ? openerp: database port: 5432
2015-02-10 15:32:29,939 31948 INFO ? openerp: database user: openerp
2015-02-10 15:32:42,760 31948 INFO ? openerp.addons.google_docs.google_docs: GData lib version `%s GData-Python/2.0.16` detected
2015-02-10 15:32:48,241 31948 INFO ? openerp.addons.web_socketio.web_socketio: Add namespace '/longpolling'
2015-02-10 15:32:48,249 31948 INFO ? openerp.addons.web_longpolling.namespace: Add long polling event: 'get request' / 'get_request'
2015-02-10 15:32:48,396 31948 INFO ? openerp.service.wsgi_server: HTTP service (werkzeug) running on 0.0.0.0:8069
2015-02-10 15:32:48,673 31948 INFO openerp openerp.modules.loading: loading 1 modules...
2015-02-10 15:32:49,305 31948 INFO openerp openerp.modules.loading: loading 85 modules...
2015-02-10 15:32:50,164 31948 INFO openerp openerp.modules.module: module web_socketio: creating or updating database tables
2015-02-10 15:32:50,197 31948 WARNING openerp openerp.addons.base.module.module: module web_socketio: description is empty !
2015-02-10 15:32:50,204 31948 INFO openerp openerp.modules.loading: module web_socketio: loading security/ir.model.access.csv
2015-02-10 15:32:50,569 31948 INFO openerp openerp.modules.module: module web_longpolling: creating or updating database tables
2015-02-10 15:32:50,597 31948 WARNING openerp openerp.addons.base.module.module: module web_longpolling: description is empty !
2015-02-10 15:32:50,773 31948 INFO openerp openerp.modules.module: module web_action_request: creating or updating database tables
2015-02-10 15:32:51,146 31948 INFO openerp openerp.modules.loading: module web_action_request: loading setting.xml
2015-02-10 15:32:51,916 31948 INFO openerp openerp.modules.module: module base_phone_popup: creating or updating database tables
2015-02-10 15:32:52,499 31948 INFO openerp openerp.modules.loading: module base_phone_popup: loading res_users_view.xml
2015-02-10 15:32:59,155 31948 INFO openerp openerp.modules.loading: loading 85 modules...
2015-02-10 15:32:59,179 31948 INFO openerp openerp.modules.loading: loading 85 modules...
2015-02-10 15:32:59,216 31948 INFO openerp openerp.modules.loading: loading 85 modules...
2015-02-10 15:32:59,254 31948 INFO openerp openerp.modules.loading: loading 85 modules...
2015-02-10 15:33:01,263 31948 INFO openerp openerp.modules.loading: Modules loaded.
2015-02-10 15:33:01,290 31948 INFO openerp openerp: OpenERP server is running, waiting for connections...
However, when I run the following command (this is where I experience difficulty):
./bin/oe_web_socketio -d openerp
I get the following error:
Traceback (most recent call last):
File "./bin/oe_web_socketio", line 55, in <module>
import oe.web.socketio
File "/usr/local/src/oe7-python27-project/oe.web.socketio/oe/web/socketio.py", line 3, in <module>
from openerp.addons.web_socketio.web_socketio import server
File "/usr/local/src/oe7-python27-project/parts/openerp-server/openerp/modules/module.py", line 132, in load_module
f, path, descr = imp.find_module(module_part, ad_paths)
ImportError: No module named web_socketio
Are you able to tell me why it can't find the web_socketio? This seems like something really simple and I just don't have the knowledge to understand how to fix it. It's taken me weeks to get to this point so I'd REALLY appreciate any help you can give. :-)
--- Additional info in response to Shawn ---
Unfortunately, that command I'm running (./bin/oe_web_socketio -d openerp) doesn't allow for the --addons-path option to be added. It only accepts the '-d' option. I'm using the instructions found on this page -- https://bitbucket.org/anybox/web_socketio -- and that command comes as a specific result of using the Anybox OpenERP buildout recipe.
Shawn, you definitely helped me learn a lot because thanks to your input, I actually found out how to get the program running by modifying several files. However, I ended up undoing the successful tests I had run with the first command (bin/start_openerp -d openerp).
--- Update ---
I recently got help from the developer of the oe_web_socketio application and he informed me that there was a bug in the program. He also gave me an example buildout.cfg file that I used to build and run everything successfully!
I'm very grateful to you, Shawn, and the developer, Jean Sebastien Suzanne, for reaching out to me so quickly and helping me get a better understanding of all of these extremely powerful and useful tools. Thank you so much.
--- Another Update ---
In case anyone is looking, the answer to my question (and help with the original question) can be found here:
https://bitbucket.org/anybox/web_socketio/issue/9/import-error-for-web_socketio-when-running
Thank you again, Shawn, for another good idea. I'm not the person who made the original post so I can't mark my post as the answer.
Alex
--
I live to serve