Python Forum
Adding libraries to Python 3.6.2 embedded
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding libraries to Python 3.6.2 embedded
#1
Hello, I am trying to add pycryptodomex library into Python 3.6.2 embedded but without no success.
Has anyone else encountered such problem?

Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)] on win32
>>> from Cryptodome.Cipher import AES
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 646, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 616, in _load_backward_compatible
  File "C:\Users\davidek\Desktop\python32\python36.zip\Cryptodome\Cipher\__init__.py", line 78, in <module>
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 646, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 616, in _load_backward_compatible
  File "C:\Users\davidek\Desktop\python32\python36.zip\Cryptodome\Cipher\_mode_ecb.py", line 46, in <module>
  File "C:\Users\davidek\Desktop\python32\python36.zip\Cryptodome\Util\_raw_api.py", line 171, in load_pycryptodome_raw_lib
OSError: Cannot load native module 'Cryptodome.Cipher._raw_ecb'
>>>
Reply
#2
(Aug-10-2017, 08:30 AM)hynek_compelson Wrote: Hello, I am trying to add pycryptodomex library into Python 3.6.2 embedded but without no success.
"embedded" distribution of Python, is not really designed not designed to install stuff into.
It don't comes with pip and site-packages folder is a zipfile.
In normal Python version it should be pip install pycryptodomex,
this will not work on "embedded" distribution without changing something that i am not sure of,
have not used "embedded" distribution.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to run detectron2, as python embedded code in C++, on GPU? hassaniqbal931 3 1,083 Nov-02-2023, 04:45 PM
Last Post: blabling2
  Adding libraries to embedded Python as a ZIP The_Oman 0 1,227 May-05-2023, 04:05 PM
Last Post: The_Oman
Bug Embedded Python Memory Leaks Alexei 1 1,027 Sep-16-2022, 01:15 PM
Last Post: Alexei
  Embedded Python in C++ Xeno 19 3,520 Aug-03-2022, 07:29 AM
Last Post: Gribouillis
  Python script with local libraries zazas321 0 967 Jul-05-2022, 04:55 AM
Last Post: zazas321
  Embedded python fails to compile on Raspberry Pi tryfon 2 3,468 Dec-22-2020, 02:06 PM
Last Post: tryfon
  Can Embedded Python run any shared library on Android ? sprotz 0 2,309 Nov-08-2020, 12:21 PM
Last Post: sprotz
  memory leak on embedded python in c++ asdf3721 3 3,375 Jul-16-2020, 06:33 AM
Last Post: Gribouillis
  Embedded Python PyObject_CallObject function JRHeisey 1 2,376 Nov-27-2019, 01:50 AM
Last Post: casevh
  Adding markers to Folium map only adding last element. tantony 0 2,121 Oct-16-2019, 03:28 PM
Last Post: tantony

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020