Skip to content

DeprecationWarning: Use of .. or absolute paths will raise exceptions... #98

@Justintime50

Description

@Justintime50

When PYTHONWARNINGS=always is set, I get the following from the pkg_resources library:

/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py:1151: DeprecationWarning: 
Use of .. or absolute path in a resource path is not allowed and will raise exceptions in a future 
release.
  self, resource_name

We'll need to adjust the relative path to the VERSION file in the near future to avoid throwing exceptions on each call. The offending code is in version.py:

VERSION_FILE = pkg_resources.resource_stream('easypost', '../VERSION')

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions