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

[Bug]: Cannot create classes from cached extensions with references to types defined in the extension #1182

Closed
rly opened this issue Aug 29, 2024 · 0 comments · Fixed by #1183
Assignees
Labels
category: bug errors in the code or code behavior priority: medium non-critical problem and/or affecting only a small set of users
Milestone

Comments

@rly
Copy link
Contributor

rly commented Aug 29, 2024

What happened?

Let's say there is an extension that contains two data types A and B, and B contains an object reference to A, either in an attribute or because B is a dataset of references. When this extension is cached in a file and subsequently loaded from the file, A cannot be found when getting the class for B. This appears here: rly/ndx-structured-behavior#44 where TaskProgram contains an attribute that is an object reference to a TaskSchema, and both are defined in the ndx-structured-behavior extension.

Steps to Reproduce

Follow the steps in ndx-structured-behavior to create a file. Then read the file WITHOUT importing the extension (automatically generate all classes).

Traceback

No response

Operating System

macOS

Python Executable

Conda

Python Version

3.12

Package Versions

No response

@rly rly self-assigned this Aug 29, 2024
@rly rly added category: bug errors in the code or code behavior priority: medium non-critical problem and/or affecting only a small set of users labels Aug 29, 2024
@rly rly added this to the 3.14.4 milestone Aug 29, 2024
@rly rly closed this as completed in #1183 Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: bug errors in the code or code behavior priority: medium non-critical problem and/or affecting only a small set of users
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant