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

可以在mac chip m2,arm64的architecture上跑吗? #556

Open
Leonz5288 opened this issue Mar 30, 2023 · 0 comments
Open

可以在mac chip m2,arm64的architecture上跑吗? #556

Leonz5288 opened this issue Mar 30, 2023 · 0 comments

Comments

@Leonz5288
Copy link

Leonz5288 commented Mar 30, 2023

试了一下好像不太行
请问一下有没有什么解决办法还是说现在暂时不支持?

leon5288@MacBook-Pro chineseocr % python3 app.py 8080
Traceback (most recent call last):
  File "app.py", line 43, in <module>
    from text.darknet_detect import text_detect
  File "/Users/leon5288/code/chineseocr/text/darknet_detect.py", line 10, in <module>
    import darknet as dn
  File "python/darknet.py", line 49, in <module>
    lib = CDLL(root + "chineseocr/darknet/libdarknet.so", RTLD_GLOBAL)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/leon5288/code/chineseocr/darknet/libdarknet.so, 0x000A): tried: '/Users/leon5288/code/chineseocr/darknet/libdarknet.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/leon5288/code/chineseocr/darknet/libdarknet.so' (no such file), '/Users/leon5288/code/chineseocr/darknet/libdarknet.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
@Leonz5288 Leonz5288 changed the title 可以在mac chip 米 可以在mac chip m2,arm64的architecture上跑吗? Mar 30, 2023
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