@Sergi:
I installed trytond by:
- downloading and expanding the source inside the virtual environment
- activating the virtual environment, and then
- python setup.py install 

After reading your post, I stored my config files, deleted the virtual 
environment, and started over.
1 Created the virtual environment /opt/Tryton
2 activated it (when activated, python -V returns python 3.6.2)
3 installed trytond with pip ./bin/pip3 install trytond
4 restored the config files to /opt/Trytond/etc

I can run tryton without uwsgi:
"./bin/trytond -c /opt/Tryton/etc/trytond.conf " from the command line, there 
are no errors. I did not try to access the instance, but it did start.

I still cannot run tryton with uwsgi:
I install uwsgi with pip. uwsgi is in the /opt/python36/bin folder, it was not 
installed in the virtual environment.

"/opt/python36/bin/uwsgi --ini /opt/Tryton/etc/tryton.ini" from the command 
line produces the exact same errors I posted before.

In /opt/Tryton/lib/python3.6/site-packages/trytond there is a file 
application.py

In /opt/Tryton/lib/python3.6/site-packages/trytond/modules there is a file 
__init__.py, and a directory, pycache.

Here is the output, in case I missed something:
/opt/python36/bin/uwsgi --ini /opt/Tryton/etc/tryton.ini
[uWSGI] getting INI configuration from /opt/Tryton/etc/tryton.ini
*** Starting uWSGI 2.0.15 (64bit) on [Sat Oct 28 10:38:11 2017] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-16) on 05 October 2017 
22:04:37
os: Linux-3.10.0-714.10.2.lve1.4.63.el7.x86_64 #1 SMP Sun Aug 20 17:46:23 EDT 
2017
nodename: host.mysite.com
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /opt/Tryton
detected binary path: /opt/python36/bin/uwsgi
setgid() to group
setuid() to user
your processes number limit is 14335
your memory page size is 4096 bytes
detected max file descriptor number: 4096
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address 127.0.0.1:8000 fd 3
Python version: 3.6.2 (default, Aug  5 2017, 01:12:58)  [GCC 4.8.5 20150623 
(Red Hat 4.8.5-11)]
PEP 405 virtualenv detected: /opt/Tryton
Set PythonHome to /opt/Tryton
Python main interpreter initialized at 0xb51930
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 166144 bytes (162 KB) for 2 cores
*** Operational MODE: threaded ***
/opt/Tryton/lib/python3.6/site-packages/trytond/modules/__init__.py:143: 
DeprecationWarning: This method will be removed in future versions.  Use 
'parser.read_file()' instead.
  module_config.readfp(fp)
ModuleNotFoundError: No module named 'trytond.application.app'; 
'trytond.application' is not a package
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 13598)
spawned uWSGI worker 1 (pid: 13600, cores: 2)
^CSIGINT/SIGQUIT received...killing workers...
worker 1 buried after 1 seconds
goodbye to uWSGI.
(Tryton) root@host [/opt/Tryton]#

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/71418d54-9939-486d-bb73-e6b17b07d995%40googlegroups.com.

Reply via email to