#63413 closed defect (fixed)
py-spyder: Needs runtime dependency on py-platformdirs
Reported by: | mf2k (Frank Schima) | Owned by: | reneeotten (Renee Otten) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | stromnov@… | |
Port: | py-spyder py-pylint |
Description
I see the following runtime error with the latest version of py39-spyder:
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/spyder/app/start.py", line 50, in <module> from spyder.utils.external import lockfile File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/spyder/utils/external/lockfile.py", line 31, in <module> from spyder.utils.programs import is_spyder_process File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/spyder/utils/programs.py", line 28, in <module> import pkg_resources File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module> def _initialize_master_working_set(): File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside f(*args, **kwargs) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master ws.require(__requires__) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require needed = self.resolve(parse_requirements(requirements)) File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'platformdirs>=2.2.0' distribution was not found and is required by pylint
Fixed by installing py39-platformdirs. So it is a required runtime dependency somewhere in the dependency chain.
Change History (2)
comment:1 Changed 3 years ago by reneeotten (Renee Otten)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:2 Changed 3 years ago by reneeotten (Renee Otten)
the last line in your error log tells you exactly where it's needed: py-pylint
. I've submitted a fix.
Note: See
TracTickets for help on using
tickets.
In a2ed2598e991184cd0dd53d1b7a2dc0f34006304/macports-ports (master):