Bug 2183970

Summary: python-websockify using wrong python version
Product: [Fedora] Fedora EPEL Reporter: sysadmin
Component: python-websockifyAssignee: Jonathan Wright <jonathan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: epel7CC: epel-packagers-sig, jonathan, lhh, ndipanov, sross
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: python-websockify-0.6.0-5.el7 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-12 01:55:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description sysadmin 2023-04-03 09:54:05 UTC
Description of problem:

Running websockify fails, as it seems to be using python3 rather than python2. Changing the file to use /usr/bin/python instead, fixes the problem. Without this fix, the command fails.


Version-Release number of selected component (if applicable):

python-websockify-0.6.0-4.el7.noarch

How reproducible:

Every time

Steps to Reproduce:
1. /bin/websockify
2. observe error


Actual results:

# /usr/bin/websockify
Traceback (most recent call last):
  File "/usr/bin/websockify", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3095, in <module>
    @_call_aside
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3079, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3108, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 570, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 888, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 774, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'websockify==0.6.0' distribution was not found and is required by the application


Expected results:

No error

Additional info:

Comment 1 Fedora Update System 2023-04-03 20:39:20 UTC
FEDORA-EPEL-2023-bc83c15563 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-bc83c15563

Comment 2 Fedora Update System 2023-04-04 02:34:02 UTC
FEDORA-EPEL-2023-bc83c15563 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2023-bc83c15563

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2023-04-12 01:55:31 UTC
FEDORA-EPEL-2023-bc83c15563 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.