I see this as well. Seems to make the python35 plugin not loadable since
I have it in the plugins line in myservice.ini-file, but python2 is used
according to the log. The import site issue is related to the fact it
tries to use python2.7 in a venv from python3.5. I added it in an
earlier (failed) attempt to use uwsgi (but that attempt did have the
python34 module working, that was on the last LTS release (whichever
version that was))


# apt install --reinstall uwsgi-plugin-python3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 16 not upgraded.
Need to get 0 B/73.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 46609 files and directories currently installed.)
Preparing to unpack .../uwsgi-plugin-python3_2.0.12-5ubuntu3_amd64.deb ...
Unpacking uwsgi-plugin-python3 (2.0.12-5ubuntu3) over (2.0.12-5ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up uwsgi-plugin-python3 (2.0.12-5ubuntu3) ...
/var/lib/dpkg/info/uwsgi-plugin-python3.postinst: 61: [: Illegal number: 


# cat /var/log/uwsgi/app/service.log
Mon Sep  5 22:22:06 2016 - *** Starting uWSGI 2.0.12-debian (64bit) on [Mon Sep 
 5 22:22:05 2016] ***
Mon Sep  5 22:22:06 2016 - compiled with version: 5.3.1 20160412 on 13 April 
2016 08:36:06
Mon Sep  5 22:22:06 2016 - os: Linux-3.13.0-93-generic #140-Ubuntu SMP Mon Jul 
18 21:21:05 UTC 2016
Mon Sep  5 22:22:06 2016 - nodename: thehost
Mon Sep  5 22:22:06 2016 - machine: x86_64
Mon Sep  5 22:22:06 2016 - clock source: unix
Mon Sep  5 22:22:06 2016 - pcre jit disabled
Mon Sep  5 22:22:06 2016 - detected number of CPU cores: 1
Mon Sep  5 22:22:06 2016 - current working directory: /
Mon Sep  5 22:22:06 2016 - writing pidfile to /run/uwsgi/app/myservice/pid
Mon Sep  5 22:22:06 2016 - detected binary path: /usr/bin/uwsgi-core
Mon Sep  5 22:22:06 2016 - setgid() to 33
Mon Sep  5 22:22:06 2016 - setuid() to 33
Mon Sep  5 22:22:06 2016 - chdir() to /home/user/myservice/dist
Mon Sep  5 22:22:06 2016 - your processes number limit is 7474
Mon Sep  5 22:22:06 2016 - your memory page size is 4096 bytes
Mon Sep  5 22:22:06 2016 - detected max file descriptor number: 1024
Mon Sep  5 22:22:06 2016 - building mime-types dictionary from file 
/etc/mime.types...Mon Sep  5 22:22:06 2016 - 552 entry found
Mon Sep  5 22:22:06 2016 - lock engine: pthread robust mutexes
Mon Sep  5 22:22:06 2016 - thunder lock: disabled (you can enable it with 
--thunder-lock)
Mon Sep  5 22:22:06 2016 - uwsgi socket 0 bound to UNIX address 
/run/uwsgi/app/myservice/socket fd 3
Mon Sep  5 22:22:06 2016 - Python version: 2.7.12 (default, Jul  1 2016, 
15:12:24)  [GCC 5.4.0 20160609]
Mon Sep  5 22:22:06 2016 - Set PythonHome to /home/user/myservice/
Mon Sep  5 22:22:06 2016 - Python main interpreter initialized at 0x1e92140
Mon Sep  5 22:22:06 2016 - python threads support enabled
Mon Sep  5 22:22:06 2016 - your server socket listen backlog is limited to 100 
connections
Mon Sep  5 22:22:06 2016 - your mercy for graceful operations on workers is 60 
seconds
Mon Sep  5 22:22:06 2016 - mapped 145536 bytes (142 KB) for 1 cores
Mon Sep  5 22:22:06 2016 - *** Operational MODE: single process ***
['.', '', '/home/user/myservice/lib/python2.7/', 
'/home/user/myservice/lib/python2.7/plat-x86_64-linux-gnu', 
'/home/user/myservice/lib/python2.7/lib-tk', 
'/home/user/myservice/lib/python2.7/lib-old', 
'/home/user/myservice/lib/python2.7/lib-dynload']
Traceback (most recent call last):
  File "./run.py", line 5, in <module>
    import site
ImportError: No module named site
Mon Sep  5 22:22:06 2016 - unable to load app 0 (mountpoint='') (callable not 
found or import error)
Mon Sep  5 22:22:06 2016 - *** no app loaded. going in full dynamic mode ***
Mon Sep  5 22:22:06 2016 - *** uWSGI is running in multiple interpreter mode ***
Mon Sep  5 22:22:06 2016 - spawned uWSGI master process (pid: 9886)
Mon Sep  5 22:22:06 2016 - spawned uWSGI worker 1 (pid: 9890, cores: 1)
Mon Sep  5 22:22:06 2016 - spawned 2 offload threads for uWSGI worker 1


apt-cache policy uwsgi-plugin-python3
uwsgi-plugin-python3:
  Installed: 2.0.12-5ubuntu3
  Candidate: 2.0.12-5ubuntu3
  Version table:
 *** 2.0.12-5ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1616497

Title:
  uwsgi-plugin-python3 failed to install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/uwsgi/+bug/1616497/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to