question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing Hub package on Windows fails

See original GitHub issue

πŸ›πŸ› Bug Report

Running pip install hub fails. Here is the error

    ERROR: Command errored out with exit status 1:
     command: 'c:\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\edogr\\AppData\\Local\\Temp\\pip-install-s19ere5k\\lmdb\\setup.py'"'"'; __file__='"'"'C:\\Users\\edogr\\AppData\\Local\\Temp\\pip-install-s19ere5k\\lmdb\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\edogr\AppData\Local\Temp\pip-pip-egg-info-az1jdfxa'
         cwd: C:\Users\edogr\AppData\Local\Temp\pip-install-s19ere5k\lmdb\
    Complete output (13 lines):
    Traceback (most recent call last):
      File "C:\Users\edogr\AppData\Local\Temp\pip-install-s19ere5k\lmdb\setup.py", line 92, in <module>
        import patch_ng as patch
    ModuleNotFoundError: No module named 'patch_ng'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\edogr\AppData\Local\Temp\pip-install-s19ere5k\lmdb\setup.py", line 94, in <module>
        raise Exception('Building py-lmdb from source on Windows requires the "patch-ng" python module.')
    Exception: Building py-lmdb from source on Windows requires the "patch-ng" python module.
    py-lmdb: Using bundled liblmdb with py-lmdb patches; override with LMDB_FORCE_SYSTEM=1 or LMDB_PURE=1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

βš™οΈ Environment

Python 3.9 Powershell Windows 10

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mynameisvinncommented, Mar 4, 2021

Closing this feature request due to inactivity and lack of interest. Will revive it if more users request it.

0reactions
ahmedshahriarcommented, Jan 20, 2021

pip install -U hub==1.0.0

Works fine on python 3.6

Log

Collecting hub==1.0.0
  Using cached hub-1.0.0-py3-none-any.whl (111 kB)
Collecting azure-storage-blob==12.5.0
  Using cached azure_storage_blob-12.5.0-py2.py3-none-any.whl (326 kB)
Collecting boto3==1.16.10
  Using cached boto3-1.16.10-py2.py3-none-any.whl (129 kB)
Collecting cachey==0.2.1
  Using cached cachey-0.2.1-py3-none-any.whl (6.4 kB)
Collecting fsspec==0.8.4
  Using cached fsspec-0.8.4-py3-none-any.whl (91 kB)
Collecting gcsfs==0.6.2
  Using cached gcsfs-0.6.2-py2.py3-none-any.whl (17 kB)
Collecting lmdb==1.0.0
  Downloading lmdb-1.0.0-cp36-cp36m-win_amd64.whl (98 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 98 kB 597 kB/s
Collecting outdated==0.2.0
  Downloading outdated-0.2.0.tar.gz (4.0 kB)
Collecting s3fs==0.4.2
  Downloading s3fs-0.4.2-py3-none-any.whl (19 kB)
Collecting tqdm==4.51
  Downloading tqdm-4.51.0-py2.py3-none-any.whl (70 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 70 kB 866 kB/s
Collecting zarr==2.5
  Downloading zarr-2.5.0-py3-none-any.whl (131 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 131 kB 930 kB/s
Collecting azure-core<2.0.0,>=1.6.0
  Downloading azure_core-1.10.0-py2.py3-none-any.whl (125 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 125 kB 1.3 MB/s
Collecting botocore<1.20.0,>=1.19.10
  Downloading botocore-1.19.57-py2.py3-none-any.whl (7.2 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 7.2 MB 467 kB/s
Collecting click<8,>=6.7
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting cryptography>=2.1.4
  Using cached cryptography-3.3.1-cp36-abi3-win_amd64.whl (1.5 MB)
Collecting cffi>=1.12
  Using cached cffi-1.14.4-cp36-cp36m-win_amd64.whl (178 kB)
Collecting google-auth>=1.2
  Downloading google_auth-1.24.0-py2.py3-none-any.whl (114 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 114 kB 1.3 MB/s
Requirement already satisfied: setuptools>=40.3.0 in c:\users\h3118l23r\personalprojects\python\pythonproject\venv\lib\site-packages (from google-auth>=1.2->gcsfs==0.6.2->hub==1.0.0) (51.3.3)
Collecting cachetools<5.0,>=2.0.0
  Downloading cachetools-4.2.0-py3-none-any.whl (12 kB)
Collecting jmespath<1.0.0,>=0.7.1
  Using cached jmespath-0.10.0-py2.py3-none-any.whl (24 kB)
Collecting lz4<4,>=3
  Downloading lz4-3.1.3-cp36-cp36m-win_amd64.whl (192 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 192 kB 939 kB/s
Collecting msrest>=0.6.10
  Downloading msrest-0.6.19-py2.py3-none-any.whl (84 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 84 kB 453 kB/s
Collecting certifi>=2017.4.17
  Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Collecting isodate>=0.6.0
  Downloading isodate-0.6.0-py2.py3-none-any.whl (45 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 45 kB 3.2 MB/s
Collecting numcodecs>=0.6.4
  Downloading numcodecs-0.7.2-cp36-cp36m-win_amd64.whl (686 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 686 kB 364 kB/s
Collecting numpy<2,>=1.13.0
  Downloading numpy-1.19.5-cp36-cp36m-win_amd64.whl (13.2 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 13.2 MB 547 kB/s
Collecting pathos>=0.2.2
  Downloading pathos-0.2.7-py2.py3-none-any.whl (81 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 81 kB 871 kB/s
Collecting dill>=0.3.3
  Downloading dill-0.3.3-py2.py3-none-any.whl (81 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 81 kB 1.3 MB/s
Collecting multiprocess>=0.70.11
  Downloading multiprocess-0.70.11.1-py36-none-any.whl (101 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 101 kB 721 kB/s
Collecting Pillow>=8.0.1
  Downloading Pillow-8.1.0-cp36-cp36m-win_amd64.whl (2.1 MB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 2.1 MB 234 kB/s
Collecting pox>=0.2.9
  Downloading pox-0.2.9-py2.py3-none-any.whl (30 kB)
Collecting ppft>=1.6.6.3
  Downloading ppft-1.6.6.3-py3-none-any.whl (65 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 65 kB 385 kB/s
Collecting psutil>=5.7.3
  Downloading psutil-5.8.0-cp36-cp36m-win_amd64.whl (244 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 244 kB 652 kB/s
Collecting pyasn1-modules>=0.2.1
  Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Collecting pyasn1<0.5.0,>=0.4.6
  Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Collecting python-dateutil<3.0.0,>=2.1
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting requests<3,>=2
  Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
Collecting chardet<5,>=3.0.2
  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting idna<3,>=2.5
  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting requests-oauthlib>=0.5.0
  Using cached requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting oauthlib>=3.0.0
  Using cached oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
Collecting rsa<5,>=3.1.4
  Downloading rsa-4.7-py3-none-any.whl (34 kB)
Collecting s3transfer<0.4.0,>=0.3.0
  Downloading s3transfer-0.3.4-py2.py3-none-any.whl (69 kB)
     |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 69 kB 918 kB/s
Collecting six>=1.6
  Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting urllib3<1.27,>=1.25.4
  Using cached urllib3-1.26.2-py2.py3-none-any.whl (136 kB)
Collecting asciitree
  Downloading asciitree-0.3.3.tar.gz (4.0 kB)
Collecting decorator
  Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting fasteners
  Downloading fasteners-0.16-py2.py3-none-any.whl (28 kB)
Collecting google-auth-oauthlib
  Using cached google_auth_oauthlib-0.4.2-py2.py3-none-any.whl (18 kB)
Collecting heapdict
  Downloading HeapDict-1.0.1-py3-none-any.whl (3.9 kB)
Collecting littleutils
  Downloading littleutils-0.2.2.tar.gz (6.6 kB)
Collecting pycparser
  Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Using legacy 'setup.py install' for outdated, since package 'wheel' is not installed.
Using legacy 'setup.py install' for asciitree, since package 'wheel' is not installed.
Using legacy 'setup.py install' for littleutils, since package 'wheel' is not installed.
Installing collected packages: urllib3, six, pyasn1, idna, chardet, certifi, rsa, requests, python-dateutil, pycparser, pyasn1-modules, oauthlib, jmespath, cachetools, requests-oauthlib, numpy, isodate, google-auth, dill, cffi, boto
core, s3transfer, ppft, pox, numcodecs, multiprocess, msrest, littleutils, heapdict, google-auth-oauthlib, fsspec, fasteners, decorator, cryptography, azure-core, asciitree, zarr, tqdm, s3fs, psutil, Pillow, pathos, outdated, lz4, l
mdb, gcsfs, click, cachey, boto3, azure-storage-blob, hub
    Running setup.py install for littleutils ... done
    Running setup.py install for asciitree ... done
    Running setup.py install for outdated ... done
Successfully installed Pillow-8.1.0 asciitree-0.3.3 azure-core-1.10.0 azure-storage-blob-12.5.0 boto3-1.16.10 botocore-1.19.57 cachetools-4.2.0 cachey-0.2.1 certifi-2020.12.5 cffi-1.14.4 chardet-4.0.0 click-7.1.2 cryptography-3.3.1
decorator-4.4.2 dill-0.3.3 fasteners-0.16 fsspec-0.8.4 gcsfs-0.6.2 google-auth-1.24.0 google-auth-oauthlib-0.4.2 heapdict-1.0.1 hub-1.0.0 idna-2.10 isodate-0.6.0 jmespath-0.10.0 littleutils-0.2.2 lmdb-1.0.0 lz4-3.1.3 msrest-0.6.19 m
ultiprocess-0.70.11.1 numcodecs-0.7.2 numpy-1.19.5 oauthlib-3.1.0 outdated-0.2.0 pathos-0.2.7 pox-0.2.9 ppft-1.6.6.3 psutil-5.8.0 pyasn1-0.4.8 pyasn1-modules-0.2.8 pycparser-2.20 python-dateutil-2.8.1 requests-2.25.1 requests-oauthl
ib-1.3.0 rsa-4.7 s3fs-0.4.2 s3transfer-0.3.4 six-1.15.0 tqdm-4.51.0 urllib3-1.26.2 zarr-2.5.0


but generates errors on python 3.9

My Environment

python 3.6.8 python 3.9.0 Windows 10 64 bit

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft Surface hub 'Error during installation package ...
Hello community, During an installation of Microsoft Teams on our Surface hub we don't have the ability to get through the step ofΒ ......
Read more >
How to Fix When Logitech G Hub is Not Installing (Exact ...
Logitech G hub not installing stuck on initializing in Windows 10 and Mac computer.| Install Error - Fails | Won't install | Start...
Read more >
Fixed: β€œThere is a problem with this Windows installer ...
Method 1: Make sure you have administrative permissions Β· Method 2: Use the Program Install and Uninstall troubleshooter Β· Method 3: Repair the...
Read more >
How to Fix Windows Installer Package Problem [Tutorial]
How To Fix Windows Installer Package Problem. Registry Entry: msiexec /i "%1"Most programs can be installed on Windows computer normally.
Read more >
Global Hub Client Package Failed to Load Correctly
The Global Hub Client Package didn't load correctly. It may have been caused by a config change or by the installation of another...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found