agronholm / pythonfutures

Backport of the concurrent.futures package to Python 2.6 and 2.7
Other
232 stars 51 forks source link

syntax error with raise type(self._exception), self._exception, self._traceback (_base.py) #41

Closed sdpython closed 9 years ago

sdpython commented 9 years ago

I installed futures 3.0.3 and it raised the following exception:

from IPython.kernel import KernelManager

File "c:\apythonensae\python\lib\site-packages\IPython\kernelinit.py", line 4, in from . import zmq File "c:\apythonensae\python\lib\site-packages\IPython\kernel\zmqinit.py", line 10, in from .session import Session File "c:\apythonensae\python\lib\site-packages\IPython\kernel\zmq\session.py", line 41, in from zmq.eventloop.ioloop import IOLoop File "c:\apythonensae\python\lib\site-packages\zmq\eventloopinit.py", line 3, in from zmq.eventloop.ioloop import IOLoop File "c:\apythonensae\python\lib\site-packages\zmq\eventloop\ioloop.py", line 35, in from tornado.ioloop import PollIOLoop, PeriodicCallback File "c:\apythonensae\python\lib\site-packages\tornado\ioloop.py", line 46, in from tornado.concurrent import TracebackFuture, is_future File "c:\apythonensae\python\lib\site-packages\tornado\concurrent.py", line 37, in from concurrent import futures File "c:\apythonensae\python\lib\site-packages\concurrent\futuresinit.py", line 8, in from concurrent.futures._base import (FIRST_COMPLETED, File "c:\apythonensae\python\lib\site-packages\concurrent\futures_base.py", line 355 raise type(self._exception), self._exception, self._traceback ^ SyntaxError: invalid syntax

agronholm commented 9 years ago

Not sure what to say. How can I reproduce it?

agronholm commented 9 years ago

Do you get this without ipython?

sdpython commented 9 years ago

Hi,

Sorry for the delay, I got this error while running a notebook offline. I'll try to send you a short example to replicate.

Xavier

On Wed, Jul 15, 2015 at 6:52 PM, Alex Grönholm notifications@github.com wrote:

Do you get this without ipython?

— Reply to this email directly or view it on GitHub https://github.com/agronholm/pythonfutures/issues/41#issuecomment-121677467 .

sdpython commented 9 years ago

This issue happens when I run python from a virtual environment on Windows (standard distribution) and I type the following instruction :

from IPython.kernel import KernelManager

Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

from IPython.kernel import KernelManager Traceback (most recent call last): File "", line 1, in File "c:\python34_x64\lib\site-packages\IPython\kernelinit.py", line 4, in from . import zmq File "c:\python34_x64\lib\site-packages\IPython\kernel\zmqinit.py", line 10, in from .session import Session File "c:\python34_x64\lib\site-packages\IPython\kernel\zmq\session.py", line 41, in from zmq.eventloop.ioloop import IOLoop File "c:\python34_x64\lib\site-packages\zmq\eventloopinit.py", line 3, in from zmq.eventloop.ioloop import IOLoop File "c:\python34_x64\lib\site-packages\zmq\eventloop\ioloop.py", line 35, in from tornado.ioloop import PollIOLoop, PeriodicCallback File "c:\python34_x64\lib\site-packages\tornado\ioloop.py", line 46, in from tornado.concurrent import TracebackFuture, is_future File "c:\python34_x64\lib\site-packages\tornado\concurrent.py", line 37, in from concurrent import futures File "c:\python34_x64\lib\site-packages\concurrent\futuresinit.py", line 8, in from concurrent.futures._base import (FIRST_COMPLETED, File "c:\python34_x64\lib\site-packages\concurrent\futures_base.py", line 355 raise type(self._exception), self._exception, self._traceback ^

The issue does not happen when I don't use virtual environment.

agronholm commented 9 years ago

There is nothing wrong with the syntax on the highlighted line, so I'm guessing this is about IPython. If you import the module in question without ipython, you don't get the same error, right?

agronholm commented 9 years ago

And for the record, your traceback refers to Python 3.4, which has nothing whatsoever to do with my backport.

agronholm commented 9 years ago

Looking at it more carefully, it seems like you've installed my backport to Python 3.4, which already has that package in its standard library. Care to explain?

sdpython commented 9 years ago

Hi,

I need to check but I think some packages still refers to it in their dependencies (which means I need to start from scratch and install packages one by one to see which one is doing it). I don't explicitely install it.

Xavier

On Thu, Jul 30, 2015 at 1:19 PM, Alex Grönholm notifications@github.com wrote:

Looking at it more carefully, it seems like you've installed my backport to Python 3.4, which already has that package in its standard library. Care to explain?

— Reply to this email directly or view it on GitHub https://github.com/agronholm/pythonfutures/issues/41#issuecomment-126277014 .

agronholm commented 9 years ago

Ok. The backport uses 2.x syntax so it is not intended to work on Python 3 at all. The author of some library probably didn't make the dependency conditional on the Python version.

PHLAK commented 9 years ago

I'm seeing what I believe to be this same error when installing futures with pip:

Running setup.py install for futures
    File "/usr/local/lib/python3.4/dist-packages/concurrent/futures/_base.py", line 355
      raise type(self._exception), self._exception, self._traceback
                                 ^
  SyntaxError: invalid syntax

Not sure if this helps, but wanted to chime in about it.

agronholm commented 9 years ago

Why would you install futures on Python 3.4? It's a backport, made so that people still using Python 2.x would get the concurrent.futures package only available on Python 3.2 onwards.

agronholm commented 9 years ago

Since there has been no further feedback and it appears that everyone involved mistakenly tried to use this on Python 3, I'm closing the issue.

sinwar commented 7 years ago

Even I also did the same mistake and used it with python 3.x which raised the same issue.

jmehnle commented 6 years ago

The README now makes it a point to not install this on 3.x.

agronholm commented 6 years ago

Installing it normally should not even be a problem, as Python prefers standard library imports over everything else by default.

RafiC92 commented 5 years ago

I still get this issue on python 3, even when I try to pip install something:

Traceback (most recent call last): File "/usr/local/bin/pip", line 7, in from pip._internal import main File "/volumes/dependencies/lib/python3.6/site-packages/pip/_internal/init.py", line 40, in from pip._internal.cli.autocompletion import autocomplete File "/volumes/dependencies/lib/python3.6/site-packages/pip/_internal/cli/autocompletion.py", line 8, in from pip._internal.cli.main_parser import create_main_parser File "/volumes/dependencies/lib/python3.6/site-packages/pip/_internal/cli/main_parser.py", line 12, in from pip._internal.commands import ( File "/volumes/dependencies/lib/python3.6/site-packages/pip/_internal/commands/init.py", line 6, in from pip._internal.commands.completion import CompletionCommand File "/volumes/dependencies/lib/python3.6/site-packages/pip/_internal/commands/completion.py", line 6, in from pip._internal.cli.base_command import Command File "/volumes/dependencies/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 23, in from pip._internal.index import PackageFinder File "/volumes/dependencies/lib/python3.6/site-packages/pip/_internal/index.py", line 31, in from pip._internal.models.link import Link File "/volumes/dependencies/lib/python3.6/site-packages/pip/_internal/models/link.py", line 9, in from pip._internal.wheel import wheel_ext File "/volumes/dependencies/lib/python3.6/site-packages/pip/_internal/wheel.py", line 7, in import compileall File "/usr/local/lib/python3.6/compileall.py", line 20, in from concurrent.futures import ProcessPoolExecutor File "/volumes/dependencies/lib/python3.6/site-packages/concurrent/futures/init.py", line 8, in from concurrent.futures._base import (FIRST_COMPLETED, File "/volumes/dependencies/lib/python3.6/site-packages/concurrent/futures/_base.py", line 381 raise exception_type, self._exception, self._traceback ^ SyntaxError: invalid syntax

Any help on how to remove this?

agronholm commented 5 years ago

Yes – don't install it on Python 3. There are a number of countermeasures in place to prevent this from happening and you're working around all of them.

RafiC92 commented 5 years ago

I dont install it myself, its probably a dependency for one of my packages. any ideas how to avoid installing it?

agronholm commented 5 years ago

Installing futures does not by itself cause any harm on Python 3 because PYTHONPATH favors standard library packages over 3rd party ones. The problem starts when one has overridden PYTHONPATH to prefer outside packages over the standard library. This is what is happening on your system.

If futures is a dependency of one of your dependencies, you can find out which one(s) when using pip to install your package.

RafiC92 commented 5 years ago

I did change my PYTHONPATH. flask seems to be using it.

agronholm commented 5 years ago

Can you post your install log? As you can see here, flask has no direct dependency on futures: https://github.com/pallets/flask/blob/master/setup.py#L36-L41

RafiC92 commented 5 years ago

This is being run inside a container. You can see that I changes the target of the pip install to a different place which I then point to in my PYTHONPATH.

Step 19/23 : RUN pip install --target /volumes/dependencies -r requirements.txt
 ---> Running in fa915a7fed79
Collecting alembic==0.9.5 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/52/ec/4514b7b9a849e9b35ebf60888c9a1cf8262e927e9a9c8f894ffbf5a76ec7/alembic-0.9.5.tar.gz (990kB)
Collecting amqp==2.2.2 (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/88/4a/8c45a882d842678963516ebd9cf584a4ded51af719234c3b696c2e884c60/amqp-2.2.2-py2.py3-none-any.whl (48kB)
Collecting attrs==18.1.0 (from -r requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/41/59/cedf87e91ed541be7957c501a92102f9cc6363c623a7666d69d51c78ac5b/attrs-18.1.0-py2.py3-none-any.whl
Collecting bcrypt==3.1.3 (from -r requirements.txt (line 4))
  Downloading https://files.pythonhosted.org/packages/d6/6e/36288d1ad63d92c220c7c015d046dc0c0f873d8fc349842007064f94d1a4/bcrypt-3.1.3-cp36-cp36m-manylinux1_x86_64.whl (54kB)
Collecting kombu==4.1.0 (from -r requirements.txt (line 5))
  Downloading https://files.pythonhosted.org/packages/62/a4/5d16954803224a1e451713293c2a028614099f5538cf626e1fdd7b438c86/kombu-4.1.0-py2.py3-none-any.whl (181kB)
Collecting billiard==3.5.0.2 (from -r requirements.txt (line 6))
  Downloading https://files.pythonhosted.org/packages/af/56/90fd158263e324742fb0ac82f9e2650dbbc7f93a233d9e254021e5d35880/billiard-3.5.0.2-py3-none-any.whl (102kB)
Collecting cffi==1.11.0 (from -r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/bd/28/7129e4c0bd7f3c19e823654a4463410b439f468b96adfabfa9eedfcdc49a/cffi-1.11.0-cp36-cp36m-manylinux1_x86_64.whl (418kB)
Collecting chardet==3.0.4 (from -r requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting configparser==3.5.0 (from -r requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/7c/69/c2ce7e91c89dc073eb1aa74c0621c3eefbffe8216b3f9af9d3885265c01c/configparser-3.5.0.tar.gz
Collecting coverage==4.4.1 (from -r requirements.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/12/9f/b5030263383b551ae844b2365b9a607a3266c48b0f7cc55fc2a6c852d6e3/coverage-4.4.1-cp36-cp36m-manylinux1_x86_64.whl (196kB)
Collecting cryptography==1.8.2 (from -r requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/81/fb/97d649657687d483753880cf663cf78015e1b8fb495d565feb49f1d56a24/cryptography-1.8.2.tar.gz (423kB)
Collecting Cython==0.26.1 (from -r requirements.txt (line 12))
  Downloading https://files.pythonhosted.org/packages/a0/f6/3927706fef7b6a191b2274a6f74416f47d2fecb8bacd8341c634c02f7b30/Cython-0.26.1-cp36-cp36m-manylinux1_x86_64.whl (3.0MB)
Collecting decorator==4.1.2 (from -r requirements.txt (line 13))
  Downloading https://files.pythonhosted.org/packages/a1/4e/c42167ba5c3192bed633726d39d7896cc55d4fa3ec4a1fb60cd3a53fc4c7/decorator-4.1.2-py2.py3-none-any.whl
Collecting distro==1.0.4 (from -r requirements.txt (line 14))
  Downloading https://files.pythonhosted.org/packages/b5/82/363544dcfa3e7f1478e6839aa929a95ac6e1b0c3b56a277e6a6ef3ace2c9/distro-1.0.4-py2.py3-none-any.whl
Collecting eli5==0.8 (from -r requirements.txt (line 15))
  Downloading https://files.pythonhosted.org/packages/c1/45/808ba1474de5277647f93a364edfce722f0420a93f5692c73701dada81c0/eli5-0.8-py2.py3-none-any.whl (97kB)
Collecting funcsigs==1.0.2 (from -r requirements.txt (line 16))
  Downloading https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
Collecting graphviz==0.8 (from -r requirements.txt (line 17))
  Downloading https://files.pythonhosted.org/packages/9c/f8/a766d4f37c23483b9358fc7d21ee73a4c6ada7361ce88303110fcdfa3ee9/graphviz-0.8-py2.py3-none-any.whl
Collecting html5lib==0.9999999 (from -r requirements.txt (line 18))
  Downloading https://files.pythonhosted.org/packages/ae/ae/bcb60402c60932b32dfaf19bb53870b29eda2cd17551ba5639219fb5ebf9/html5lib-0.9999999.tar.gz (889kB)
Collecting httplib2==0.9.1 (from -r requirements.txt (line 19))
  Downloading https://files.pythonhosted.org/packages/38/9c/cd76fde3a74d36a0317422dee019ae5f73ce27e62d817ca003e018d9f9d8/httplib2-0.9.1.tar.gz (205kB)
Collecting Jinja2==2.9.6 (from -r requirements.txt (line 20))
  Downloading https://files.pythonhosted.org/packages/5e/73/10c45b82a88ed6b7751bd40da31eeefd7b362e07b56a99aa6e56655a0794/Jinja2-2.9.6-py2.py3-none-any.whl (340kB)
Collecting joblib==0.11 (from -r requirements.txt (line 21))
  Downloading https://files.pythonhosted.org/packages/4f/51/870b2ec270fc29c5d89f85353da420606a9cb39fba4747127e7c7d7eb25d/joblib-0.11-py2.py3-none-any.whl (176kB)
Collecting lxml==4.1.1 (from -r requirements.txt (line 22))
  Downloading https://files.pythonhosted.org/packages/81/da/4fabb01d59f3d2b256e75ffee9516ea849e23ddebea8235caad570fe7332/lxml-4.1.1-cp36-cp36m-manylinux1_x86_64.whl (5.6MB)
Collecting Markdown==2.6.9 (from -r requirements.txt (line 23))
  Downloading https://files.pythonhosted.org/packages/29/82/dfe242bcfd9eec0e7bf93a80a8f8d8515a95b980c44f5c0b45606397a423/Markdown-2.6.9.tar.gz (271kB)
Collecting numpy==1.13.1 (from -r requirements.txt (line 24))
  Downloading https://files.pythonhosted.org/packages/59/e2/57c1a6af4ff0ac095dd68b12bf07771813dbf401faf1b97f5fc0cb963647/numpy-1.13.1-cp36-cp36m-manylinux1_x86_64.whl (17.0MB)
Collecting oauthlib==1.0.3 (from -r requirements.txt (line 25))
  Downloading https://files.pythonhosted.org/packages/db/73/2a73deac557e3d2489e4aa14d606e20d6a445cd24a1f8661a6b1d26b41c6/oauthlib-1.0.3.tar.gz (109kB)
Collecting pandas==0.23.4 (from -r requirements.txt (line 26))
  Downloading https://files.pythonhosted.org/packages/e1/d8/feeb346d41f181e83fba45224ab14a8d8af019b48af742e047f3845d8cff/pandas-0.23.4-cp36-cp36m-manylinux1_x86_64.whl (8.9MB)
Collecting python-dateutil==2.6.1 (from -r requirements.txt (line 27))
  Downloading https://files.pythonhosted.org/packages/4b/0d/7ed381ab4fe80b8ebf34411d14f253e1cf3e56e2820ffa1d8844b23859a2/python_dateutil-2.6.1-py2.py3-none-any.whl (194kB)
Collecting python-debian==0.1.31 (from -r requirements.txt (line 28))
  Downloading https://files.pythonhosted.org/packages/54/bf/d59ca16512ee6d740f2272ec8eeab47517bef3043eefbfe47391493cb567/python-debian-0.1.31.tar.gz (45kB)
Collecting pytz==2017.2 (from -r requirements.txt (line 29))
  Downloading https://files.pythonhosted.org/packages/55/62/e7cd0e15b76062d298413f14bb4ec3cd8568a22d274427f9c3c7286969f4/pytz-2017.2-py2.py3-none-any.whl (484kB)
Collecting pyzmq==16.0.2 (from -r requirements.txt (line 30))
  Downloading https://files.pythonhosted.org/packages/83/1d/fe441c9b3bafc84ef5ec6d2a754d784b1b298722fd0fbd4be29822405452/pyzmq-16.0.2-cp36-cp36m-manylinux1_x86_64.whl (3.0MB)
Collecting requests==2.18.4 (from -r requirements.txt (line 31))
  Downloading https://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl (88kB)
Collecting scipy==0.19.1 (from -r requirements.txt (line 32))
  Downloading https://files.pythonhosted.org/packages/0e/46/da8d7166102d29695330f7c0b912955498542988542c0d2ae3ea0389c68d/scipy-0.19.1-cp36-cp36m-manylinux1_x86_64.whl (48.2MB)
Collecting singledispatch==3.4.0.3 (from -r requirements.txt (line 33))
  Downloading https://files.pythonhosted.org/packages/c5/10/369f50bcd4621b263927b0a1519987a04383d4a98fb10438042ad410cf88/singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting six==1.11.0 (from -r requirements.txt (line 34))
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting urllib3==1.22 (from -r requirements.txt (line 35))
  Downloading https://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl (132kB)
Collecting Werkzeug==0.12.2 (from -r requirements.txt (line 36))
  Downloading https://files.pythonhosted.org/packages/97/02/306e0d57fdbf467ec1c763bc1757ec6ba20b1332e0ea7e49111533d71d1c/Werkzeug-0.12.2-py2.py3-none-any.whl (312kB)
Collecting xmljson==0.1.9 (from -r requirements.txt (line 37))
  Downloading https://files.pythonhosted.org/packages/af/ef/11413b59c848a060f6f8a37ef0b95a3b005e5cb5f6fc10f43b4b8a1e21b6/xmljson-0.1.9-py2.py3-none-any.whl
Collecting zope.interface==4.1.3 (from -r requirements.txt (line 38))
  Downloading https://files.pythonhosted.org/packages/9d/81/2509ca3c6f59080123c1a8a97125eb48414022618cec0e64eb1313727bfe/zope.interface-4.1.3.tar.gz (141kB)
Collecting fastparquet==0.1.4 (from -r requirements.txt (line 39))
  Downloading https://files.pythonhosted.org/packages/9b/d4/28185807a506b7b97f87489a39ac60cb74769fcc3f4cc4cf910e51b122cc/fastparquet-0.1.4.tar.gz (135kB)
Collecting passlib==1.7.1 (from -r requirements.txt (line 40))
  Downloading https://files.pythonhosted.org/packages/ee/a7/d6d238d927df355d4e4e000670342ca4705a72f0bf694027cf67d9bcf5af/passlib-1.7.1-py2.py3-none-any.whl (498kB)
Collecting xlrd==1.1.0 (from -r requirements.txt (line 41))
  Downloading https://files.pythonhosted.org/packages/07/e6/e95c4eec6221bfd8528bcc4ea252a850bffcc4be88ebc367e23a1a84b0bb/xlrd-1.1.0-py2.py3-none-any.whl (108kB)
Collecting pyodbc==4.0.22 (from -r requirements.txt (line 42))
  Downloading https://files.pythonhosted.org/packages/a0/14/d23278740dd64aa47eea396c4caf5a1b464dacaf339dca21b9afbc973e4b/pyodbc-4.0.22.tar.gz (214kB)
Collecting cx_oracle==6.1 (from -r requirements.txt (line 43))
  Downloading https://files.pythonhosted.org/packages/30/13/ba12377987b5fc7278c575d510fecfe712b545ec6bb3426d9b179458817c/cx_Oracle-6.1-cp36-cp36m-manylinux1_x86_64.whl (527kB)
Collecting minio==3.0.4 (from -r requirements.txt (line 44))
  Downloading https://files.pythonhosted.org/packages/36/ef/4246b76ee7f3d0a8efd2e876bf1b7eeeb3ca471ad4149f755683b670808f/minio-3.0.4-py2.py3-none-any.whl (54kB)
Collecting rtree==0.8.3 (from -r requirements.txt (line 45))
  Downloading https://files.pythonhosted.org/packages/33/0d/0bcb0fdd759570e85697189f675fa462131e5636482f2832288bbe4bb6f7/Rtree-0.8.3-py3-none-any.whl
Collecting eventlet==0.22.1 (from -r requirements.txt (line 46))
  Downloading https://files.pythonhosted.org/packages/61/1a/d1ff6e4f1dc652dfdda4a674f807c842eaa15f1ed9b76938a3be313bbac9/eventlet-0.22.1-py2.py3-none-any.whl (409kB)
Collecting pyhive[hive] (from -r requirements.txt (line 47))
  Downloading https://files.pythonhosted.org/packages/4e/26/de91125c0d9e8947d48f387f4d1f2e7a22aa92a30771ad02f63a5653361b/PyHive-0.6.1.tar.gz (41kB)
Collecting sortedcontainers==2.0.3 (from -r requirements.txt (line 48))
  Downloading https://files.pythonhosted.org/packages/98/01/a5242e49249ad29e9e26980e8f8db0b88ecce75ed9e9c4ff994e8f9d0614/sortedcontainers-2.0.3-py2.py3-none-any.whl
Collecting jsonschema==2.6.0 (from -r requirements.txt (line 49))
  Downloading https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting geocoder==1.38.1 (from -r requirements.txt (line 50))
  Downloading https://files.pythonhosted.org/packages/4f/6b/13166c909ad2f2d76b929a4227c952630ebaf0d729f6317eb09cbceccbab/geocoder-1.38.1-py2.py3-none-any.whl (98kB)
Collecting pymysql==0.9.2 (from -r requirements.txt (line 51))
  Downloading https://files.pythonhosted.org/packages/a7/7d/682c4a7da195a678047c8f1c51bb7682aaedee1dca7547883c3993ca9282/PyMySQL-0.9.2-py2.py3-none-any.whl (47kB)
Collecting PyDictionary==1.5.2 (from -r requirements.txt (line 52))
  Downloading https://files.pythonhosted.org/packages/bf/b3/3014f6ee372f93d7bc1c743b020d0b223d7e792f2aa4f117466991832ba1/PyDictionary-1.5.2.zip
Collecting Faker==0.9.0 (from -r requirements.txt (line 53))
  Downloading https://files.pythonhosted.org/packages/8d/76/d9e1dde824f059c4c7c62229ac4818d774d451822d84939ffc3376930f0b/Faker-0.9.0-py2.py3-none-any.whl (747kB)
Collecting gunicorn==19.9.0 (from -r requirements.txt (line 54))
  Downloading https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl (112kB)
Collecting beautifulsoup4==4.4.1 (from -r requirements.txt (line 55))
  Downloading https://files.pythonhosted.org/packages/cf/69/9abfdab06490af5e0233bcebe3f617ec128486d94ea987ad4f77b9332eef/beautifulsoup4-4.4.1-py3-none-any.whl (81kB)
Collecting boto==2.48.0 (from -r requirements.txt (line 56))
  Downloading https://files.pythonhosted.org/packages/bd/b7/a88a67002b1185ed9a8e8a6ef15266728c2361fcb4f1d02ea331e4c7741d/boto-2.48.0-py2.py3-none-any.whl (1.4MB)
Collecting celery==4.1.0 (from -r requirements.txt (line 57))
  Downloading https://files.pythonhosted.org/packages/22/9b/88ef5cc7edf5d43215f383ae0a2b1cdeb33f5f07886386c7e4691b2eba0c/celery-4.1.0-py2.py3-none-any.whl (400kB)
Collecting Flask==0.12.2 (from -r requirements.txt (line 58))
  Downloading https://files.pythonhosted.org/packages/77/32/e3597cb19ffffe724ad4bf0beca4153419918e7fa4ba6a34b04ee4da3371/Flask-0.12.2-py2.py3-none-any.whl (83kB)
Collecting Flask-Bcrypt==0.7.1 (from -r requirements.txt (line 59))
  Downloading https://files.pythonhosted.org/packages/1d/c0/6d4c04d007d72b355de24e7a223978d1a95732245f9e9becbf45d3024bf8/Flask-Bcrypt-0.7.1.tar.gz
Collecting Flask-Bootstrap==3.3.7.1 (from -r requirements.txt (line 60))
  Downloading https://files.pythonhosted.org/packages/88/53/958ce7c2aa26280b7fd7f3eecbf13053f1302ee2acb1db58ef32e1c23c2a/Flask-Bootstrap-3.3.7.1.tar.gz (456kB)
Collecting Flask-Cors==3.0.3 (from -r requirements.txt (line 61))
  Downloading https://files.pythonhosted.org/packages/83/a7/c7243ffd096a491013956c9ee71e2ed0b7d14979fafe89986ca2d30fc6f7/Flask_Cors-3.0.3-py2.py3-none-any.whl
Collecting Flask-DebugToolbar==0.10.1 (from -r requirements.txt (line 62))
  Downloading https://files.pythonhosted.org/packages/c9/3c/309073df635148f3536a5ed67940fb9b51ca67c1d6d2debafb81533201f3/Flask_DebugToolbar-0.10.1-py2.py3-none-any.whl (326kB)
Collecting Flask-Login==0.4.1 (from -r requirements.txt (line 63))
  Downloading https://files.pythonhosted.org/packages/c1/ff/bd9a4d2d81bf0c07d9e53e8cd3d675c56553719bbefd372df69bf1b3c1e4/Flask-Login-0.4.1.tar.gz
Collecting Flask-Redis==0.3.0 (from -r requirements.txt (line 64))
  Downloading https://files.pythonhosted.org/packages/8b/59/e29f607475ca6ae21e30ff5e6ca0f2fd58701879a31ffeff7471ea3865f6/Flask_Redis-0.3.0-py2.py3-none-any.whl
Collecting Flask-RESTful==0.3.6 (from -r requirements.txt (line 65))
  Downloading https://files.pythonhosted.org/packages/47/08/89cf8594735392cd71752f7cf159fa63765eac3e11b0da4324cdfeaea137/Flask_RESTful-0.3.6-py2.py3-none-any.whl
Collecting Flask-Script==2.0.6 (from -r requirements.txt (line 66))
  Downloading https://files.pythonhosted.org/packages/00/a4/cd587b2b19f043b65bf33ceda2f6e4e6cdbd0ce18d01a52b9559781b1da6/Flask-Script-2.0.6.tar.gz (43kB)
Collecting Flask-SQLAlchemy==2.3.2 (from -r requirements.txt (line 67))
  Downloading https://files.pythonhosted.org/packages/a1/44/294fb7f6bf49cc7224417cd0637018db9fee0729b4fe166e43e2bbb1f1c8/Flask_SQLAlchemy-2.3.2-py2.py3-none-any.whl
Collecting Flask-Testing==0.6.2 (from -r requirements.txt (line 68))
  Downloading https://files.pythonhosted.org/packages/45/b6/4915dc083a4261309e4d7107a9af25712b2a045b94674c9be044ce5038c1/Flask-Testing-0.6.2.tar.gz (129kB)
Collecting pandasql==0.7.3 (from -r requirements.txt (line 69))
  Downloading https://files.pythonhosted.org/packages/6b/c4/ee4096ffa2eeeca0c749b26f0371bd26aa5c8b611c43de99a4f86d3de0a7/pandasql-0.7.3.tar.gz
Collecting redis==2.10.6 (from -r requirements.txt (line 70))
  Downloading https://files.pythonhosted.org/packages/3b/f6/7a76333cf0b9251ecf49efff635015171843d9b977e4ffcf59f9c4428052/redis-2.10.6-py2.py3-none-any.whl (64kB)
Collecting scikit-learn==0.19.0 (from -r requirements.txt (line 71))
  Downloading https://files.pythonhosted.org/packages/a4/b3/209652a5d60ce4a2a8a35ad893d7565bbb0f87ce043264ba5c9e7de304cd/scikit_learn-0.19.0-cp36-cp36m-manylinux1_x86_64.whl (12.4MB)
Collecting sklearn==0.0 (from -r requirements.txt (line 73))
  Downloading https://files.pythonhosted.org/packages/1e/7a/dbb3be0ce9bd5c8b7e3d87328e79063f8b263b2b1bfa4774cb1147bfcd3f/sklearn-0.0.tar.gz
Collecting SQLAlchemy==1.2.12 (from -r requirements.txt (line 74))
  Downloading https://files.pythonhosted.org/packages/25/c9/b0552098cee325425a61efdf380c51b5c721e459081c85bbb860f501c091/SQLAlchemy-1.2.12.tar.gz (5.6MB)
Collecting tornado==4.5.2 (from -r requirements.txt (line 75))
  Downloading https://files.pythonhosted.org/packages/fa/14/52e2072197dd0e63589e875ebf5984c91a027121262aa08f71a49b958359/tornado-4.5.2.tar.gz (483kB)
Collecting flask-socketio==2.9.3 (from -r requirements.txt (line 76))
  Downloading https://files.pythonhosted.org/packages/2f/a1/e000535dbfc64602bcceea0d31474fa3adf0430b67c55c3fa24f33dba9ca/Flask_SocketIO-2.9.3-py2.py3-none-any.whl
Collecting bokeh==0.12.15 (from -r requirements.txt (line 77))
  Downloading https://files.pythonhosted.org/packages/ad/67/82f17df7d1f4b9e81c9263c1a1dc3897c43cf5a9461872f9054517331f77/bokeh-0.12.15.tar.gz (13.6MB)
Collecting Mako (from alembic==0.9.5->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/eb/f3/67579bb486517c0d49547f9697e36582cd19dafb5df9e687ed8e22de57fa/Mako-1.0.7.tar.gz (564kB)
Collecting python-editor>=0.3 (from alembic==0.9.5->-r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/65/1e/adf6e000ea5dc909aa420352d6ba37f16434c8a3c2fa030445411a1ed545/python-editor-1.0.3.tar.gz
Collecting vine>=1.1.3 (from amqp==2.2.2->-r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/10/50/5b1ebe42843c19f35edb15022ecae339fbec6db5b241a7a13c924dabf2a3/vine-1.1.4-py2.py3-none-any.whl
Collecting pycparser (from cffi==1.11.0->-r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
Collecting idna>=2.1 (from cryptography==1.8.2->-r requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB)
Collecting asn1crypto>=0.21.0 (from cryptography==1.8.2->-r requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl (101kB)
Collecting packaging (from cryptography==1.8.2->-r requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/89/d1/92e6df2e503a69df9faab187c684585f0136662c12bb1f36901d426f3fab/packaging-18.0-py2.py3-none-any.whl
Collecting setuptools>=11.3 (from cryptography==1.8.2->-r requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/e7/16/da8cb8046149d50940c6110310983abb359bbb8cbc3539e6bef95c29428a/setuptools-40.6.2-py2.py3-none-any.whl (573kB)
Collecting typing (from eli5==0.8->-r requirements.txt (line 15))
  Downloading https://files.pythonhosted.org/packages/4a/bd/eee1157fc2d8514970b345d69cb9975dcd1e42cd7e61146ed841f6e68309/typing-3.6.6-py3-none-any.whl
Collecting tabulate>=0.7.7 (from eli5==0.8->-r requirements.txt (line 15))
  Downloading https://files.pythonhosted.org/packages/12/c2/11d6845db5edf1295bc08b2f488cf5937806586afe42936c3f34c097ebdc/tabulate-0.8.2.tar.gz (45kB)
Collecting MarkupSafe>=0.23 (from Jinja2==2.9.6->-r requirements.txt (line 20))
  Downloading https://files.pythonhosted.org/packages/08/04/f2191b50fb7f0712f03f064b71d8b4605190f2178ba02e975a87f7b89a0d/MarkupSafe-1.1.0-cp36-cp36m-manylinux1_x86_64.whl
Collecting certifi>=2017.4.17 (from requests==2.18.4->-r requirements.txt (line 31))
  Downloading https://files.pythonhosted.org/packages/56/9d/1d02dd80bc4cd955f98980f28c5ee2200e1209292d5f9e9cc8d030d18655/certifi-2018.10.15-py2.py3-none-any.whl (146kB)
Collecting numba>=0.28 (from fastparquet==0.1.4->-r requirements.txt (line 39))
  Downloading https://files.pythonhosted.org/packages/42/45/8d5fc45e5f760ac65906ba48dec98e99e7920c96783ac7248c5e31c9464e/numba-0.40.1-cp36-cp36m-manylinux1_x86_64.whl (3.2MB)
Collecting thrift>=0.11.0 (from fastparquet==0.1.4->-r requirements.txt (line 39))
  Downloading https://files.pythonhosted.org/packages/c6/b4/510617906f8e0c5660e7d96fbc5585113f83ad547a3989b80297ac72a74c/thrift-0.11.0.tar.gz (52kB)
Collecting greenlet>=0.3 (from eventlet==0.22.1->-r requirements.txt (line 46))
  Downloading https://files.pythonhosted.org/packages/bf/45/142141aa47e01a5779f0fa5a53b81f8379ce8f2b1cd13df7d2f1d751ae42/greenlet-0.4.15-cp36-cp36m-manylinux1_x86_64.whl (41kB)
Collecting future (from pyhive[hive]->-r requirements.txt (line 47))
  Downloading https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz (829kB)
Collecting sasl>=0.2.1 (from pyhive[hive]->-r requirements.txt (line 47))
  Downloading https://files.pythonhosted.org/packages/8e/2c/45dae93d666aea8492678499e0999269b4e55f1829b1e4de5b8204706ad9/sasl-0.2.1.tar.gz
Collecting thrift_sasl>=0.1.0 (from pyhive[hive]->-r requirements.txt (line 47))
  Downloading https://files.pythonhosted.org/packages/50/fe/89cbc910809e3757c762f56ee190ca39e0f28b7ea451835232c0c988d706/thrift_sasl-0.3.0.tar.gz
Collecting ratelim (from geocoder==1.38.1->-r requirements.txt (line 50))
  Downloading https://files.pythonhosted.org/packages/f2/98/7e6d147fd16a10a5f821db6e25f192265d6ecca3d82957a4fdd592cad49c/ratelim-0.1.6-py2.py3-none-any.whl
Collecting click (from geocoder==1.38.1->-r requirements.txt (line 50))
  Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
Collecting goslate (from PyDictionary==1.5.2->-r requirements.txt (line 52))
  Downloading https://files.pythonhosted.org/packages/39/0b/50af938a1c3d4f4c595b6a22d37af11ebe666246b05a1a97573e8c8944e5/goslate-1.5.1.tar.gz
Collecting text-unidecode==1.2 (from Faker==0.9.0->-r requirements.txt (line 53))
  Downloading https://files.pythonhosted.org/packages/79/42/d717cc2b4520fb09e45b344b1b0b4e81aa672001dd128c180fabc655c341/text_unidecode-1.2-py2.py3-none-any.whl (77kB)
Collecting itsdangerous>=0.21 (from Flask==0.12.2->-r requirements.txt (line 58))
  Downloading https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
Collecting dominate (from Flask-Bootstrap==3.3.7.1->-r requirements.txt (line 60))
  Downloading https://files.pythonhosted.org/packages/05/9b/35849b04d3126d907c294f5bbd33c870d2753f5cfb008645b78419d99e94/dominate-2.3.4-py2.py3-none-any.whl
Collecting visitor (from Flask-Bootstrap==3.3.7.1->-r requirements.txt (line 60))
  Downloading https://files.pythonhosted.org/packages/d7/58/785fcd6de4210049da5fafe62301b197f044f3835393594be368547142b0/visitor-0.1.3.tar.gz
Collecting Blinker (from Flask-DebugToolbar==0.10.1->-r requirements.txt (line 62))
  Downloading https://files.pythonhosted.org/packages/1b/51/e2a9f3b757eb802f61dc1f2b09c8c99f6eb01cf06416c0671253536517b6/blinker-1.4.tar.gz (111kB)
Collecting aniso8601>=0.82 (from Flask-RESTful==0.3.6->-r requirements.txt (line 65))
  Downloading https://files.pythonhosted.org/packages/69/9b/f2ae61c0c90181b62e15ca09d283d2aab42c7c2c3bbd7c548dd0cfd8bf3e/aniso8601-4.0.1-py2.py3-none-any.whl
Collecting python-socketio>=1.6.1 (from flask-socketio==2.9.3->-r requirements.txt (line 76))
  Downloading https://files.pythonhosted.org/packages/45/c5/29e84a694fadea5864ef9530fe815512764497205b4880be32efefbb607f/python_socketio-2.0.0-py2.py3-none-any.whl
Collecting PyYAML>=3.10 (from bokeh==0.12.15->-r requirements.txt (line 77))
  Downloading https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz (270kB)
Collecting pyparsing>=2.0.2 (from packaging->cryptography==1.8.2->-r requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/71/e8/6777f6624681c8b9701a8a0a5654f3eb56919a01a78e12bf3c73f5a3c714/pyparsing-2.3.0-py2.py3-none-any.whl (59kB)
Collecting llvmlite>=0.25.0dev0 (from numba>=0.28->fastparquet==0.1.4->-r requirements.txt (line 39))
  Downloading https://files.pythonhosted.org/packages/34/fb/f9c2e9e0ef2b54c52f0b727cf6af75b68c3d7ddb6d88c8d557b1b16bc1ab/llvmlite-0.25.0-cp36-cp36m-manylinux1_x86_64.whl (16.1MB)
Collecting futures (from goslate->PyDictionary==1.5.2->-r requirements.txt (line 52))
  Downloading https://files.pythonhosted.org/packages/cc/26/b61e3a4eb50653e8a7339d84eeaa46d1e93b92951978873c220ae64d0733/futures-3.1.1.tar.gz
Collecting python-engineio>=2.2.0 (from python-socketio>=1.6.1->flask-socketio==2.9.3->-r requirements.txt (line 76))
  Downloading https://files.pythonhosted.org/packages/03/6e/44dea849953c21004e288f64d784822c18df25aa043855d87cc1f63c4b41/python_engineio-2.3.2-py2.py3-none-any.whl
Building wheels for collected packages: alembic, configparser, cryptography, html5lib, httplib2, Markdown, oauthlib, python-debian, zope.interface, fastparquet, pyodbc, pyhive, PyDictionary, Flask-Bcrypt, Flask-Bootstrap, Flask-Login, Flask-Script, Flask-Testing, pandasql, sklearn, SQLAlchemy, tornado, bokeh, Mako, python-editor, pycparser, tabulate, thrift, future, sasl, thrift-sasl, goslate, visitor, Blinker, PyYAML, futures
  Running setup.py bdist_wheel for alembic: started
  Running setup.py bdist_wheel for alembic: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/59/33/26/f2763e19e414c59d8efb82541a0fe45f2eaad1adf4900deb23
  Running setup.py bdist_wheel for configparser: started
  Running setup.py bdist_wheel for configparser: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/a3/61/79/424ef897a2f3b14684a7de5d89e8600b460b89663e6ce9d17c
  Running setup.py bdist_wheel for cryptography: started
  Running setup.py bdist_wheel for cryptography: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/6f/8d/a4/b8be51f50fc4b097c8f07c40b93c691ad107403f561897989e
  Running setup.py bdist_wheel for html5lib: started
  Running setup.py bdist_wheel for html5lib: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/50/ae/f9/d2b189788efcf61d1ee0e36045476735c838898eef1cad6e29
  Running setup.py bdist_wheel for httplib2: started
  Running setup.py bdist_wheel for httplib2: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/49/97/6e/e26b15a6262efbc29a2e793009359326ac1587a84cdd7acf74
  Running setup.py bdist_wheel for Markdown: started
  Running setup.py bdist_wheel for Markdown: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/00/ae/26/8b2d3981872667332194cef01475665c9a01c05fbee1a43c8d
  Running setup.py bdist_wheel for oauthlib: started
  Running setup.py bdist_wheel for oauthlib: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/82/77/d9/1e4f684040eefdf5b973eacc76957e7bdc4f2eccb27a709d86
  Running setup.py bdist_wheel for python-debian: started
  Running setup.py bdist_wheel for python-debian: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/8c/ce/58/b90a617ad8bf47eace59dc14eb0c2d6778b7f2104bb045233e
  Running setup.py bdist_wheel for zope.interface: started
  Running setup.py bdist_wheel for zope.interface: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/50/47/97/5320889fddaabaafabfa56928927781486a3153402f4ad1f2e
  Running setup.py bdist_wheel for fastparquet: started
  Running setup.py bdist_wheel for fastparquet: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/33/b1/ef/2b22bd9726c926ecac20ecd01296335d111979d8c0a901ce7f
  Running setup.py bdist_wheel for pyodbc: started
  Running setup.py bdist_wheel for pyodbc: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/01/b2/3a/1258e445b74b231666c5892e287a8c84e931f3a62995af189e
  Running setup.py bdist_wheel for pyhive: started
  Running setup.py bdist_wheel for pyhive: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/00/61/fb/77a0e77deb4c900276f689e62628a5ca7ba9df600f9ad7ba6a
  Running setup.py bdist_wheel for PyDictionary: started
  Running setup.py bdist_wheel for PyDictionary: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/8f/55/4a/14dc8470ed285bf2463f958022322e8de7c46c2555c45e3007
  Running setup.py bdist_wheel for Flask-Bcrypt: started
  Running setup.py bdist_wheel for Flask-Bcrypt: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/39/14/f8/3be6cc331373428d6864911554a2a3d9af0e84acd4caa401d9
  Running setup.py bdist_wheel for Flask-Bootstrap: started
  Running setup.py bdist_wheel for Flask-Bootstrap: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/e8/b9/93/ef6ac3b8ead2d72cbcc042b9d58b613aaf47e533b9dc5b5999
  Running setup.py bdist_wheel for Flask-Login: started
  Running setup.py bdist_wheel for Flask-Login: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/39/10/74/d68194e28d5f7a83de5f66e5b2deff5ccbb424fe45e6b0e927
  Running setup.py bdist_wheel for Flask-Script: started
  Running setup.py bdist_wheel for Flask-Script: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/1c/17/70/4598e6dba4bec58c1b59552c6409272aea31978ab8159f11a1
  Running setup.py bdist_wheel for Flask-Testing: started
  Running setup.py bdist_wheel for Flask-Testing: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/33/80/be/fb2a4c282447cad24e38f147046e741af9533587923c25a134
  Running setup.py bdist_wheel for pandasql: started
  Running setup.py bdist_wheel for pandasql: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/53/6c/18/b87a2e5fa8a82e9c026311de56210b8d1c01846e18a9607fc9
  Running setup.py bdist_wheel for sklearn: started
  Running setup.py bdist_wheel for sklearn: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/76/03/bb/589d421d27431bcd2c6da284d5f2286c8e3b2ea3cf1594c074
  Running setup.py bdist_wheel for SQLAlchemy: started
  Running setup.py bdist_wheel for SQLAlchemy: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/ed/bd/2e/d3874a6e97b8cc71e7e177c8d065ead30f67f380c4d9bbadaa
  Running setup.py bdist_wheel for tornado: started
  Running setup.py bdist_wheel for tornado: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/a5/59/09/79aad6522a5811b546e94d55c1535702dcad35880a09b03471
  Running setup.py bdist_wheel for bokeh: started
  Running setup.py bdist_wheel for bokeh: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/0a/56/87/e8aaa58b05288bb4004cb11db4d502134552c996c0d84c0704
  Running setup.py bdist_wheel for Mako: started
  Running setup.py bdist_wheel for Mako: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/15/35/25/dbcb848832ccb1a4b4ad23f529badfd3bce9bf88017f7ca510
  Running setup.py bdist_wheel for python-editor: started
  Running setup.py bdist_wheel for python-editor: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/36/e0/98/ba386b125a00ea9dd52e2c16aa2ec0adbbd639b84bfe2e001d
  Running setup.py bdist_wheel for pycparser: started
  Running setup.py bdist_wheel for pycparser: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
  Running setup.py bdist_wheel for tabulate: started
  Running setup.py bdist_wheel for tabulate: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/2a/85/33/2f6da85d5f10614cbe5a625eab3b3aebfdf43e7b857f25f829
  Running setup.py bdist_wheel for thrift: started
  Running setup.py bdist_wheel for thrift: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/be/36/81/0f93ba89a1cb7887c91937948519840a72c0ffdd57cac0ae8f
  Running setup.py bdist_wheel for future: started
  Running setup.py bdist_wheel for future: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/0c/61/d2/d6b7317325828fbb39ee6ad559dbe4664d0896da4721bf379e
  Running setup.py bdist_wheel for sasl: started
  Running setup.py bdist_wheel for sasl: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/56/20/21/ff481fd0f4ae09d5d94c76d089f550204580b1703e44f27dd5
  Running setup.py bdist_wheel for thrift-sasl: started
  Running setup.py bdist_wheel for thrift-sasl: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/c8/3a/34/1d82df3d652788fc211c245d51dde857a58e603695ea41d93d
  Running setup.py bdist_wheel for goslate: started
  Running setup.py bdist_wheel for goslate: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/4f/7f/28/6f52271012a7649b54b1a7adaae329b4246bbbf9d1e4f6e51a
  Running setup.py bdist_wheel for visitor: started
  Running setup.py bdist_wheel for visitor: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/68/b0/a2/cc8c7cf94ca3d1088a7d2e27936c1e0da170e05f560973e8dd
  Running setup.py bdist_wheel for Blinker: started
  Running setup.py bdist_wheel for Blinker: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/92/a0/00/8690a57883956a301d91cf4ec999cc0b258b01e3f548f86e89
  Running setup.py bdist_wheel for PyYAML: started
  Running setup.py bdist_wheel for PyYAML: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/ad/da/0c/74eb680767247273e2cf2723482cb9c924fe70af57c334513f
  Running setup.py bdist_wheel for futures: started
  Running setup.py bdist_wheel for futures: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/f3/f9/c7/4fbf1faa6038faf183f6e3ea61f17a5f7eea5ab9a1dd7753fd
Successfully built alembic configparser cryptography html5lib httplib2 Markdown oauthlib python-debian zope.interface fastparquet pyodbc pyhive PyDictionary Flask-Bcrypt Flask-Bootstrap Flask-Login Flask-Script Flask-Testing pandasql sklearn SQLAlchemy tornado bokeh Mako python-editor pycparser tabulate thrift future sasl thrift-sasl goslate visitor Blinker PyYAML futures
requests 2.18.4 has requirement idna<2.7,>=2.5, but you'll have idna 2.7 which is incompatible.
Installing collected packages: SQLAlchemy, MarkupSafe, Mako, python-editor, six, python-dateutil, alembic, vine, amqp, attrs, pycparser, cffi, bcrypt, kombu, billiard, chardet, configparser, coverage, idna, asn1crypto, pyparsing, packaging, setuptools, cryptography, Cython, decorator, distro, numpy, scipy, typing, tabulate, graphviz, Jinja2, singledispatch, scikit-learn, eli5, funcsigs, html5lib, httplib2, joblib, lxml, Markdown, oauthlib, pytz, pandas, python-debian, pyzmq, certifi, urllib3, requests, Werkzeug, xmljson, zope.interface, llvmlite, numba, thrift, fastparquet, passlib, xlrd, pyodbc, cx-oracle, minio, rtree, greenlet, eventlet, future, sasl, thrift-sasl, pyhive, sortedcontainers, jsonschema, ratelim, click, geocoder, pymysql, beautifulsoup4, futures, goslate, PyDictionary, text-unidecode, Faker, gunicorn, boto, celery, itsdangerous, Flask, Flask-Bcrypt, dominate, visitor, Flask-Bootstrap, Flask-Cors, Blinker, Flask-DebugToolbar, Flask-Login, redis, Flask-Redis, aniso8601, Flask-RESTful, Flask-Script, Flask-SQLAlchemy, Flask-Testing, pandasql, sklearn, tornado, python-engineio, python-socketio, flask-socketio, PyYAML, bokeh
Successfully installed Blinker-1.4 Cython-0.26.1 Faker-0.9.0 Flask-0.12.2 Flask-Bcrypt-0.7.1 Flask-Bootstrap-3.3.7.1 Flask-Cors-3.0.3 Flask-DebugToolbar-0.10.1 Flask-Login-0.4.1 Flask-RESTful-0.3.6 Flask-Redis-0.3.0 Flask-SQLAlchemy-2.3.2 Flask-Script-2.0.6 Flask-Testing-0.6.2 Jinja2-2.9.6 Mako-1.0.7 Markdown-2.6.9 MarkupSafe-1.1.0 PyDictionary-1.5.2 PyYAML-3.13 SQLAlchemy-1.2.12 Werkzeug-0.12.2 alembic-0.9.5 amqp-2.2.2 aniso8601-4.0.1 asn1crypto-0.24.0 attrs-18.1.0 bcrypt-3.1.3 beautifulsoup4-4.4.1 billiard-3.5.0.2 bokeh-0.12.15 boto-2.48.0 celery-4.1.0 certifi-2018.10.15 cffi-1.11.0 chardet-3.0.4 click-7.0 configparser-3.5.0 coverage-4.4.1 cryptography-1.8.2 cx-oracle-6.1 decorator-4.1.2 distro-1.0.4 dominate-2.3.4 eli5-0.8 eventlet-0.22.1 fastparquet-0.1.4 flask-socketio-2.9.3 funcsigs-1.0.2 future-0.17.1 futures-3.1.1 geocoder-1.38.1 goslate-1.5.1 graphviz-0.8 greenlet-0.4.15 gunicorn-19.9.0 html5lib-0.9999999 httplib2-0.9.1 idna-2.7 itsdangerous-1.1.0 joblib-0.11 jsonschema-2.6.0 kombu-4.1.0 llvmlite-0.25.0 lxml-4.1.1 minio-3.0.4 numba-0.40.1 numpy-1.13.1 oauthlib-1.0.3 packaging-18.0 pandas-0.23.4 pandasql-0.7.3 passlib-1.7.1 pycparser-2.19 pyhive-0.6.1 pymysql-0.9.2 pyodbc-4.0.22 pyparsing-2.3.0 python-dateutil-2.6.1 python-debian-0.1.31 python-editor-1.0.3 python-engineio-2.3.2 python-socketio-2.0.0 pytz-2017.2 pyzmq-16.0.2 ratelim-0.1.6 redis-2.10.6 requests-2.18.4 rtree-0.8.3 sasl-0.2.1 scikit-learn-0.19.0 scipy-0.19.1 setuptools-40.6.2 singledispatch-3.4.0.3 six-1.11.0 sklearn-0.0 sortedcontainers-2.0.3 tabulate-0.8.2 text-unidecode-1.2 thrift-0.11.0 thrift-sasl-0.3.0 tornado-4.5.2 typing-3.6.6 urllib3-1.22 vine-1.1.4 visitor-0.1.3 xlrd-1.1.0 xmljson-0.1.9 zope.interface-4.1.3
Removing intermediate container fa915a7fed79

I see that flask is not using it as a dependency but for some reason, after logging into the container and running from flask import Flask it throws the invalid syntax error that I put above. If I try to import sqlalchemy for example, this doesn't happen.

EDIT: even running another pip install <somepackage> results in the error (invalid syntax)

RafiC92 commented 5 years ago

OK, I managed to make this work by deleting the concurent directory in that directory and copying the native python cocurrent directory instead. But I still dont know how I would do this dynamically inside the container every time I run it. I would like to avoid messy bash scripts. If you have any ideas, please share. Thanks :)

agronholm commented 5 years ago

The culprit seems to be here: https://bitbucket.org/zhuoqiang/goslate/src/a753c6ffc9e2f606e2c9ea0d62e956b6826e2a7e/setup.py?at=default&fileviewer=file-view-default#setup.py-31 (unconditional requirement).