#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 14 months ago by eric-j-ason
Description: | modified (diff) |
---|
comment:2 Changed 14 months ago by jmroot (Joshua Root)
Owner: | set to dgilman |
---|---|
Status: | new → assigned |
comment:3 follow-up: 4 Changed 14 months ago by dgilman (David Gilman)
comment:4 Changed 14 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 14 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 14 months ago by dgilman (David Gilman)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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?