Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyTables triggers a DeprecationWarning in numpy 1.20: np.object is a deprecated alias for the builtin object #898

Closed
JackKelly opened this issue Jun 14, 2021 · 6 comments
Labels
Milestone

Comments

@JackKelly
Copy link

JackKelly commented Jun 14, 2021

Here's the full error message :)

python3.9/site-packages/tables/array.py:241: 
DeprecationWarning: `np.object` is a deprecated alias
for the builtin `object`. To silence this warning, use `object` by itself. 
Doing this will not modify any behavior and is safe. 
  Deprecated in NumPy 1.20; for more details and guidance:
   https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    (oid, self.atom, self.shape, self._v_chunkshape) = self._open_array()

(Thanks loads for all your work on PyTables, it's super-useful!)

@avalentino
Copy link
Member

Thanks for reporting

@avalentino avalentino added this to the 3.6.2 milestone Jun 14, 2021
@wshanks
Copy link

wshanks commented Jul 19, 2021

This was fixed in #862 (see this commit: e8d6223). There are some issues blocking the release of a new version with the fix though: #826.

@hadim
Copy link

hadim commented Aug 27, 2021

Another one I spotted:

../lib/python3.8/site-packages/tables/__init__.py:24
  /home/hadim/local/conda/envs/circus/lib/python3.8/site-packages/tables/__init__.py:24: DeprecationWarning: `np.typeDict` is a deprecated alias for `np.sctypeDict`.
    from .utilsextension import (

-- Docs: https://docs.pytest.org/en/stable/warnings.html

Using numpy 1.21.2 and latest pytables.

@ArchangeGabriel
Copy link

@hadim This one was fixed in c111bac

@avalentino
Copy link
Member

Fixed in 65af351.

@simsicon
Copy link

simsicon commented Nov 8, 2021

Fixed in 65af351.

Thanks for the fixings, I am wondering if there is a plan to release those fixes, since the version 3.6.1 was released two years ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants