Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'soft_unicode' from 'markupsafe' #20

Open
triplesky opened this issue Jun 28, 2022 · 3 comments
Open

ImportError: cannot import name 'soft_unicode' from 'markupsafe' #20

triplesky opened this issue Jun 28, 2022 · 3 comments
Assignees

Comments

@triplesky
Copy link

when i run piecemaker --dir test --number-of-pieces 100 test.jpg command on mac
image

@jkenlooper
Copy link
Owner

Thank you for the bug report. It looked like this was caused by the dependency update and the 'glue' package. I opted to only copy over the stuff from that package that piecemaker uses since it seems no longer maintained. Try installing piecemaker again with a fresh install to see if this fixes your problem.

@jkenlooper jkenlooper reopened this Jun 28, 2022
@jkenlooper jkenlooper self-assigned this Jun 28, 2022
@triplesky
Copy link
Author

now there are new exception: 1, FileNotFoundError: [Errno 2] No such file or directory: 'test/lines.svg' .this mean i need create lines.svg myself?
2, i create lines.svg by a site, FileNotFoundError: [Errno 2] No such file or directory: 'optipng'

@jkenlooper
Copy link
Owner

The lines.svg file is created by the piecemaker command; it might only have some partial files in that test directory because of previous errors. Try removing that test directory you created and make a new directory that is empty. Running the piecemaker script again should recreate the necessary files in the 'test' directory.

The second error is most likely because you don't have the 'optipng' command installed on your machine. I would recommend using a Linux machine or using the provided Dockerfile to use piecemaker on a Mac or Windows machine. Otherwise you'll need to make sure you install all the other dependencies that this piecemaker script requires. See the Docker Usage instructions in the README.md https://github.com/jkenlooper/piecemaker#docker-usage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants