pipreqs icon indicating copy to clipboard operation
pipreqs copied to clipboard

pipreqs confuses secrets package with standard library

Open mrapacz opened this issue 6 years ago • 2 comments

I've just tried running pipreqs for my project. It seemed to work fine until the project's CI crashed telling me:

ERROR: ERROR: No matching distribution found for secrets==1.0.2

Pipreqs thought it's the secrets package, while in reality it was secrets standard library. Removing the 'secrets==1.0.2' manually from requirements.txt fixed the issue.

The package cannot be installed on Python 3.7 and I'm running Python 3.7, so technically it's clear which module I want to import in my code.

Is there a way for pipreqs to solve this issue automatically or will I need to fix it manually upon every requirements.txt regeneration?

mrapacz avatar Jun 01 '19 09:06 mrapacz

This library is missing some standard libraries.

imlison avatar Jul 24 '19 12:07 imlison

the same situation

Axios1027 avatar Feb 07 '20 08:02 Axios1027