Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

[BUG] svg2rlg Failed to load input file #247

Closed
jralduaveuthey opened this issue Dec 11, 2022 · 10 comments
Closed

[BUG] svg2rlg Failed to load input file #247

jralduaveuthey opened this issue Dec 11, 2022 · 10 comments
Labels
bug Something isn't working

Comments

@jralduaveuthey
Copy link

when doing $ python3 -m revChatGPT --debug I get:

...
Captcha extracted
Captcha saved to captcha.png
Failed to load input file! (Error reading file '<svg xmlns...

I am running it on a EC2 instance. The error comes from png = svg2rlg(svg) in the main.py

@jralduaveuthey jralduaveuthey added the bug Something isn't working label Dec 11, 2022
@acheong08
Copy link
Owner

Looking into it

@acheong08
Copy link
Owner

Try https://github.com/acheong08/ChatGPT/releases/tag/0.0.38.2

I can't get a captcha so difficult to test

@jralduaveuthey
Copy link
Author

Now there is a new error:

OSError: no library called "cairo-2" was found
no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so.2': libcairo.so.2: cannot open shared object file: No such file or directory
cannot load library 'libcairo.2.dylib': libcairo.2.dylib: cannot open shared object file: No such file or directory
cannot load library 'libcairo-2.dll': libcairo-2.dll: cannot open shared object file: No such file or directory

@acheong08
Copy link
Owner

Kozea/CairoSVG#354

@acheong08
Copy link
Owner

Kozea/CairoSVG#371

@acheong08
Copy link
Owner

I will add them as a dependency.

@acheong08
Copy link
Owner

Can you try out 05d92e3

(Need to clone and pip3 install .) I will publish if it works

@jralduaveuthey
Copy link
Author

unfortunately still not working and I do not get any error, only this output:

...
Saved captcha.png
Login failed
Something went wrong! Please run with --debug to see the error.
a bytes-like object is required, not 'str'

@acheong08
Copy link
Owner

Damn ok. I will just save as raw SVG then. You can open svg files via the browser

@acheong08
Copy link
Owner

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants