<div dir="auto">Thank you Alex for your response. Could you provide me more details? Thanks in advance</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il Ven 4 Ago 2023, 18:02 Alex Gaynor <<a href="mailto:alex.gaynor@gmail.com">alex.gaynor@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This very likely indicates that however you've packaged and installed<br>
the application in your environment isn't properly including the<br>
extension module for cryptography.<br>
<br>
Alex<br>
<br>
On Fri, Aug 4, 2023 at 11:20 AM Gualtiero Scotti <<a href="mailto:tierox@gmail.com" target="_blank" rel="noreferrer">tierox@gmail.com</a>> wrote:<br>
><br>
> I'm struggling with this issue from few days...<br>
><br>
> I've a Python application that can run in two ways:<br>
><br>
> Stand alone -> launched directly using the python interpreter<br>
> From a windows service -> wrapping application with pywin32 and using the same interpreter<br>
><br>
> When app starts in standalone mode it works fine but when starts through Windows service it fails with the following stackTrace:<br>
><br>
> .............................<br>
> from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC<br>
> File "C:\Program Files (x86)\...\Python\Lib\site-package\cryptography\hazmat\primitives\kdf\pbkdf2.py", line 10, in <module><br>
> from cryptography.exceptions import (<br>
> File "C:\Program Files (x86)\...\Python\Lib\site-packages\cryptography\exceptions.py", line 9, in <module><br>
> from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions<br>
> ImportError: DLL load failed while importing _rust: The specified module could not be found."<br>
><br>
> I' don't know wich DLLs cryptography uses.....maybe they are not in librarypath???<br>
><br>
> Python 3.11.3 32-bit<br>
> Windows 11<br>
><br>
> Requirements.txt<br>
><br>
> pywin32==305 pywin32-ctypes~=0.2.0 Flask~=2.1.2 flask-login~=0.6.1 Werkzeug~=2.0.2 waitress~=2.1.2 websockets~=10.3 transitions~=0.8.11 bitstruct~=8.15.1 PyYAML~=6.0 passlib~=1.7.4 dacite~=1.5.1 paho-mqtt~=1.6.1 setuptools~=60.2.0 six~=1.16.0 MarkupSafe~=2.1.1 click~=8.1.3 itsdangerous~=2.1.2 Jinja2~=3.1.2 pythonnet~=3.0.1 requests~=2.29.0 pyserial~=3.5.0 zeep~=4.2.1 cryptography~=41.0.2 pycryptodome~=3.18.0<br>
><br>
> Did someone have the same issue? Any suggestion is appreciated.<br>
><br>
> Thanks in advance.<br>
><br>
> _______________________________________________<br>
> Cryptography-dev mailing list<br>
> <a href="mailto:Cryptography-dev@python.org" target="_blank" rel="noreferrer">Cryptography-dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/cryptography-dev" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/cryptography-dev</a><br>
<br>
<br>
<br>
-- <br>
All that is necessary for evil to succeed is for good people to do nothing.<br>
_______________________________________________<br>
Cryptography-dev mailing list<br>
<a href="mailto:Cryptography-dev@python.org" target="_blank" rel="noreferrer">Cryptography-dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/cryptography-dev" rel="noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/cryptography-dev</a><br>
</blockquote></div>