Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#58753 closed defect (fixed)

speedtest-cli @2.1.1 No module named 'pkg_resources'

Reported by: antranigv (Antranig Vartanian) Owned by: kurthindenburg (Kurt Hindenburg)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc: kurthindenburg (Kurt Hindenburg)
Port: speedtest-cli

Description

A fresh installed speedtest-cli is not working, I'm getting

root# speedtest-cli
Traceback (most recent call last):
  File "/opt/local/bin/speedtest-cli", line 6, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

Change History (5)

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Setuptools needs to be in depends_lib, not just depends_build. To work around the issue you can install py37-setuptools.

comment:2 Changed 5 years ago by kurthindenburg (Kurt Hindenburg)

Owner: set to kurthindenburg
Status: newassigned

You are correct - this must be something new that setuptools has to be in depend_lib. I'll fix shortly.

comment:3 Changed 5 years ago by Kurt Hindenburg <kurt.hindenburg@…>

Resolution: fixed
Status: assignedclosed

In ddf9aaed11baf280e564a08f758d3d9ed1b05e6e/macports-ports (master):

speedtest-cli: move py-setuptools to depends_lib to avoid error

closes #58753

comment:4 in reply to:  2 Changed 5 years ago by jmroot (Joshua Root)

Replying to kurthindenburg:

this must be something new that setuptools has to be in depend_lib.

This particular module may have only recently started using pkg_resources at runtime. There's no general rule; some do and some don't.

comment:5 Changed 5 years ago by mf2k (Frank Schima)

Port: speedtest-cli added; net/speedtest-cli removed
Note: See TracTickets for help on using tickets.