Opened 4 years ago

Closed 3 years ago

#61099 closed defect (fixed)

Permissions problems with py38-xarray @0.16.0

Reported by: quintusdias (John G Evans) Owned by: petrrr
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-xarray

Description

There seems to be a permissions problem with this port, many of the installed *.py files have permissions 600 and therefore are not readable by an unprivileged user. Running the test suite as an unprivileged user results in failures. Uninstalling and reinstalling the port does not change anything, but manually adding read permission on the *.py files is a band-aid that seems to get things working again.

Attachments (1)

xarray_reproduction_steps.txt (104.0 KB) - added by quintusdias (John G Evans) 4 years ago.
List of steps reproducing the problem, shows tests via ipython and xarray's own test suite

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by quintusdias (John G Evans)

List of steps reproducing the problem, shows tests via ipython and xarray's own test suite

comment:1 Changed 4 years ago by mf2k (Frank Schima)

Owner: set to petrrr
Port: py-xarray added; py38-xarray removed
Status: newassigned

comment:2 Changed 4 years ago by mdekauwe (Martin De Kauwe)

I'm also getting something very similar for python 3.7 and 3.8 versions:

File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/xarray/__init__.py", line 3, in <module>
from . import testing, tutorial, ufuncs
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/xarray/testing.py", line 8, in <module>
from xarray.core import duck_array_ops, formatting, utils
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 724, in exec_module
File "<frozen importlib._bootstrap_external>", line 859, in get_code
File "<frozen importlib._bootstrap_external>", line 916, in get_data
PermissionError: [Errno 13] Permission denied: '/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/xarray/core/__init__.py'
Last edited 4 years ago by mdekauwe (Martin De Kauwe) (previous) (diff)

comment:3 Changed 3 years ago by reneeotten (Renee Otten)

Resolution: fixed
Status: assignedclosed

In a491d9b7e391bd360086aa42afb3d0ca0efcfa00/macports-ports (master):

py-xarray: update to 2022.3.0

  • drop py27/py3{5,6} subports
  • pin to latest version for PY37

Closes: #61099

Note: See TracTickets for help on using tickets.