Sorry, haven't had a lot of time for the community forum lately. It's been
busy here.

You *should* be able to remove the setuptools package with something like:

    apt remove python-setuptools

And then installing using pip:

    pip install setuptools

If that fails due to a lack of setuptools, you can try the get-pip.py
bootstrapping instructions here: https://pip.pypa.io/en/stable/installing/

Now, there's a chance some packages may depend on that, and if so, you'll
probably just have to keep the package definition around and instead find
out where the package's files live on the filesystem and remove them. This
is not normally a good idea, granted, but given that the system package is
problematic on Ubuntu, there aren't necessarily a ton of good options.

Christian

On Wed, May 13, 2020 at 7:58 AM mohd shahid Khan <mohd.shahid.k...@gmail.com>
wrote:

> Hi, can someone please look into this and help here? Thanks!
>
> On Friday, 8 May 2020 18:47:29 UTC+5:30, mohd shahid Khan wrote:
>>
>> one more thing - it will be great if you can help and point out about the
>> location/command of removing ubuntu installed dist package.
>>
>> Thanks,
>>
>> On Fri, May 8, 2020 at 4:49 PM mohd shahid Khan <
>> mohd.shahid.k...@gmail.com> wrote:
>>
>>> so you are suggesting to remove Ubuntu's installed *setuptools* before
>>> proceeding?
>>>
>>> On Fri, May 8, 2020 at 2:34 PM Christian Hammond <
>>> christ...@beanbaginc.com> wrote:
>>>
>>>> You don’t need (or really want) to reinstall Python. The important
>>>> thing is that you cannot have a distro-provided package for setuptools.
>>>> You’ll need the version installed from pip only. It’s Ubuntu’s install of
>>>> it that’s causing conflicts and breakages.
>>>>
>>>> Christian
>>>>
>>>>
>>>> On Thu, May 7, 2020 at 00:58 mohd shahid Khan <
>>>> mohd.shahid.k...@gmail.com> wrote:
>>>>
>>>>> Thank you for your email Christian.
>>>>>
>>>>> I tried re-installed every component of python2.7 and ran into same
>>>>> issue. Here are the steps I followed -
>>>>> 1. Uninstalled python 2.7 along with setuptools and everything
>>>>> 2. Installed python2.7, setuptools, build-essentials etc. again
>>>>> 3. ran into an error it requires "oauthlib>=0.6.2" so I upgraded
>>>>> oauthlib
>>>>> 4. ran another error about cryptography requirement cryptography>=2.5
>>>>> so upgraded cryptography and then Ran into original issue -
>>>>>
>>>>> Here are logs -
>>>>>
>>>>> [Thu May 07 13:16:11.227361 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959] mod_wsgi (pid=3524):
>>>>> Target WSGI script '/var/www/reviews2/htdocs/reviewboard.wsgi' cannot be
>>>>> loaded as Python module., referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.227408 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959] mod_wsgi (pid=3524):
>>>>> Exception occurred processing WSGI script
>>>>> '/var/www/reviews2/htdocs/reviewboard.wsgi'., referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.227431 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959] Traceback (most recent
>>>>> call last):, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.227448 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]   File
>>>>> "/var/www/reviews2/htdocs/reviewboard.wsgi", line 3, in <module>, referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.227491 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]     import pkg_resources,
>>>>> referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.227500 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3088, 
>>>>> in
>>>>> <module>, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.227955 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]     @_call_aside,
>>>>> referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.227967 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3072, 
>>>>> in
>>>>> _call_aside, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.227981 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]     f(*args, **kwargs),
>>>>> referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.227987 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3101, 
>>>>> in
>>>>> _initialize_master_working_set, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.227995 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]     working_set =
>>>>> WorkingSet._build_master(), referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.228001 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 574, in
>>>>> _build_master, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.228009 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]     ws.require(__requires__),
>>>>> referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.228014 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 892, in
>>>>> require, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.228022 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]     needed =
>>>>> self.resolve(parse_requirements(requirements)), referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.228027 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 778, in
>>>>> resolve, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.228035 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959]     raise
>>>>> DistributionNotFound(req, requirers), referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:16:11.228101 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556655372032] [client 192.168.1.5:60959] DistributionNotFound: The
>>>>> 'oauthlib>=0.6.2' distribution was not found and is required by
>>>>> requests-oauthlib, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:17:11.619493 2020] [wsgi:error] [pid 3525:tid
>>>>> 140556638586624] [client 192.168.1.5:60979] mod_wsgi (pid=3525):
>>>>> Target WSGI script '/var/www/reviews2/htdocs/reviewboard.wsgi' cannot be
>>>>> loaded as Python module., referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:17:11.619530 2020] [wsgi:error] [pid 3525:tid
>>>>> 140556638586624] [client 192.168.1.5:60979] mod_wsgi (pid=3525):
>>>>> Exception occurred processing WSGI script
>>>>> '/var/www/reviews2/htdocs/reviewboard.wsgi'., referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:17:11.619545 2020] [wsgi:error] [pid 3525:tid
>>>>> 140556638586624] [client 192.168.1.5:60979] Traceback (most recent
>>>>> call last):, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:17:11.619571 2020] [wsgi:error] [pid 3525:tid
>>>>> 140556638586624] [client 192.168.1.5:60979]   File
>>>>> "/var/www/reviews2/htdocs/reviewboard.wsgi", line 3, in <module>, referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:17:11.619599 2020] [wsgi:error] [pid 3525:tid
>>>>> 140556638586624] [client 192.168.1.5:60979]     import pkg_resources,
>>>>> referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:17:11.619607 2020] [wsgi:error] [pid 3525:tid
>>>>> 140556638586624] [client 192.168.1.5:60979]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 72, in
>>>>> <module>, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:17:11.619620 2020] [wsgi:error] [pid 3525:tid
>>>>> 140556638586624] [client 192.168.1.5:60979]     from . import
>>>>> py31compat, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:17:11.619636 2020] [wsgi:error] [pid 3525:tid
>>>>> 140556638586624] [client 192.168.1.5:60979] ImportError: cannot
>>>>> import name py31compat, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:18:11.843873 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556638586624] [client 192.168.1.5:60983] mod_wsgi (pid=3524):
>>>>> Target WSGI script '/var/www/reviews2/htdocs/reviewboard.wsgi' cannot be
>>>>> loaded as Python module., referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:18:11.843911 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556638586624] [client 192.168.1.5:60983] mod_wsgi (pid=3524):
>>>>> Exception occurred processing WSGI script
>>>>> '/var/www/reviews2/htdocs/reviewboard.wsgi'., referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:18:11.843928 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556638586624] [client 192.168.1.5:60983] Traceback (most recent
>>>>> call last):, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:18:11.843945 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556638586624] [client 192.168.1.5:60983]   File
>>>>> "/var/www/reviews2/htdocs/reviewboard.wsgi", line 3, in <module>, referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:18:11.843974 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556638586624] [client 192.168.1.5:60983]     import pkg_resources,
>>>>> referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:18:11.843982 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556638586624] [client 192.168.1.5:60983]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 72, in
>>>>> <module>, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:18:11.843994 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556638586624] [client 192.168.1.5:60983]     from . import
>>>>> py31compat, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:18:11.844010 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556638586624] [client 192.168.1.5:60983] ImportError: cannot
>>>>> import name py31compat, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:13.123644 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556554462976] [client 192.168.1.5:60995] mod_wsgi (pid=3524):
>>>>> Target WSGI script '/var/www/reviews2/htdocs/reviewboard.wsgi' cannot be
>>>>> loaded as Python module., referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:13.123681 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556554462976] [client 192.168.1.5:60995] mod_wsgi (pid=3524):
>>>>> Exception occurred processing WSGI script
>>>>> '/var/www/reviews2/htdocs/reviewboard.wsgi'., referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:13.123697 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556554462976] [client 192.168.1.5:60995] Traceback (most recent
>>>>> call last):, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:13.123714 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556554462976] [client 192.168.1.5:60995]   File
>>>>> "/var/www/reviews2/htdocs/reviewboard.wsgi", line 3, in <module>, referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:13.123758 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556554462976] [client 192.168.1.5:60995]     import pkg_resources,
>>>>> referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:13.123775 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556554462976] [client 192.168.1.5:60995]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 72, in
>>>>> <module>, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:13.123802 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556554462976] [client 192.168.1.5:60995]     from . import
>>>>> py31compat, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:13.123834 2020] [wsgi:error] [pid 3524:tid
>>>>> 140556554462976] [client 192.168.1.5:60995] ImportError: cannot
>>>>> import name py31compat, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:26.386236 2020] [mpm_event:notice] [pid 3523:tid
>>>>> 140556775496640] AH00491: caught SIGTERM, shutting down
>>>>>
>>>>> [Thu May 07 13:19:30.820917 2020] [mpm_event:notice] [pid 3707:tid
>>>>> 140599157955520] AH00489: Apache/2.4.29 (Ubuntu) mod_wsgi/4.5.17 
>>>>> Python/2.7
>>>>> configured -- resuming normal operations
>>>>>
>>>>> [Thu May 07 13:19:30.821153 2020] [core:notice] [pid 3707:tid
>>>>> 140599157955520] AH00094: Command line: '/usr/sbin/apache2'
>>>>>
>>>>> [Thu May 07 13:19:36.529399 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997] mod_wsgi (pid=3709):
>>>>> Target WSGI script '/var/www/reviews2/htdocs/reviewboard.wsgi' cannot be
>>>>> loaded as Python module., referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.529985 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997] mod_wsgi (pid=3709):
>>>>> Exception occurred processing WSGI script
>>>>> '/var/www/reviews2/htdocs/reviewboard.wsgi'., referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.530072 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997] Traceback (most recent
>>>>> call last):, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.530119 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]   File
>>>>> "/var/www/reviews2/htdocs/reviewboard.wsgi", line 3, in <module>, referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.530256 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]     import pkg_resources,
>>>>> referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.530268 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3088, 
>>>>> in
>>>>> <module>, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.531179 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]     @_call_aside,
>>>>> referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.531239 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3072, 
>>>>> in
>>>>> _call_aside, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.531268 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]     f(*args, **kwargs),
>>>>> referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.531281 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3101, 
>>>>> in
>>>>> _initialize_master_working_set, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.531291 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]     working_set =
>>>>> WorkingSet._build_master(), referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.531297 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 576, in
>>>>> _build_master, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.531306 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]     return
>>>>> cls._build_from_requirements(__requires__), referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.531311 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 589, in
>>>>> _build_from_requirements, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.531319 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]     dists =
>>>>> ws.resolve(reqs, Environment()), referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.531324 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 783, in
>>>>> resolve, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.531436 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]     raise
>>>>> VersionConflict(dist, req).with_context(dependent_req), referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:19:36.531504 2020] [wsgi:error] [pid 3709:tid
>>>>> 140598942086912] [client 192.168.1.5:60997]
>>>>> ContextualVersionConflict: (cryptography 2.1.4
>>>>> (/usr/lib/python2.7/dist-packages), 
>>>>> Requirement.parse('cryptography>=2.5'),
>>>>> set(['paramiko'])), referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338169 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000] mod_wsgi (pid=3708):
>>>>> Target WSGI script '/var/www/reviews2/htdocs/reviewboard.wsgi' cannot be
>>>>> loaded as Python module., referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338207 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000] mod_wsgi (pid=3708):
>>>>> Exception occurred processing WSGI script
>>>>> '/var/www/reviews2/htdocs/reviewboard.wsgi'., referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338280 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000] Traceback (most recent
>>>>> call last):, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338301 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]   File
>>>>> "/var/www/reviews2/htdocs/reviewboard.wsgi", line 3, in <module>, referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338349 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]     import pkg_resources,
>>>>> referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338357 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3088, 
>>>>> in
>>>>> <module>, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338897 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]     @_call_aside,
>>>>> referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338912 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3072, 
>>>>> in
>>>>> _call_aside, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338927 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]     f(*args, **kwargs),
>>>>> referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338933 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3101, 
>>>>> in
>>>>> _initialize_master_working_set, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338942 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]     working_set =
>>>>> WorkingSet._build_master(), referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338948 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 576, in
>>>>> _build_master, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338956 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]     return
>>>>> cls._build_from_requirements(__requires__), referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338961 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 589, in
>>>>> _build_from_requirements, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338969 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]     dists =
>>>>> ws.resolve(reqs, Environment()), referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338974 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 783, in
>>>>> resolve, referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.338982 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]     raise
>>>>> VersionConflict(dist, req).with_context(dependent_req), referer:
>>>>> http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:37.339035 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598858159872] [client 192.168.1.5:61000]
>>>>> ContextualVersionConflict: (cryptography 2.1.4
>>>>> (/usr/lib/python2.7/dist-packages), 
>>>>> Requirement.parse('cryptography>=2.5'),
>>>>> set(['paramiko'])), referer: http://192.168.1.9/
>>>>>
>>>>> [Thu May 07 13:20:39.859476 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598832981760] [client 192.168.1.5:61001] mod_wsgi (pid=3708):
>>>>> Target WSGI script '/var/www/reviews2/htdocs/reviewboard.wsgi' cannot be
>>>>> loaded as Python module.
>>>>>
>>>>> [Thu May 07 13:20:39.859518 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598832981760] [client 192.168.1.5:61001] mod_wsgi (pid=3708):
>>>>> Exception occurred processing WSGI script
>>>>> '/var/www/reviews2/htdocs/reviewboard.wsgi'.
>>>>>
>>>>> [Thu May 07 13:20:39.859535 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598832981760] [client 192.168.1.5:61001] Traceback (most recent
>>>>> call last):
>>>>>
>>>>> [Thu May 07 13:20:39.859551 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598832981760] [client 192.168.1.5:61001]   File
>>>>> "/var/www/reviews2/htdocs/reviewboard.wsgi", line 3, in <module>
>>>>>
>>>>> [Thu May 07 13:20:39.859578 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598832981760] [client 192.168.1.5:61001]     import pkg_resources
>>>>>
>>>>> [Thu May 07 13:20:39.859585 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598832981760] [client 192.168.1.5:61001]   File
>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 72, in
>>>>> <module>
>>>>>
>>>>> [Thu May 07 13:20:39.859597 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598832981760] [client 192.168.1.5:61001]     from . import
>>>>> py31compat
>>>>> [Thu May 07 13:20:39.859612 2020] [wsgi:error] [pid 3708:tid
>>>>> 140598832981760] [client 192.168.1.5:61001] ImportError: cannot
>>>>> import name py31compat
>>>>>
>>>>> It now become very frustrating to me. Can you please help me with
>>>>> steps to resolve it.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> On Thu, May 7, 2020 at 4:50 AM Christian Hammond <
>>>>> christ...@beanbaginc.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> This is an annoying problem present on some Linux distributions with
>>>>>> the way that the setuptools package is installed. It’s an issue that 
>>>>>> would
>>>>>> affect t more than just Review Board (we’ve seen other projects impacted 
>>>>>> by
>>>>>> this).
>>>>>>
>>>>>> Basically, it’s running a legacy, incomplete package that ends up
>>>>>> conflicting with newer installs, and this particular module ends up 
>>>>>> getting
>>>>>> looked up in the wrong place.
>>>>>>
>>>>>> Fixing it requires uninstalling the distro’s setuptools package and
>>>>>> installing manually from pip.
>>>>>>
>>>>>> Christian
>>>>>>
>>>>>>
>>>>>> On Wed, May 6, 2020 at 00:18 mohd shahid Khan <
>>>>>> mohd.shahid.k...@gmail.com> wrote:
>>>>>>
>>>>>>> Also, I can see that "py31compat.py" &  "py31compat.pyc" are
>>>>>>> present at  /usr/lib/python2.7/dist-packages/pkg_resources/
>>>>>>>
>>>>>>>
>>>>>>> On Wednesday, 6 May 2020 12:44:19 UTC+5:30, mohd shahid Khan wrote:
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I tried to install reviewboard on Ubuntu 20.4 LTS and 18.4 LTS and
>>>>>>>> on both I am getting same error -
>>>>>>>>
>>>>>>>> Wed May 06 03:21:50.440499 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678837630720] [client 192.168.1.5:53244] mod_wsgi (pid=648):
>>>>>>>> Target WSGI script '/var/www/csr2review/htdocs/reviewboard.wsgi' 
>>>>>>>> cannot be
>>>>>>>> loaded as Python module., referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:21:50.440531 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678837630720] [client 192.168.1.5:53244] mod_wsgi (pid=648):
>>>>>>>> Exception occurred processing WSGI script
>>>>>>>> '/var/www/csr2review/htdocs/reviewboard.wsgi'., referer:
>>>>>>>> http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:21:50.440546 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678837630720] [client 192.168.1.5:53244] Traceback (most recent
>>>>>>>> call last):, referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:21:50.440562 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678837630720] [client 192.168.1.5:53244]   File
>>>>>>>> "/var/www/csr2review/htdocs/reviewboard.wsgi", line 3, in <module>,
>>>>>>>> referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:21:50.440584 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678837630720] [client 192.168.1.5:53244]     import
>>>>>>>> pkg_resources, referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:21:50.440601 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678837630720] [client 192.168.1.5:53244]   File
>>>>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 72, 
>>>>>>>> in
>>>>>>>> <module>, referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:21:50.440613 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678837630720] [client 192.168.1.5:53244]     from . import
>>>>>>>> py31compat, referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:21:50.440627 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678837630720] [client 192.168.1.5:53244] ImportError: cannot
>>>>>>>> import name py31compat, referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:22:51.430128 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678820845312] [client 192.168.1.5:53246] mod_wsgi (pid=648):
>>>>>>>> Target WSGI script '/var/www/csr2review/htdocs/reviewboard.wsgi' 
>>>>>>>> cannot be
>>>>>>>> loaded as Python module., referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:22:51.430161 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678820845312] [client 192.168.1.5:53246] mod_wsgi (pid=648):
>>>>>>>> Exception occurred processing WSGI script
>>>>>>>> '/var/www/csr2review/htdocs/reviewboard.wsgi'., referer:
>>>>>>>> http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:22:51.430177 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678820845312] [client 192.168.1.5:53246] Traceback (most recent
>>>>>>>> call last):, referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:22:51.430194 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678820845312] [client 192.168.1.5:53246]   File
>>>>>>>> "/var/www/csr2review/htdocs/reviewboard.wsgi", line 3, in <module>,
>>>>>>>> referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:22:51.430220 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678820845312] [client 192.168.1.5:53246]     import
>>>>>>>> pkg_resources, referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:22:51.430228 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678820845312] [client 192.168.1.5:53246]   File
>>>>>>>> "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 72, 
>>>>>>>> in
>>>>>>>> <module>, referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:22:51.430241 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678820845312] [client 192.168.1.5:53246]     from . import
>>>>>>>> py31compat, referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>> [Wed May 06 03:22:51.430255 2020] [wsgi:error] [pid 648:tid
>>>>>>>> 139678820845312] [client 192.168.1.5:53246] ImportError: cannot
>>>>>>>> import name py31compat, referer: http://192.168.1.9/
>>>>>>>>
>>>>>>>>
>>>>>>>> I have followed steps mentioned in below pages -
>>>>>>>>
>>>>>>>>
>>>>>>>> https://www.reviewboard.org/docs/manual/3.0/admin/installation/creating-sites/
>>>>>>>>
>>>>>>>>
>>>>>>>> https://www.reviewboard.org/get/instructions/?org-type=business&product=rb&os=linux-deb&support-level=free
>>>>>>>>
>>>>>>>>
>>>>>>>> https://www.reviewboard.org/docs/manual/dev/admin/installation/linux/
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> on 18.4 I have also got cryptography version requirement errors
>>>>>>>> which I resolved and ended on above error.
>>>>>>>>
>>>>>>>>
>>>>>>>> Kindly help.
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> -Shahid
>>>>>>>>
>>>>>>> --
>>>>>>> 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+unsubscr...@googlegroups.com.
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/reviewboard/e28f5c47-908f-4f9a-8d43-4e8d6851b8a4%40googlegroups.com
>>>>>>> <https://groups.google.com/d/msgid/reviewboard/e28f5c47-908f-4f9a-8d43-4e8d6851b8a4%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> --
>>>>>> --
>>>>>> Christian Hammond
>>>>>> President/CEO of Beanbag
>>>>>> Makers of Review Board
>>>>>>
>>>>>> --
>>>>>> 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+unsubscr...@googlegroups.com.
>>>>>>
>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/reviewboard/CAE7Vnd%3DpYoHtK3Qn3NfO83T-eTWWfbKOzzsAdUfpieiFjqJnVQ%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/reviewboard/CAE7Vnd%3DpYoHtK3Qn3NfO83T-eTWWfbKOzzsAdUfpieiFjqJnVQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Mohammad Shahid,
>>>>> +91-9873527774
>>>>>
>>>>> --
>>>>> 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+unsubscr...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/reviewboard/CAExNZRop3e8GeQr08fHBFnQOR%2B-T%3DcmtWgw4sj7%3DHXrB11bmww%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/reviewboard/CAExNZRop3e8GeQr08fHBFnQOR%2B-T%3DcmtWgw4sj7%3DHXrB11bmww%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> --
>>>> Christian Hammond
>>>> President/CEO of Beanbag
>>>> Makers of Review Board
>>>>
>>>> --
>>>> 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+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/reviewboard/CAE7VndkbxOonNNnfpcuYsLe20027B49xqn_M8egEZ1AmL7X2%3DA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/reviewboard/CAE7VndkbxOonNNnfpcuYsLe20027B49xqn_M8egEZ1AmL7X2%3DA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> Mohammad Shahid,
>>> +91-9873527774
>>>
>>
>>
>> --
>> Mohammad Shahid,
>> +91-9873527774
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/cd137e70-ef75-4477-8713-ba739816facd%40googlegroups.com
> <https://groups.google.com/d/msgid/reviewboard/cd137e70-ef75-4477-8713-ba739816facd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Christian Hammond
President/CEO of Beanbag <https://www.beanbaginc.com/>
Makers of Review Board <https://www.reviewboard.org/>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAE7VndnXW5Ydb7OKe3MdSQ2-CJ-a1Z%3DXGkSpc9xFwGXxM1%2BcGA%40mail.gmail.com.

Reply via email to