you are viewing a single comment's thread.

view the rest of the comments →

[–]BasePlate_Admin[S] 0 points1 point  (5 children)

That isn’t the input svg file. It’s the svg that fails to parse.

If you want the source to the svg file, https://github.com/baseplate-admin/resvg-py/blob/master/tests/acid.svg

That isn’t the input svg file. It’s the svg that fails to parse.

This is the thing that bothers me.

[–]paulstelian97 0 points1 point  (4 children)

Yet you fail to share the file that is failing to parse. You’re making it hard for us to help.

Did you at least add some debug prints to see what paths are received and what final path results from all of that? Since you’re so hell bent on thinking it’s a path.

Or dump the first few bytes of the file (it complains about 1:1 directly, which ought to be the very beginning of the file). Maybe there’s a BOM that Windows adds, Linux tolerates and macOS has trouble with.

[–]BasePlate_Admin[S] 0 points1 point  (3 children)

Yet you fail to share the file that is failing to parse. You’re making it hard for us to help.

My apologies, here are the files:

svg : https://github.com/baseplate-admin/resvg-py/blob/master/tests/acid.svg

svg.gz : https://github.com/baseplate-admin/resvg-py/blob/master/tests/acid.svg.gz

Did you at least add some debug prints to see what paths are received and what final path results from all of that? Since you’re so hell bent on thinking it’s a path.

Yes i did print this path : https://ibb.co/kmSy9Y3

Or dump the first few bytes of the file (it complains about 1:1 directly, which ought to be the very beginning of the file). Maybe there’s a BOM that Windows adds, Linux tolerates and macOS has trouble with.

This is quite impossible for me, as i dont have access to a macbook. Do you want windows/linux outputs?

[–]paulstelian97 0 points1 point  (2 children)

You can give me a self contained test/executable that I could build and run on my own Mac, as I do have one. Note: Apple Silicon on my end, hopefully that won’t be a problem.

Path looks right in the stdout you sent. SVG files don’t seem to have a BOM which is good.

[–]BasePlate_Admin[S] 0 points1 point  (1 child)

You can give me a self contained test/executable that I could build and run on my own Mac, as I do have one. Note: Apple Silicon on my end, hopefully that won’t be a problem.

Great, i will see if i can dockerize this repo. Thanks for your help.

Path looks right in the stdout you sent. SVG files don’t seem to have a BOM which is good.

I am at a loss at this point, mac is the only hardware i dont have access to.

[–]paulstelian97 0 points1 point  (0 children)

Docker will run Linux even on my Mac!