-
Notifications
You must be signed in to change notification settings - Fork 784
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
Importing zeep package panics with error: PyErr { type: 0x10f60b2c0 } #1273
Comments
@fusillicode thanks for the report. I couldn't reproduce this on my local machine (Ubuntu 20.04, Python 3.9, latest We just merged some improvements to pyo3 which should output more helping information on a panic. Can you please retry with the latest pyo3 master, which should give a more helpful error message? Also, you could try replacing
with
Which will also print the python traceback, if needed. |
Thank you for the quick support and again for all your work 🙇 I've tried using
However with
If there is anything I can do to simplify the troubleshooting I remain at your total disposal. Thanks again. |
🤦 I forgot that macro requires at least one other argument, nvm!
Aha perfect! It looks like your python interpreter is probably a statically-linked one, like pyenv on Mac by default. This has known issues that we haven't worked out quite the best way to resolve yet e.g. see #762 #742. The notes at #763 might be applicable. Out of curiosity - are you trying to create a runnable executable which embeds Python? I've just started looking at PyOxidizer the other day, which might also help you get a working program. |
Don't worry I figured it out but I still wasn't able to make it work 😅
Awesome! I'll go check that issues ASAP! Thanks a lot!
Actually what I'm trying to do is to to create a single standalone Python module that exposes some functions to interact with a SOAP Web Service.
From Rust I would then invoke the |
Hi @davidhewitt sorry for the bother, just an update about the issue: what suggested here and here worked like a charm! 👌 I just needed to reinstall the Python version I was using by prefixing the install command with In my case the install command was
I'm gonna mark the issue as resolved! Thanks again for the quick support and for all your incredible work! 🙇 |
Thanks for following up - glad the other notes were able to help! |
🐛 Bug Reports
🌍 Environment
rustc --version
): rustc 1.49.0-nightly (ffa2e7ae8 2020-10-24)version = "0.x.y"
withgit = "https://github.com/PyO3/pyo3")?
: yes and I got the same error💥 Reproducing
A fresh Cargo binary project:
Cargo.toml
src/main.rs
Output:
No specific flags were used.
No problem were encountered when importing another library,
lxml
, a dependency ofzeep
.However the error under discussion arose also while importing other apparently unrelated libraries, e.g.
docxtpl
.For anything I remain obviously at your total disposal.
Thanks for all your incredible work 🙇
The text was updated successfully, but these errors were encountered: