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

Unable to bundle pycryptodome using py2exe #161

Closed
Prev-I opened this issue May 10, 2018 · 2 comments
Closed

Unable to bundle pycryptodome using py2exe #161

Prev-I opened this issue May 10, 2018 · 2 comments

Comments

@Prev-I
Copy link

Prev-I commented May 10, 2018

I've made some testing trying to replace pycrypto inside our software.
With the latest release of pycryptodome I've got different error than the one reported in #14

My enviroment is the following:

python 2.7.14-win32
pycryptodome==3.6.1
py2exe-py2==0.6.9
esky==0.7.4

the exe is builded correctly but when I launch it I've got this stacktrace:

Traceback (most recent call last):
  File "__main__.py", line 555, in <module>
  File "__main__.py", line 120, in bootstrap
  File "__main__.py", line 144, in chainload
  File "__main__.py", line 551, in _chainload
  File "myapp.pyw", line 35, in <module>
  File "zipextimporter.pyc", line 82, in load_module
  File "Crypto\Cipher\__init__.pyc", line 3, in <module>
  File "zipextimporter.pyc", line 82, in load_module
  File "Crypto\Cipher\_mode_ecb.pyc", line 29, in <module>
  File "zipextimporter.pyc", line 82, in load_module
  File "Crypto\Util\_raw_api.pyc", line 161, in <module>
  File "ctypes\__init__.pyc", line 375, in __getattr__
  File "ctypes\__init__.pyc", line 380, in __getitem__
AttributeError: function 'PyObject_GetBuffer' not found

any suggestions?

@Legrandin
Copy link
Owner

This seems an issue unrelated to PyCryptodome: for example see pallets/flask#1966 .

In any case, I doubt that py2exe will work in the end. Any chance you can switch to pyinstaller?

@Prev-I
Copy link
Author

Prev-I commented May 10, 2018

unfortunately our software used esky (now a defunct project) which is not working with pyinstaller.
I could give a try to change our deploy chain with more modern tools but that is outside the scope of this issue.

Given the fact that is not related to pycryptodome I'm closing this issue. Thanks

@Prev-I Prev-I closed this as completed May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants