sarugaku / shellingham

Tool to Detect Surrounding Shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unsupported proc format

dnlserrano opened this issue · comments

Running an Apple M1 Pro, I started to get

unsupported proc format

as part of running poetry shell

Upon digging, I found this library and saw fairly recent updates. After downgrading from 1.5.2 to 1.5.0, issues is gone.

Have you maybe introduced a regression for M1s?

Pull requests would be welcomed.

We're observing that same issue on Intel Mac devices. It bubbles up through Poetry, breaking some of its functions.

@uranusjr I could look into a PR, but I'm not sure what the fix would be as neither of this file apparently exist on Macs?

I confirm this bug too.

The bug is in the proc.py:30

    for name in ("stat", "status"):
        if os.path.exists(os.path.join("/proc", str(pid), name)):
            return name
    raise ProcFormatError("unsupported proc format")

Since MacOS systems do not contain a "/proc" file system, the script is always raising the error.

fixed this - #79

1.5.3 has been released.

Thanks for the very speedy fix folks! ❤️