kit-data-manager / kit-data-manager/indexing-service

Python is not recognized correctly

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
0
Forks
1
Avg merge
16d 3h
Merged PRs (30d)
5

Description

### My Environment:
- MacOS 12.0.1 aka Monterey
- Homebrew
- JDK 11
- Python 3.9
- pip 21.3.1

### My Problem:
When the path to the Python installation is determined, it does not determine the same path that I get with `which python3`. Specifically, it does not output the path `/opt/homebrew/bin/python3`, but the path `/usr/local/bin/python3`. This prevents modules like `wget` from loading. [...] This causes at least 9 tests to fail. I have already run `echo $PATH` and had to realize that these results are also very different, because the output within the tests/program has considerably less paths and also the path of Homebrew is not present.

### My Solution:
In my case it helped to run `rm /usr/local/bin/python3`, then uninstall all `python3` versions installed via Homebrew with `brew uninstall python3` or `brew uninstall python@3.9` and then reinstall with `brew install python3`. But before that I did other steps and messed around with the code, so I can't say if it`s really the solution. Anyway, it works now!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the code that determines the Python installation and the failing tests described in the issue; compare its runtime PATH with `which python3` on macOS with Homebrew. Done means the resolver uses the intended `/opt/homebrew/bin/python3` and the reported nine tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.