Code Monkey home page Code Monkey logo

Comments (6)

huncut2016 avatar huncut2016 commented on May 25, 2024 1

There are no errors, thanks for the fix! 😀

from manim_editor.

christopher-besch avatar christopher-besch commented on May 25, 2024

The error occurs because you're running the Manim Editor in a directory containing files (possibly in sub-directories) that can't be opened for some reason. In your case it looks like your .PlayOnLinux and .wine directories are the reason. If you run the Manim Editor in a different directory, the errors should disappear.

from manim_editor.

christopher-besch avatar christopher-besch commented on May 25, 2024

But the Manim Editor should catch this error. I'll implement that.

from manim_editor.

christopher-besch avatar christopher-besch commented on May 25, 2024

I've published a new version. Could you check if that fixes it?

from manim_editor.

huncut2016 avatar huncut2016 commented on May 25, 2024

Thanks for the quick answer. That's the next error after the update:

Creating project 'pitzene'.
ERROR:manim_editor.app:Exception on /create_project2 [POST]
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.8/site-packages/flask/app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "/home/user/.local/lib/python3.8/site-packages/flask/app.py", line 1518, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/home/user/.local/lib/python3.8/site-packages/flask/app.py", line 1516, in full_dispatch_request
    rv = self.dispatch_request()
  File "/home/user/.local/lib/python3.8/site-packages/flask/app.py", line 1502, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/home/user/.local/lib/python3.8/site-packages/manim_editor/app/main/routes.py", line 105, in scene_selection
    scenes = get_scenes()
  File "/home/user/.local/lib/python3.8/site-packages/manim_editor/editor/manim_loader.py", line 57, in get_scenes
    scene = get_scene(scene_index_path, len(scenes))
  File "/home/user/.local/lib/python3.8/site-packages/manim_editor/editor/manim_loader.py", line 37, in get_scene
    raw_sections = valid_json_load(path, get_config().SECTION_INDEX_SCHEMA)
  File "/home/user/.local/lib/python3.8/site-packages/manim_editor/editor/commands.py", line 55, in valid_json_load
    data = json.load(file)
  File "/usr/lib/python3.8/json/__init__.py", line 293, in load
    return loads(fp.read(),
  File "/usr/lib/python3.8/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbf in position 1: invalid start byte

from manim_editor.

christopher-besch avatar christopher-besch commented on May 25, 2024

I created a new release with the fix. Could you try it?

from manim_editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.