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

ImportError: cannot import name 'OpenGLMathTex' from 'manim.opengl' #19

Open
liyangbit opened this issue Jan 24, 2022 · 3 comments
Open

Comments

@liyangbit
Copy link

liyangbit commented Jan 24, 2022

ImportError: cannot import name 'OpenGLMathTex' from 'manim.opengl'

In Manim Community v0.14.0,there is no 'OpenGLMathTex' from 'manim.opengl' , how to solve this question, thx!

Manim Community v0.14.0

Traceback (most recent call last):
  File "/Users/lemon/opt/anaconda3/envs/manimce/bin/manim", line 8, in <module>
    sys.exit(main())
  File "/Users/lemon/opt/anaconda3/envs/manimce/lib/python3.9/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/Users/lemon/opt/anaconda3/envs/manimce/lib/python3.9/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/Users/lemon/opt/anaconda3/envs/manimce/lib/python3.9/site-packages/click/core.py", line 1668, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/lemon/opt/anaconda3/envs/manimce/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/lemon/opt/anaconda3/envs/manimce/lib/python3.9/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/Users/lemon/opt/anaconda3/envs/manimce/lib/python3.9/site-packages/manim/cli/render/commands.py", line 136, in render
    for SceneClass in scene_classes_from_file(file):
  File "/Users/lemon/opt/anaconda3/envs/manimce/lib/python3.9/site-packages/manim/utils/module_ops.py", line 125, in scene_classes_from_file
    module = get_module(file_path)
  File "/Users/lemon/opt/anaconda3/envs/manimce/lib/python3.9/site-packages/manim/utils/module_ops.py", line 50, in get_module
    spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/Users/lemon/Documents/animation/ManimCE/chemistry.py", line 9, in <module>
    from chanim import *
  File "/Users/lemon/opt/anaconda3/envs/manimce/lib/python3.9/site-packages/chanim/__init__.py", line 8, in <module>
    from .chem_objects import *
  File "/Users/lemon/opt/anaconda3/envs/manimce/lib/python3.9/site-packages/chanim/chem_objects.py", line 22, in <module>
    from manim.opengl import OpenGLMathTex
ImportError: cannot import name 'OpenGLMathTex' from 'manim.opengl' (/Users/lemon/opt/anaconda3/envs/manimce/lib/python3.9/site-packages/manim/opengl/__init__.py)
@asarigun
Copy link

I have the same issue, too.

@0tickpulse
Copy link

same

@kilacoda-old
Copy link
Collaborator

Was fixed in #17 (thanks @Afostyrio!). Pushed a release to PyPI, so please try updating and see if the problem persists.

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

No branches or pull requests

4 participants