-
Notifications
You must be signed in to change notification settings - Fork 230
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
Strange bug with pyo3 on macos #753
Comments
I don't really get it, can you provide a simple Rust code snippet and an SVG that when run allows us to reproduce it on the Rust side? If that issue only happens with Python then there isn't much we can do here, I think, since |
the issue is on But i will try to do a minimal reproduction of this issue. It is near impossible for me as i dont have access to a macbook |
Can you provide/print that |
Sure thing : https://github.com/baseplate-admin/resvg-py/blob/34c7e6065edead9f8e7aaa97341615db8b78677a/tests/acid.svg
I am really at a loss here, i dont have any way of testing on |
I do use macos, so if you can tell me how to run it locally - I will try. |
These are the steps i took on linux to get this repository running First install python
|
Hi @RazrFalcon, Sorry for bothering you with this issue. Turns out this is a bug with python on macos.. Thank you all for helping me initially |
What's the bug? Out of curiosity. |
The problem is with pip preferring PYPI over local package in macos. So essentially what i wrote in current package, even if i bumped the version would not be used. Initial findings by this comment: Which led me to this issue with References : |
Good. No problem. |
Hi i have this following code
rust:
python:
This fails in
macos
but runs in all other OS.Here is the log : https://github.com/baseplate-admin/resvg-py/actions/runs/8889901090/job/24409004312
Relevant Source :
Rust : https://github.com/baseplate-admin/resvg-py/blob/4a89a841138d3297986892e6418c777fb068c140/src/rust/lib.rs#L164-L178
Python : https://github.com/baseplate-admin/resvg-py/blob/e981e211fccd43cf0581d870e0fdfb3187667023/tests/test_path.py#L1-L22
Discussion on pyo3: std::path::Path::new().exists() with python Pathlib.path() works in linux and windows but not macos PyO3/pyo3#4137 (comment)
Discussion on reddit : https://www.reddit.com/r/learnrust/comments/1cgpe9d/stdpathpathnewexists_with_python_pathlibpath
The text was updated successfully, but these errors were encountered: