bndr / bndr/pipreqs

"pipreqs --encoding=utf8 --force ." return error

Open
#340 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.5k
Forks
424
PR merge metrics
No merged PRs in 30d

Description

Hi, when I do this command : ``pipreqs --encoding=utf8 --force .`` I have this error : `` 'utf-8' codec can't decode byte 0xf6 in position 122: invalid start byte``.
I tried without the encoding, and I have the charmap error. i tried with utf16, other error. Do you know why ?

Contributor guide

Open the contributing guide

Research direction

Reproduce `pipreqs --encoding=utf8 --force .` in a project containing the reported non-UTF-8 input, then trace the encoding handling used while scanning files. Check existing tests and documentation for encoding behavior; the expected fix should make the command handle this input consistently or report a clear, actionable error.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.