question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'NoneType' object has no attribute 'loader'

See original GitHub issue

I have downloaded manimlib, (with pip3) as well as cairo, ffmpeg, and sox. (with brew)

I tried to run this program, enteringmanim Manim Demo.py Shapes -pl into my command line, which worked here for someone with a seemingly the same problem:

from manimlib.imports import *

class Shapes(Scene):
    def construct(self):
        circle = Circle()
        square = Square()
        line=Line(np.array([3,0,0]),np.array([5,0,0]))
        triangle=Polygon(np.array([0,0,0]),np.array([1,1,0]),np.array([1,-1,0]))

        self.add(line)
        self.play(ShowCreation(circle))
        self.play(FadeOut(circle))
        self.play(GrowFromCenter(square))
        self.play(Transform(square,triangle))

This gave the following error:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/manim", line 10, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/manimlib/__init__.py", line 11, in main
    config = manimlib.config.get_configuration(args)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/manimlib/config.py", line 185, in get_configuration
    module = get_module(args.file)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/manimlib/config.py", line 179, in get_module
    module = importlib.util.module_from_spec(spec)
  File "<frozen importlib._bootstrap>", line 580, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'

I just recently downloaded macOS Catalina, (10.15.4), and am using Python 3.7.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
zoladoncommented, Mar 17, 2020

Nevermind I fixed it!

0reactions
tinfungstercommented, Dec 14, 2020

Check whether your file name is right in the terminal.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'NoneType' object has no attribute 'loader'
it looks like a line is too long for pip3 to process. Basically, some packages put all commands on one line and that...
Read more >
AttributeError: 'NoneType' object has no attribute 'loader' #393
Long story short. Getting AttributeError: 'NoneType' object has no attribute 'loader' error when running inside of k8s.
Read more >
None Type object has no attribute loader in Python pip install ...
Hello World, in this video, am going to show you how to fix no attricute loader when intalling Python Module via pip How...
Read more >
conda-forge/conda-forge.github.io - Gitter
_bootstrap>", line 580, in module_from_spec AttributeError: 'NoneType' object has no attribute 'loader'. David Hoese. @djhoese.
Read more >
'NoneType' object has no attribute 'loader'
[Scons-users] AttributeError: 'NoneType' object has no attribute 'loader': that went into a recent release of scons. that went into a recent release of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found