← All tasks
pythongiampaolo/psutil #1954Not a task: already works

[M1 macOS BigSur] no suitable image found

envgap__giampaolo__psutil-1954

01 / FAILURE SIGNATURE

As reported upstream

ImportError: dlopen(/Users/mitchell/Library/Python/3.9/lib/python/site-packages/psutil/_psutil_osx.cpython-39-darwin.so, 2): no suitable image found.  Did find:
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
0707c16339c3918f77eeb83cb1d6047cdb2f0e10
Manifest
setup.py
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

giampaolo/psutil #1954 · read the original issue
## Summary



* OS: macOS Big Sur

* Architecture: ARM

* Psutil version: 5.8.0

* Python version: 3.9.4



## Description



I am trying to use the python library [neovim-remote](https://github.com/mhinz/neovim-remote), but I am running into this psutil error while on my M1 mac. I opened an [issue](https://github.com/mhinz/neovim-remote/issues/165) there, but the author suggested I open one here.



I installed neovim remote with `pip3 install --user neovim-remote`



Thanks!



<details>

<summary>This is the stacktrace I get when try to use that tool</summary>

<pre>

Traceback (most recent call last):

  File "/Users/mitchell/Library/Python/3.9/bin/nvr", line 5, in <module>

    from nvr.nvr import main

  File "/Users/mitchell/Library/Python/3.9/lib/python/site-packages/nvr/__init__.py", line 1, in <module>

    from .nvr import main

  File "/Users/mitchell/Library/Python/3.9/lib/python/site-packages/nvr/nvr.py", line 33, in <module>

    import psutil

  File "/Users/mitchell/Library/Python/3.9/lib/python/site-packages/psutil/__init__.py", line 121, in <module>

    from . import _psosx as _psplatform

  File "/Users/mitchell/Library/Python/3.9/lib/python/site-packages/psutil/_psosx.py", line 15, in <module>

    from . import _psutil_osx as cext

ImportError: dlopen(/Users/mitchell/Library/Python/3.9/lib/python/site-packages/psutil/_psutil_osx.cpython-39-darwin.so, 2): no suitable image found.  Did find:

        /Users/mitchell/Library/Python/3.9/lib/python/site-packages/psutil/_psutil_osx.cpython-39-darwin.so: mach-o, but wrong architecture

        /Users/mitchell/Library/Python/3.9/lib/python/site-packages/psutil/_psutil_osx.cpython-39-darwin.so: mach-o, but wrong architecture

</pre>

</summary>
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]