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

Can't attach debugger on native arm64 macOS machines #200

Open
CCP-Lease opened this issue Jul 7, 2021 · 4 comments
Open

Can't attach debugger on native arm64 macOS machines #200

CCP-Lease opened this issue Jul 7, 2021 · 4 comments

Comments

@CCP-Lease
Copy link

Trying to attach a debugger on native arm64 macOS fails due to pydevd_tracing.py trying to load the x86_64 version of the attach dylib.

I get the following error:

Traceback (most recent call last):
  File "pydevd_tracing.py", line 145, in load_python_helper_lib
    lib = ctypes.pydll.LoadLibrary(filename)
  File "ctypes/__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(pydevd_attach_to_process/attach_x86_64.dylib, 6): no suitable image found.  Did find:
	pydevd_attach_to_process/attach_x86_64.dylib: mach-o, but wrong architecture
@gy-mate
Copy link

gy-mate commented Jan 22, 2024

It works for me now on an Apple silicon Mac with PyCharm. This might be closed.

@gy-mate
Copy link

gy-mate commented Feb 13, 2024

@fabioz or @CCP-Lease: could you please close this issue?

@fabioz
Copy link
Owner

fabioz commented Feb 13, 2024

It seems to be fixed in the pycharm fork, but it's still not upstream yet...

@gy-mate
Copy link

gy-mate commented Feb 13, 2024

@fabioz Oh, I see, thanks!

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

3 participants