How to fix "RuntimeWarning: Running interpreter doesn't sufficiently support code object introspection." warning when using pipenv?

Question:

Every time I run any pipenv command I’m getting this:

C:Usersuser_nameAppDataLocalProgramsPythonPython311Libsite-packagespipenvvendorattr_make.py:876: RuntimeWarning: Running interpreter doesn’t sufficiently support code object introspection. Some features like bare super() or accessing class will not work with slotted classes. set_closure_cell(cell, cls)

The command runs after it, but I would like to disable this message.

I’m using Windows 10 19044.2194 and pipenv 2022.10.25.

Asked By: IGRACH

||

Answers:

I was fighting the same issue on MacOS. The problem seems to be when pipenv is installed with brew. I fixed it by uninstalling the brew version of pipenv, then installing pipenv using pip. Here are the commands:

brew uninstall pipenv
pip install pipenv

Worked like a charm for me. Hope it helps you.

Answered By: NiwotSmitty