"Unresolved reference" when using docker python interpreter with conda

Hello! I am using a python interpreter on a docker container, using the conda package manager. I am getting “unresolved reference” in the editor for modules that are installed. These modules import and work fine in the python interpreter, but the editor isn't indexing them. 

This is on Pycharm 2023.1.6 and macOS. The docker engine is 27.4.0 and I'm using python 3.7 with miniconda, in case that's relevant.

Here's a screenshot showing the editor's unresolved reference next to the package manager and the python console.

Looking at pycharm's logs, I find this error: 

2025-05-20 16:08:02,742 [2992979]   INFO - #kotlinx.coroutines.CoroutineScope - python: can't open file '/opt/.pycharm_helpers/conda_packaging_tool.py': [Errno 2] No such file or directory
ERROR conda.cli.main_run:execute(41): `conda run python /opt/.pycharm_helpers/conda_packaging_tool.py listall` failed. (See above for error)
0

Hi Herbiehuff

As a general troubleshooting step, and to ensure we're not dealing with an already resolved issue, could you please update to the latest 2025.1.1.1 PyCharm version and check if the issue still occurs?

If the issue persists, please report it on YouTrack and attach all relevant information (including IDE logs from Help | Collect Logs and Diagnostic Data) to help us investigate more efficiently.
 

0

请先登录再写评论。