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

I have errors when running main.py (I installed all the requirements) and i think it's because of the cairoSVG module #13

Closed
superscratch444tre opened this issue Feb 5, 2022 Discussed in #12 · 5 comments
Labels
🐛 bug Something isn't working ❓ help wanted Extra attention is needed

Comments

@superscratch444tre
Copy link
Contributor

superscratch444tre commented Feb 5, 2022

I have errors when running main.py (I installed all the requirements)
Please help me find the solution.

Screenshots
The code
The errors
The project code: gotomouseforever.zip

@Secret-chest
Copy link
Owner

The project code does not matter. We use CairoSVG for loading SVGs.

It might be because you are on windows.
CairoSVG documentation says:

on Windows, you’ll have to install Visual C++ compiler for Python and Cairo
Links: https://wiki.python.org/moin/WindowsCompilers#Microsoft_Visual_C.2B-.2B-_14.x_with_Visual_Studio_2022_.28x86.2C_x64.2C_ARM.2C_ARM64.29

I can't really help out with that any more. Last time I used Windows was 1 year ago, but if you have any more issues, please reply.

@superscratch444tre
Copy link
Contributor Author

The project code does not matter. We use CairoSVG for loading SVGs.

It might be because you are on windows. CairoSVG documentation says:

on Windows, you’ll have to install Visual C++ compiler for Python and Cairo
Links: https://wiki.python.org/moin/WindowsCompilers#Microsoft_Visual_C.2B-.2B-_14.x_with_Visual_Studio_2022_.28x86.2C_x64.2C_ARM.2C_ARM64.29

I can't really help out with that any more. Last time I used Windows was 1 year ago, but if you have any more issues, please reply.

I have installed it with the instructions from that link but it is still the same. There are the same errors.

@Secret-chest
Copy link
Owner

The project code does not matter. We use CairoSVG for loading SVGs.

It might be because you are on windows. CairoSVG documentation says:

on Windows, you’ll have to install Visual C++ compiler for Python and Cairo
Links: https://wiki.python.org/moin/WindowsCompilers#Microsoft_Visual_C.2B-.2B-_14.x_with_Visual_Studio_2022_.28x86.2C_x64.2C_ARM.2C_ARM64.29

I can't really help out with that any more. Last time I used Windows was 1 year ago, but if you have any more issues, please reply.

I have installed it with the instructions from that link but it is still the same. There are the same errors.

Could you look up "python cairoSVG windows" on Google?

@superscratch444tre
Copy link
Contributor Author

I have found the solution. The cairo libraries were missing. I have created a "cairolibs" folder in the scratch2python folder, where I put all the cairo-related libraries. Now it works. I can create a pull request to add this change for the windows users, if you want.

@Secret-chest
Copy link
Owner

I have found the solution. The cairo libraries were missing. I have created a "cairolibs" folder in the scratch2python folder, where I put all the cairo-related libraries. Now it works. I can create a pull request to add this change for the windows users, if you want.

Yes, sure. Send it.

@Secret-chest Secret-chest added ❓ help wanted Extra attention is needed 🐛 bug Something isn't working labels Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working ❓ help wanted Extra attention is needed
Projects
Status: done
Development

No branches or pull requests

2 participants