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

have 'x86_64', need 'arm64e' #41

Open
a-nldisr opened this issue Feb 20, 2022 · 0 comments
Open

have 'x86_64', need 'arm64e' #41

a-nldisr opened this issue Feb 20, 2022 · 0 comments

Comments

@a-nldisr
Copy link

a-nldisr commented Feb 20, 2022

Hello,
Forgive me if I'm making mistakes, have not programmed in python for a couple of years now. I suspect the library is not compiled against the processor I'm using, but perhaps I'm wrong. When trying to use pyminizip and running the script I'm making I get the following error:

Traceback (most recent call last):
  File "/myproject/main.py", line 2, in <module>
    import pyminizip
ImportError: dlopen(/myproject/myproject.env/lib/python3.9/site-packages/pyminizip.cpython-39-darwin.so, 0x0002): tried: '/myproject/myproject.env/lib/python3.9/site-packages/pyminizip.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/pyminizip.cpython-39-darwin.so' (no such file), '/usr/lib/pyminizip.cpython-39-darwin.so' (no such file)

The package is installed with pip:

pip list
Package    Version
---------- -------
pathlib    1.0.1
pip        22.0.3
pyminizip  0.2.6
setuptools 60.5.0

System using:
M1 Pro

Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64

code:

import pyminizip

def passwordZip():
    password = "something"
    pyminizip.compress('./', './file' + '.zip', password)

passwordZip()
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

1 participant