bndr / bndr/pipreqs

TA-Lib

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

Description

Somehow `import talib` (see [TA-Lib](https://github.com/mrjbq7/ta-lib)) gives me

```
TA_Lib==0.4.17
talib==0.1.1
```

where the first one is fine, while the second one seems to be nonsense as it results in error upon installation:

```
Building wheels for collected packages: talib
Running setup.py bdist_wheel for talib ... error
Complete output from command /home/user//.venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-qlpggc_h/talib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-bgpomtii --python-tag cp37:
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/talib
copying talib/cli.py -> build/lib/talib
copying talib/__init__.py -> build/lib/talib
installing to build/bdist.linux-x86_64/wheel
running install
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-qlpggc_h/talib/setup.py", line 47, in
'talib = talib.cli:cli',
File "/usr/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/user//.venv/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 224, in run
self.run_command('install')
File "/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-install-qlpggc_h/talib/setup.py", line 20, in run
raise Exception("You probably meant to install and run ta-lib")
Exception: You probably meant to install and run ta-lib
```

Shall this be blacklisted?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported `import talib` dependency resolution and trace how pipreqs maps that import to a package name. Check the existing import-to-package handling and blacklist data, if present. Done means the generated requirement selects TA-Lib rather than the unrelated `talib` package, with the reported installation failure covered by a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.