ebsco/ebscopy

Issues with installing package from pip in Windows

Closed this issue · 0 comments

Hi, thanks for accepting my pull request. I don't know how packages work from GitHub to pip, but it seems like the README update is not reflected in pip, because I am getting the same error as before when I do pip install ebscopy.

When I tried to install directly from GitHub, I get the following error message. Do you know if there is a way to update this package on pip to reflect the bug fix?

(sdoh) C:\Users\kyi>pip install git+https://github.com/ebsco/ebscopy.git@master
Collecting git+https://github.com/ebsco/ebscopy.git@master
  Cloning https://github.com/ebsco/ebscopy.git (to revision master) to c:\users\kyi\appdata\local\temp\pip-req-build-dmrtfwok
  Running command git clone --filter=blob:none --quiet https://github.com/ebsco/ebscopy.git 'C:\Users\kyi\AppData\Local\Temp\pip-req-build-dmrtfwok'
  Resolved https://github.com/ebsco/ebscopy.git to commit 658dcb91d64da5f5073b00cae77dab6cd45c3dbc
  Preparing metadata (setup.py) ... done
Collecting datetime
  Downloading DateTime-5.1-py3-none-any.whl (52 kB)
     ------------------------ 52.1/52.1 kB 529.9 kB/s eta 0:00:00
Collecting logging
  Downloading logging-0.4.9.6.tar.gz (96 kB)
     -------------------------- 96.0/96.0 kB 1.1 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 14, in <module>
        File "C:\Users\kyi\AppData\Local\anaconda3\envs\sdoh\lib\site-packages\setuptools\__init__.py", line 8, in <module>
          import _distutils_hack.override  # noqa: F401
        File "C:\Users\kyi\AppData\Local\anaconda3\envs\sdoh\lib\site-packages\_distutils_hack\override.py", line 1, in <module>
          __import__('_distutils_hack').do_override()
        File "C:\Users\kyi\AppData\Local\anaconda3\envs\sdoh\lib\site-packages\_distutils_hack\__init__.py", line 77, in do_override
          ensure_local_distutils()
        File "C:\Users\kyi\AppData\Local\anaconda3\envs\sdoh\lib\site-packages\_distutils_hack\__init__.py", line 63, in ensure_local_distutils
          core = importlib.import_module('distutils.core')
        File "C:\Users\kyi\AppData\Local\anaconda3\envs\sdoh\lib\importlib\__init__.py", line 126, in import_module
          return _bootstrap._gcd_import(name[level:], package, level)
        File "C:\Users\kyi\AppData\Local\anaconda3\envs\sdoh\lib\site-packages\setuptools\_distutils\core.py", line 22, in <module>
          from .dist import Distribution
        File "C:\Users\kyi\AppData\Local\anaconda3\envs\sdoh\lib\site-packages\setuptools\_distutils\dist.py", line 12, in <module>
          import logging
        File "C:\Users\kyi\AppData\Local\Temp\pip-install-wuhta1i5\logging_76896a2bb70544778a4ea4bf6500a471\logging\__init__.py", line 618
          raise NotImplementedError, 'emit must be implemented '\
                                   ^
      SyntaxError: invalid syntax
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.