Code Monkey home page Code Monkey logo

Comments (4)

RayVentura avatar RayVentura commented on August 15, 2024 1

You need to run sed -i '/<policy domain="path" rights="none" pattern="@*"/d' /etc/ImageMagick-6/policy.xml
on Linux to fix the magick problem. I just pushed another version.

from shortgpt.

cian0 avatar cian0 commented on August 15, 2024

Hi , I tried this solution but still it's not working, error is:
ERROR : MoviePy Error: creation of None failed because of the following error: convert-im6.q16: attempt to perform an operation not allowed by the security policy @/tmp/tmp17x1nomq.txt' @ error/property.c/InterpretImageProperties/3706. convert-im6.q16: no images defined PNG32:/tmp/tmpc64bvt1o.png' @ error/convert.c/ConvertImageCommand/3229. . .This error can be due to the fact that ImageMagick is not installed on your computer, or (for Windows users) that you didn't specify the path to the ImageMagick binary in file conf.py, or that the path you specified is incorrect

Traceback Info : File "./ShortGPT/gui/short_automation_ui.py", line 157, in create_short for step_num, step_info in shortEngine.makeShort(): File "./ShortGPT/shortGPT/engine/abstract_content_engine.py", line 72, in makeShort self.stepDictcurrentStep File "./ShortGPT/shortGPT/engine/reddit_short_engine.py", line 59, in _prepareCustomAssets imageEditingEngine.renderImage( File "./ShortGPT/shortGPT/editing_framework/editing_engine.py", line 95, in renderImage engine.generate_image(self.schema, outputPath) File "./ShortGPT/shortGPT/editing_framework/core_editing_engine.py", line 34, in generate_image clip = self.process_text_asset(asset) File "./ShortGPT/shortGPT/editing_framework/core_editing_engine.py", line 193, in process_text_asset clip = TextClip(**clip_info) File "/home/ian/.local/lib/python3.10/site-packages/moviepy/video/VideoClip.py", line 1146, in init raise IOError(error)

image

from shortgpt.

RayVentura avatar RayVentura commented on August 15, 2024

The sed command should delete all lines containing '' in your /etc/ImageMagick-6/policy.xml file. From what I see in the screenshot, I still see it at the 10th line of your screenshot. Try to remove it manually, and make sure that line doesn't appear anymore. It should fix the issue

from shortgpt.

cian0 avatar cian0 commented on August 15, 2024

Yup the sed command appeared to have failed to remove it, removing it manually fixed the issue thanks!

from shortgpt.

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.