#66624 closed defect (fixed)

py39-tables: import fails

Reported by: duchowski Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc: essandess (Steve Smith), cjones051073 (Chris Jones), reneeotten (Renee Otten)
Port: py-tables

Description (last modified by jmroot (Joshua Root))

System: macOS Ventura 13.1 MacPorts 2.8.0 (after clean install) XCode 14.2

Error: Python 3.9.16 import tables results in error (see cut+paste below).

Python 3.9.16 (main, Dec 11 2022, 19:51:58)
[Clang 14.0.0 (clang-1400.0.29.202)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tables
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/tables/__init__.py", line 99, in <module>
    from .utilsextension import (
  File "tables/utilsextension.pyx", line 169, in init tables.utilsextension
ImportError: cannot import name typeDict

Change History (3)

comment:1 Changed 22 months ago by jmroot (Joshua Root)

Cc: essandess cjones051073 reneeotten added
Description: modified (diff)
Port: py-tables added; py39-tables removed
Priority: HighNormal
Summary: py39-tables brokenpy39-tables: import fails

Unfortunately this port has no maintainer currently. Cc'ing some past contributors in the hope they can help.

comment:2 Changed 22 months ago by reneeotten (Renee Otten)

the issue is in from numpy import typeDict - this function has been deprecated.

Probably updating the port to its latest upstream version

❯ port livecheck
py-tables seems to have been updated (port version: 3.6.1, new version: 3.8.0)

will resolve the issue. I quickly tried to do this but it seems there are additional dependencies now and/or something else has changed so only a quick-and-dirty version change isn't sufficient. I am not using this port so am not that motivated to put time in it, but who knows if there is a spare hour at some point ;)

comment:3 Changed 18 months ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In fb8a6ed93328c9d8c74967a8a858a48498710e95/macports-ports (master):

py-tables: update to 3.8.0

Keeping at latest supported versions for 27 through 37, which still
have dependents.

Closes: #66624
Closes: #64482

Note: See TracTickets for help on using tickets.