cannot import name py31compat

155 views
Skip to first unread message

Ilya Vasilev

unread,
Dec 13, 2021, 8:58:20 AM12/13/21
to Review Board Community
Hi, I try to run review board on ubuntu machine. But I have just annoying page "Shhh... Review Board is taking a nap."
In logs has the error:
[Mon Dec 13 09:52:10.915021 2021] [wsgi:error] [pid 2522:tid 140117167552256] [client 172.16.127.65:58535] mod_wsgi (pid=2522): Failed to exec Python script file '/var/www/rb-invitro/htdocs/reviewboard.wsgi'., referer: http://10.10.10.30/
[Mon Dec 13 09:52:10.915080 2021] [wsgi:error] [pid 2522:tid 140117167552256] [client 172.16.127.65:58535] mod_wsgi (pid=2522): Exception occurred processing WSGI script '/var/www/rb-invitro/htdocs/reviewboard.wsgi'., referer: http://10.10.10.30/
[Mon Dec 13 09:52:10.915099 2021] [wsgi:error] [pid 2522:tid 140117167552256] [client 172.16.127.65:58535] Traceback (most recent call last):, referer: http://10.10.10.30/
[Mon Dec 13 09:52:10.915122 2021] [wsgi:error] [pid 2522:tid 140117167552256] [client 172.16.127.65:58535]   File "/var/www/rb-invitro/htdocs/reviewboard.wsgi", line 3, in <module>, referer: http://10.10.10.30/
[Mon Dec 13 09:52:10.915152 2021] [wsgi:error] [pid 2522:tid 140117167552256] [client 172.16.127.65:58535]     import pkg_resources, referer: http://10.10.10.30/
[Mon Dec 13 09:52:10.915167 2021] [wsgi:error] [pid 2522:tid 140117167552256] [client 172.16.127.65:58535]   File "/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 79, in <module>, referer: http://10.10.10.30/
[Mon Dec 13 09:52:10.915184 2021] [wsgi:error] [pid 2522:tid 140117167552256] [client 172.16.127.65:58535]     from . import py31compat, referer: http://10.10.10.30/
[Mon Dec 13 09:52:10.915205 2021] [wsgi:error] [pid 2522:tid 140117167552256] [client 172.16.127.65:58535] ImportError: cannot import name py31compat, referer: http://10.10.10.30/

I tried to reinstall setuptools, but it'snt working. What can be problem?

Christian Hammond

unread,
Dec 20, 2021, 8:12:50 PM12/20/21
to revie...@googlegroups.com
Hi Ilya,

I thought I had responded to this, but it may have been to someone else.

Did you ever get this working?

I noticed that the python2.7/dist-packages/ is being served out of "/lib" and not "/usr/lib", which is peculiar. How was this system installed, and what distribution is it?

Christian


--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/690cda5c-2e98-46a4-b814-bfa86095ab75n%40googlegroups.com.


--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board
Reply all
Reply to author
Forward
0 new messages