bndr / bndr/pipreqs

Import named "flib" not found locally. Trying to resolve it at the PyPI server.

Open
#465 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
7.5k
Forks
424
PR merge metrics
No merged PRs in 30d

Description

I have a project with my own lib **flib**. I've already add lib **flib** to python by set envs:

```
export PYTHONNOUSERSITE=0
export PYTHONUSERBASE=/Users/fred/Fred/workspace/python/fred-py-app3
```

**fred-py-app3** is my project root path.

I get the warning:

```
WARNING: Import named "flib" not found locally. Trying to resolve it at the PyPI server.
WARNING: Import named "flib" was resolved to "flib:0.9.2" package (https://pypi.org/project/flib/).
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the warning in pipreqs with the reported PYTHONNOUSERSITE and PYTHONUSERBASE settings and a local library named flib. Trace the import-resolution path that decides whether flib is available locally. Done means the local flib is recognized without resolving to the unrelated PyPI package.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, tooling
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.