-
I cloned the GitHub repository and tried to run a few pieces of examples from the documentation: class MyScene(Scene):
def construct(self):
arr = MArray(self, [1, 2, 3])
self.play(Create(arr))
self.wait(1) An error just occurred:
It seems like the package I downloaded from pip is different from what I cloned from GitHub. The parameter of After deleting the parameter of So I'm wondering what caused this inconsistency. Is it because the package from pip is not updated? Or just because I'm not using this correctly? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello @ttzytt Moreover, the file Try pulling the latest commits from the |
Beta Was this translation helpful? Give feedback.
-
@drageelr Thanks a lot. Now I can run the code correctly by using |
Beta Was this translation helpful? Give feedback.
Hello @ttzytt
From version 0.1.6 onward, the
Scene
needs to be passed as the first argument toMArray
and other such classes. The package is published to PyPi using thePYPI
workflow defined on themain
branch, so imo the repo'smain
branch is consistent with the latest package published.Moreover, the file
array.py
was renamed tom_array.py
in the release 0.1.5 (as mentioned in the changelog). Since you mentioned that these two files differ I think that you haven't updated the main branch for your clone.Try pulling the latest commits from the
main
branch and let me know if the error still persists.