Install future dependency automatically#5
Open
facastagnini wants to merge 1 commit intodebrouwere:masterfrom
Open
Install future dependency automatically#5facastagnini wants to merge 1 commit intodebrouwere:masterfrom
future dependency automatically#5facastagnini wants to merge 1 commit intodebrouwere:masterfrom
Conversation
Installing ballpark with pip doesnt install the `future` dependency, tested on raspbian.
```
$ federico@raspbian ~ ❯❯❯ python --version ⏎
Python 2.7.9
federico@raspbian ~ ❯❯❯ sudo pip install ballpark
Collecting ballpark
Installing collected packages: ballpark
Successfully installed ballpark-1.4.0
federico@raspbian ~ ❯❯❯ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ballpark import human, scientific, engineering, business, ballpark
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/ballpark/__init__.py", line 1, in <module>
from . import notation, shortcuts, statistics, tests
File "/usr/local/lib/python2.7/dist-packages/ballpark/notation.py", line 6, in <module>
from .statistics import median
File "/usr/local/lib/python2.7/dist-packages/ballpark/statistics.py", line 6, in <module>
from .utils import isnan, reject
File "/usr/local/lib/python2.7/dist-packages/ballpark/utils.py", line 4, in <module>
import builtins
ImportError: No module named builtins
federico@raspbian ~ ❯❯❯ sudo pip install future
Collecting future
Downloading future-0.16.0.tar.gz (824kB)
100% |████████████████████████████████| 829kB 202kB/s
Building wheels for collected packages: future
Running setup.py bdist_wheel for future ... done
Stored in directory: /root/.cache/pip/wheels/c2/50/7c/0d83b4baac4f63ff7a765bd16390d2ab43c93587fac9d6017a
Successfully built future
Installing collected packages: future
Successfully installed future-0.16.0
federico@raspbian ~ ❯❯❯ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ballpark
>>> from ballpark import human, scientific, engineering, business, ballpark
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name human
>>> from ballpark import business
>>> business([11234.22, 233000.55, 1175125.2])
['11K', '233K', '1,180K']
```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Installing ballpark with pip doesnt install the
futuredependency, tested on raspbian.