Opened 8 months ago

Closed 8 months ago

Last modified 8 months ago

#68140 closed defect (fixed)

py-cachecontrol @ v0.12.11: Trying to use deprecated package "filelock"

Reported by: eric-j-ason Owned by: dgilman (David Gilman)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-cachecontrol

Description (last modified by eric-j-ason)

The present version of this package (v0.12.11) crashes when attempting to import the the deprecated package "filelock", with the following message:

            NOTE: In order to use the FileCache you must have
            lockfile installed. You can install it via pip:
              pip install lockfile

This import has been removed upstream. Updating to a later version should fix the problem.

Change History (8)

comment:1 Changed 8 months ago by eric-j-ason

Description: modified (diff)

comment:2 Changed 8 months ago by jmroot (Joshua Root)

Owner: set to dgilman
Status: newassigned

comment:3 Changed 8 months ago by dgilman (David Gilman)

I've opened a PR to do the version update. However, filelock/lockfile are not MacPorts dependencies of the portfile as they are optional dependencies in the Python packaging. If you have not installed the MacPorts py-filelock you would still hit the error after updating. Did you hit this error through a MacPorts-provided package or through your own code?

comment:4 in reply to:  3 Changed 8 months ago by eric-j-ason

Replying to dgilman:

I've opened a PR to do the version update. However, filelock/lockfile are not MacPorts dependencies of the portfile as they are optional dependencies in the Python packaging. If you have not installed the MacPorts py-filelock you would still hit the error after updating. Did you hit this error through a MacPorts-provided package or through your own code?

Oh, I hit the error when using Poetry. Just about any command in Poetry will trigger it. I can't say that I have fully wrapped my head around the dependency situation (how MacPorts and Python dependencies work out with each other).

comment:5 Changed 8 months ago by dgilman (David Gilman)

The PR I have out to fix cachecontrol will also update Poetry. It should be merged in the next day, if you update poetry you'll get the fix.

comment:6 Changed 8 months ago by dgilman (David Gilman)

Resolution: fixed
Status: assignedclosed

In 772882c7fcaf24b1dc54937bcadecabf77e01971/macports-ports (master):

py-cachecontrol: update to 0.13.1

Closes: #68140

comment:7 Changed 8 months ago by dgilman (David Gilman)

In 10a31bcace2ec0b899a6fa245a1293532179aa63/macports-ports (master):

poetry: re-add dependency on py-filelock

Closes: #68140

comment:8 in reply to:  7 Changed 8 months ago by eric-j-ason

Thank you! Things are back in working order.

Note: See TracTickets for help on using tickets.