-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Class Paths Have Strange Behavior on 8.3.4 #13050
Comments
Transferred Traceback over:
At first glance, the anomaly comes from within anndata. It requires people who are familiar with anndata to dig further.
{
...
(<class 'zarr.hierarchy.Group'>, <class 'anndata._core.views.AwkwardArrayView'>, frozenset()): <function write_awkward at 0x7fbae30dc680>,
(<class 'h5py._hl.group.Group'>, <class 'anndata._core.views.AwkwardArrayView'>, frozenset()): <function write_awkward at 0x7fbae30dc5e0>,
...} and
result:
diff:
vs
|
I guess something happened during the import process that resulted in a class receiving two types of import results: relative path and absolute path. From the changelog, it seems to be related to #12592 |
Hello! We are having an issue in our repo where 8.3.4 pytest (but not 8.3.3) caused our classes to have strange behavior at runtime with errors like:
when in reality, the
AwkwardArrayView
is in theself.write
dictionary, but as<class 'anndata._core.views.AwkwardArrayView'>
:(This screenshot is from my attempt to fix the issue where I printed out the contents of
self.write
)Also weirdly I cannot reproduce this locally. I have tried creating a local reproducer with an
src/package/__init__.py
file for a dummy package like:with a single
pytest
But this seems to work when I run
pytest
instead of throwing aKeyError
. I will continue to try to dig but I wanted to report.See also my various attempted to fix the issue
Python Env:
Compute Env:
pip list
from the virtual environment you are usingThe text was updated successfully, but these errors were encountered: