bndr / bndr/pipreqs

Error with installing pipreqs

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

Description

When I attempted to install pipreqs:

`pip install pipreqs`

I get the error:

```
Collecting pipreqs
Using cached pipreqs-0.4.13-py2.py3-none-any.whl (33 kB)
Collecting docopt
Using cached docopt-0.6.2.tar.gz (25 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [40 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Clarence\AppData\Local\Temp\pip-install-j_j14b7p\docopt_4923ffc7b0274a44b387c8f55a081f28\setup.py", line 6, in
setup(
File "C:\Users\Clarence\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Clarence\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\_distutils\core.py", line 147, in setup
_setup_distribution = dist = klass(attrs)
^^^^^^^^^^^^
File "C:\Users\Clarence\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\dist.py", line 476, in __init__
_Distribution.__init__(
File "C:\Users\Clarence\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\_distutils\dist.py", line 282, in __init__
self.finalize_options()
File "C:\Users\Clarence\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\dist.py", line 899, in finalize_options
for ep in sorted(loaded, key=by_order):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Clarence\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\dist.py", line 898, in
loaded = map(lambda e: e.load(), filtered)
^^^^^^^^
File "C:\Users\Clarence\AppData\Local\Programs\Python\Python311\Lib\importlib\metadata\__init__.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Clarence\AppData\Local\Programs\Python\Python311\Lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1206, in _gcd_import
File "", line 1178, in _find_and_load
File "", line 1149, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Users\Clarence\AppData\Local\Programs\Python\Python311\Lib\site-packages\py2app\build_app.py", line 37, in
from py2app.create_appbundle import create_appbundle
File "C:\Users\Clarence\AppData\Local\Programs\Python\Python311\Lib\site-packages\py2app\create_appbundle.py", line 9, in
from py2app.util import make_exec, makedirs, mergecopy, mergetree, skipscm
File "C:\Users\Clarence\AppData\Local\Programs\Python\Python311\Lib\site-packages\py2app\util.py", line 5, in
import fcntl
ModuleNotFoundError: No module named 'fcntl'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
```

Python 3.11.2

Contributor guide

Open the contributing guide

Research direction

Reproduce `pip install pipreqs` with Python 3.11.2 using the command and traceback in the issue. Start by examining the dependency metadata-generation failure involving docopt, py2app, and the missing fcntl module. Done means the installation failure is understood and a verified path to a successful installation is established.

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
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.