Causes of "RuntimeError: Attempted to assign to readonly property." when importing Notebook 1.0 #20
Replies: 1 comment 2 replies
-
We aren’t currently guaranteeing compatibility when importing 1.0 notebooks. The main issue is that 1.0 notebooks use a older standard library and I don’t want to build the machinery to support multiple simultaneous standard libraries (a different standard library for the main notebook versus imported notebooks). If this proves to be a frequent stumbling block, it wouldn’t be too hard to find a way to use the old standard library in imported notebooks, though that has its own downsides, such as Enumerating all the differences is probably impractical, but I can start by listing some of the bigger known ones:
If you want to share a reproduction, I’d be happy to investigate and give a more precise cause. I can’t say from the error message alone what the cause is. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I run into "RuntimeError: Attempted to assign to readonly property." a fair bit. One cause is mutable variables, they do not import correctlt on Notebook 2.0. But is that the only cause? After eliminating them (and fixing some bugs) I still feel like I am still getting them via some other source. Is mutating an object reference passes through the runtime forbidden?
Beta Was this translation helpful? Give feedback.
All reactions