linwoodc3 / gdeltPyR

Python based framework to retreive Global Database of Events, Language, and Tone (GDELT) version 1.0 and version 2.0 data.
https://linwoodc3.github.io/gdeltPyR/
GNU General Public License v3.0
203 stars 53 forks source link

Unable to install using "pip install gdelt" #74

Closed ares-osint closed 1 year ago

ares-osint commented 1 year ago

Hello. When i tried to install i got the following:

Collecting gdelt Using cached gdelt-0.1.10.6.1-py2.py3-none-any.whl (773 kB) Discarding https://files.pythonhosted.org/packages/65/f9/a3d5111c8f17334b1752c32aedaab0d01ab4324bf26417bd41890d5b25d0/gdelt-0.1.10.6.1-py2.py3-none-any.whl (from https://pypi.org/simple/gdelt/): Requested gdelt from https://files.pythonhosted.org/packages/65/f9/a3d5111c8f17334b1752c32aedaab0d01ab4324bf26417bd41890d5b25d0/gdelt-0.1.10.6.1-py2.py3-none-any.whl has inconsistent version: expected '0.1.10.6.1', but metadata has '0.1.10.6' Using cached gdelt-0.1.10.6.1.tar.gz (982 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [10 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/tmp/pip-install-dfkqd9oe/gdelt_fc3c3612c6dd4afbaff9146e7ebd3384/setup.py", line 39, in read('CHANGES')), File "/tmp/pip-install-dfkqd9oe/gdelt_fc3c3612c6dd4afbaff9146e7ebd3384/setup.py", line 15, in read with codecs.open(os.path.join(cwd, filename), 'rb', 'utf-8') as h: File "/usr/lib/python3.10/codecs.py", line 906, in open file = builtins.open(filename, mode, buffering) FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-dfkqd9oe/gdelt_fc3c3612c6dd4afbaff9146e7ebd3384/CHANGES' [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.

linwoodc3 commented 1 year ago

Looking at this today

linwoodc3 commented 1 year ago

@ares-osint it should be fixed now. uploaded a new version

linwoodc3 commented 1 year ago

This should be fixed. Reopen if you still get an error.