agermanidis / thingscoop

Search and filter videos based on objects that appear in them using convolutional neural networks
MIT License
358 stars 61 forks source link

Error when running pip install thingscoop #4

Open jafetmorales opened 6 years ago

jafetmorales commented 6 years ago

This is the output when running pip install thingscoop

Collecting thingscoop
  Downloading https://files.pythonhosted.org/packages/f3/53/33d5edb3c029aa2b8e599dcefc6ab7a8bad7b21c982159b2abdd4633ce92/thingscoop-0.2.tar.gz
Collecting pyPEG2>=2.15.1 (from thingscoop)
  Downloading https://files.pythonhosted.org/packages/f9/bd/10398e2c2d2070cc8a9c7153abfbd4ddb2895a2c52a32722ab8689e0cc7d/pyPEG2-2.15.2.tar.gz (40kB)
Requirement already satisfied: requests>=2.7.0 in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from thingscoop) (2.18.4)
Requirement already satisfied: moviepy>=0.2.2.11 in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from thingscoop) (0.2.3.5)
Collecting docopt>=0.6.2 (from thingscoop)
  Downloading https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz
Requirement already satisfied: progressbar>=2.3 in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from thingscoop) (2.5)
Requirement already satisfied: numpy>=1.9.2 in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from thingscoop) (1.15.0)
Collecting pattern>=2.6 (from thingscoop)
  Downloading https://files.pythonhosted.org/packages/1e/07/b0e61b6c818ed4b6145fe01d1c341223aa6cfbc3928538ad1f2b890924a3/Pattern-3.6.0.tar.gz (22.2MB)
Requirement already satisfied: termcolor>=1.1.0 in c:\users\jmorales\appdata\roaming\python\python35\site-packages (from thingscoop) (1.1.0)
Collecting urllib3<1.23,>=1.21.1 (from requests>=2.7.0->thingscoop)
  Using cached https://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from requests>=2.7.0->thingscoop) (3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\jmorales\appdata\roaming\python\python35\site-packages (from requests>=2.7.0->thingscoop) (2018.4.16)
Collecting idna<2.7,>=2.5 (from requests>=2.7.0->thingscoop)
  Using cached https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl
Requirement already satisfied: tqdm<5.0,>=4.11.2 in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from moviepy>=0.2.2.11->thingscoop) (4.23.4)
Requirement already satisfied: decorator<5.0,>=4.0.2 in c:\users\jmorales\appdata\roaming\python\python35\site-packages (from moviepy>=0.2.2.11->thingscoop) (4.3.0)
Requirement already satisfied: imageio<3.0,>=2.1.2 in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from moviepy>=0.2.2.11->thingscoop) (2.2.0)
Requirement already satisfied: future in c:\users\jmorales\appdata\roaming\python\python35\site-packages (from pattern>=2.6->thingscoop) (0.16.0)
Collecting backports.csv (from pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/71/f7/5db9136de67021a6dce4eefbe50d46aa043e59ebb11c83d4ecfeb47b686e/backports.csv-1.0.6-py2.py3-none-any.whl
Collecting mysqlclient (from pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/ec/fd/83329b9d3e14f7344d1cb31f128e6dbba70c5975c9e57896815dbb1988ad/mysqlclient-1.3.13.tar.gz (90kB)
Requirement already satisfied: beautifulsoup4 in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from pattern>=2.6->thingscoop) (4.3.2)
Requirement already satisfied: lxml in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from pattern>=2.6->thingscoop) (4.0.0)
Collecting feedparser (from pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/91/d8/7d37fec71ff7c9dbcdd80d2b48bcdd86d6af502156fc93846fb0102cb2c4/feedparser-5.2.1.tar.bz2 (192kB)
Collecting pdfminer.six (from pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/a5/4c/dfc462296ff431aa072c952560ee8e43304523b5e7be82e220fae72dc61c/pdfminer.six-20170720.tar.gz (12.0MB)
Requirement already satisfied: scipy in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from pattern>=2.6->thingscoop) (1.0.0)
Requirement already satisfied: nltk in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from pattern>=2.6->thingscoop) (3.2.5)
Collecting python-docx (from pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/00/ed/dc8d859eb32980ccf0e5a9b1ab3311415baf55de208777d85826a7fb0b65/python-docx-0.8.7.tar.gz (5.4MB)
Collecting cherrypy (from pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/0c/20/e239c3afdeed57203cef5a5bf326234d9e17b449023ea504cd8ef1555833/CherryPy-17.3.0-py2.py3-none-any.whl (421kB)
Requirement already satisfied: pillow in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from imageio<3.0,>=2.1.2->moviepy>=0.2.2.11->thingscoop) (5.2.0)
Requirement already satisfied: six in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from pdfminer.six->pattern>=2.6->thingscoop) (1.11.0)
Collecting pycryptodome (from pdfminer.six->pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/fe/ca/470bc3edb5b9c54391ca689f7922f3af01cb1c20e197b4789d5a3e7c74b2/pycryptodome-3.6.6-cp35-cp35m-win_amd64.whl (7.9MB)
Collecting pywin32; sys_platform == "win32" and python_version != "3.4" (from cherrypy->pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/73/48/42e18ab94651c28d21f626ce1b5feaf60e5fb2aae3d264138aa768532a5f/pywin32-223-cp35-cp35m-win_amd64.whl (9.0MB)
Requirement already satisfied: contextlib2 in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from cherrypy->pattern>=2.6->thingscoop) (0.5.5)
Collecting zc.lockfile (from cherrypy->pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/f5/fe/efb94907d8b2b81c3beab1bd628ff67e310d82816b94aa00b52062727ea9/zc.lockfile-1.3.0.tar.gz
Requirement already satisfied: more-itertools in c:\users\jmorales\appdata\roaming\python\python35\site-packages (from cherrypy->pattern>=2.6->thingscoop) (4.2.0)
Collecting cheroot>=6.2.4 (from cherrypy->pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/9b/57/c36a8edec77f1a19bf5fefc4b7bd4d7b36556c593992b4aa08202687e71d/cheroot-6.4.0-py2.py3-none-any.whl (68kB)
Collecting portend>=2.1.1 (from cherrypy->pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/81/43/21afd5914b74d4271184ee76f4093b45aa6a580dc6627d72dfc33664c6ac/portend-2.3-py2.py3-none-any.whl
Requirement already satisfied: setuptools in c:\users\jmorales\appdata\roaming\python\python35\site-packages (from zc.lockfile->cherrypy->pattern>=2.6->thingscoop) (39.1.0)
Collecting backports.functools-lru-cache (from cheroot>=6.2.4->cherrypy->pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/03/8e/2424c0e65c4a066e28f539364deee49b6451f8fcd4f718fefa50cc3dcf48/backports.functools_lru_cache-1.5-py2.py3-none-any.whl
Collecting tempora>=1.8 (from portend>=2.1.1->cherrypy->pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/d8/25/bbb1b0785e7fb2f6bf871fdce2b2039b3336076927501e0dad61781d0830/tempora-1.13-py2.py3-none-any.whl
Collecting jaraco.functools>=1.20 (from tempora>=1.8->portend>=2.1.1->cherrypy->pattern>=2.6->thingscoop)
  Downloading https://files.pythonhosted.org/packages/c2/f3/ce1bd8d5434227d26c2c2e07a9f89229a6b81122437452871d7e67f0ec76/jaraco.functools-1.20-py2.py3-none-any.whl
Requirement already satisfied: pytz in c:\users\jmorales\appdata\local\programs\python\python35\lib\site-packages (from tempora>=1.8->portend>=2.1.1->cherrypy->pattern>=2.6->thingscoop) (2015.7)
Building wheels for collected packages: thingscoop, pyPEG2, docopt, pattern, mysqlclient, feedparser, pdfminer.six, python-docx, zc.lockfile
  Running setup.py bdist_wheel for thingscoop: started
  Running setup.py bdist_wheel for thingscoop: finished with status done
  Stored in directory: C:\Users\jmorales\AppData\Local\pip\Cache\wheels\a4\5f\b5\9a6afeeff00db2460518f46db75c3e369385704fb137ab2bca
  Running setup.py bdist_wheel for pyPEG2: started
  Running setup.py bdist_wheel for pyPEG2: finished with status done
  Stored in directory: C:\Users\jmorales\AppData\Local\pip\Cache\wheels\4a\57\58\03557d6f87c87f518b56561f8ee036d46554824e08832e06f3
  Running setup.py bdist_wheel for docopt: started
  Running setup.py bdist_wheel for docopt: finished with status done
  Stored in directory: C:\Users\jmorales\AppData\Local\pip\Cache\wheels\9b\04\dd\7daf4150b6d9b12949298737de9431a324d4b797ffd63f526e
  Running setup.py bdist_wheel for pattern: started
  Running setup.py bdist_wheel for pattern: finished with status done
  Stored in directory: C:\Users\jmorales\AppData\Local\pip\Cache\wheels\dc\9a\0e\5fb1a603ed4e3aa8722a88e9cf4a82da7d1b63e3d2cc34bee5
  Running setup.py bdist_wheel for mysqlclient: started
  Running setup.py bdist_wheel for mysqlclient: finished with status error
  Complete output from command c:\users\jmorales\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__=C:\\Users\\jmorales\\AppData\\Local\\Temp\\pip-install-femg8cxb\\mysqlclient\\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 C:\Users\jmorales\AppData\Local\Temp\pip-wheel-d6byf8yj --python-tag cp35:
  c:\users\jmorales\appdata\local\programs\python\python35\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: long_description_content_type
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.5
  copying _mysql_exceptions.py -> build\lib.win-amd64-3.5
  creating build\lib.win-amd64-3.5\MySQLdb
  copying MySQLdb\__init__.py -> build\lib.win-amd64-3.5\MySQLdb
  copying MySQLdb\compat.py -> build\lib.win-amd64-3.5\MySQLdb
  copying MySQLdb\connections.py -> build\lib.win-amd64-3.5\MySQLdb
  copying MySQLdb\converters.py -> build\lib.win-amd64-3.5\MySQLdb
  copying MySQLdb\cursors.py -> build\lib.win-amd64-3.5\MySQLdb
  copying MySQLdb\release.py -> build\lib.win-amd64-3.5\MySQLdb
  copying MySQLdb\times.py -> build\lib.win-amd64-3.5\MySQLdb
  creating build\lib.win-amd64-3.5\MySQLdb\constants
  copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-3.5\MySQLdb\constants
  copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-3.5\MySQLdb\constants
  copying MySQLdb\constants\CR.py -> build\lib.win-amd64-3.5\MySQLdb\constants
  copying MySQLdb\constants\ER.py -> build\lib.win-amd64-3.5\MySQLdb\constants
  copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-3.5\MySQLdb\constants
  copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-3.5\MySQLdb\constants
  copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-3.5\MySQLdb\constants
  running build_ext
  building _mysql extension
  creating build\temp.win-amd64-3.5
  creating build\temp.win-amd64-3.5\Release
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dversion_info=(1,3,13,final,0) -D__version__=1.3.13 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\include" -Ic:\users\jmorales\appdata\local\programs\python\python35\include -Ic:\users\jmorales\appdata\local\programs\python\python35\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tc_mysql.c /Fobuild\temp.win-amd64-3.5\Release\_mysql.obj /Zl
  _mysql.c
  _mysql.c(29): fatal error C1083: Cannot open include file: mysql.h: No such file or directory
  error: command C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe failed with exit status 2

  ----------------------------------------
  Failed building wheel for mysqlclient
  Running setup.py clean for mysqlclient
  Running setup.py bdist_wheel for feedparser: started
  Running setup.py bdist_wheel for feedparser: finished with status done
  Stored in directory: C:\Users\jmorales\AppData\Local\pip\Cache\wheels\8c\69\b7\f52763c41c5471df57703a0ef718a32a5e81ee35dcf6d4f97f
  Running setup.py bdist_wheel for pdfminer.six: started
  Running setup.py bdist_wheel for pdfminer.six: finished with status done
  Stored in directory: C:\Users\jmorales\AppData\Local\pip\Cache\wheels\86\02\3a\b283a32dc7d89b140de8580ec12dff081d84052decb5c9c6c6
  Running setup.py bdist_wheel for python-docx: started
  Running setup.py bdist_wheel for python-docx: finished with status done
  Stored in directory: C:\Users\jmorales\AppData\Local\pip\Cache\wheels\c2\c7\a7\4cb54d79bf82f9bb4be1780647700f7ec311f0f98a7a017c17
  Running setup.py bdist_wheel for zc.lockfile: started
  Running setup.py bdist_wheel for zc.lockfile: finished with status done
  Stored in directory: C:\Users\jmorales\AppData\Local\pip\Cache\wheels\73\ba\20\9f4fc6a70cf61b6e9ec1a3f7a421a4226afa016509c8ca07d2
Successfully built thingscoop pyPEG2 docopt pattern feedparser pdfminer.six python-docx zc.lockfile
Failed to build mysqlclient
py-webdriver-manager 0.0.1 has requirement tqdm==4.23.1, but youll have tqdm 4.23.4 which is incompatible.
httpie 0.9.9 has requirement Pygments>=2.1.3, but youll have pygments 1.6 which is incompatible.
Installing collected packages: pyPEG2, docopt, backports.csv, mysqlclient, feedparser, pycryptodome, pdfminer.six, python-docx, pywin32, zc.lockfile, backports.functools-lru-cache, cheroot, jaraco.functools, tempora, portend, cherrypy, pattern, thingscoop, urllib3, idna
  Found existing installation: docopt 0.6.1
    Uninstalling docopt-0.6.1:
      Successfully uninstalled docopt-0.6.1
  Running setup.py install for mysqlclient: started
    Running setup.py install for mysqlclient: finished with status error
    Complete output from command c:\users\jmorales\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__=C:\\Users\\jmorales\\AppData\\Local\\Temp\\pip-install-femg8cxb\\mysqlclient\\setup.py;f=getattr(tokenize, open, open)(__file__);code=f.read().replace(\r\n, \n);f.close();exec(compile(code, __file__, exec))" install --record C:\Users\jmorales\AppData\Local\Temp\pip-record-l6e1v6vd\install-record.txt --single-version-externally-managed --compile:
    c:\users\jmorales\appdata\local\programs\python\python35\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: long_description_content_type
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.5
    copying _mysql_exceptions.py -> build\lib.win-amd64-3.5
    creating build\lib.win-amd64-3.5\MySQLdb
    copying MySQLdb\__init__.py -> build\lib.win-amd64-3.5\MySQLdb
    copying MySQLdb\compat.py -> build\lib.win-amd64-3.5\MySQLdb
    copying MySQLdb\connections.py -> build\lib.win-amd64-3.5\MySQLdb
    copying MySQLdb\converters.py -> build\lib.win-amd64-3.5\MySQLdb
    copying MySQLdb\cursors.py -> build\lib.win-amd64-3.5\MySQLdb
    copying MySQLdb\release.py -> build\lib.win-amd64-3.5\MySQLdb
    copying MySQLdb\times.py -> build\lib.win-amd64-3.5\MySQLdb
    creating build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\CR.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\ER.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-3.5\MySQLdb\constants
    running build_ext
    building _mysql extension
    creating build\temp.win-amd64-3.5
    creating build\temp.win-amd64-3.5\Release
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Dversion_info=(1,3,13,final,0) -D__version__=1.3.13 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.1\include" -Ic:\users\jmorales\appdata\local\programs\python\python35\include -Ic:\users\jmorales\appdata\local\programs\python\python35\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tc_mysql.c /Fobuild\temp.win-amd64-3.5\Release\_mysql.obj /Zl
    _mysql.c
    _mysql.c(29): fatal error C1083: Cannot open include file: mysql.h: No such file or directory
    error: command C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe failed with exit status 2

    ----------------------------------------
Command "c:\users\jmorales\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__=C:\\Users\\jmorales\\AppData\\Local\\Temp\\pip-install-femg8cxb\\mysqlclient\\setup.py;f=getattr(tokenize, open, open)(__file__);code=f.read().replace(\r\n, \n);f.close();exec(compile(code, __file__, exec))" install --record C:\Users\jmorales\AppData\Local\Temp\pip-record-l6e1v6vd\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\jmorales\AppData\Local\Temp\pip-install-femg8cxb\mysqlclient\

This is my setup:

Python version: 3.5 OS: Windows 10 Home System Type: 64-bit Operating System, x64-based processor Processor: AMD A10-8700P Radeon R6

jafetmorales commented 6 years ago

This problem is solved by going here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient and downloading the correct mysqlclient Windows wheel file for your system. Then you execute:

pip install {your wheel file}

After that you can successfully pip install thingscoop on Windows.