Bug 2183970 - python-websockify using wrong python version
Summary: python-websockify using wrong python version
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python-websockify
Version: epel7
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jonathan Wright
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-03 09:54 UTC by sysadmin
Modified: 2023-04-12 01:55 UTC (History)
5 users (show)

Fixed In Version: python-websockify-0.6.0-5.el7
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-04-12 01:55:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.