moxxos / gppc

Check OSRS Grand Exchange prices from the command line. Includes module functionality to check full item price history.
https://pypi.org/project/gppc/
GNU Affero General Public License v3.0
2 stars 0 forks source link

GPPC import error #1

Open Weirwindle opened 5 days ago

Weirwindle commented 5 days ago

This started happening in last 3 days Thank you for this project!

(base) PS D:\Documents\AutoHotkey\Runescape\GemCutting> python Python 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:26:23) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import gppc Traceback (most recent call last): File "C:\Users\Tim\anaconda3\Lib\site-packages\requests\models.py", l return complexjson.loads(self.text, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tim\anaconda3\Lib\json__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tim\anaconda3\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tim\anaconda3\Lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "C:\Users\Tim\anaconda3\Lib\site-packages\gppc__init__.py", line 15, in from gppc._gppc import _main, _search_print as search File "C:\Users\Tim\anaconda3\Lib\site-packages\gppc_gppc.py", line 27, in from gppc._item import Item File "C:\Users\Tim\anaconda3\Lib\site-packages\gppc_item.py", line 18, in _RAW_LIST = requests.get(_MAP_API, headers=_REQUEST_HEADER, timeout=100).json() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tim\anaconda3\Lib\site-packages\requests\models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

exit() (base) PS D:\Documents\AutoHotkey\Runescape\GemCutting> gppc Traceback (most recent call last): File "C:\Users\Tim\anaconda3\Lib\site-packages\requests\models.py", line 971, in json return complexjson.loads(self.text, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tim\anaconda3\Lib\json__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tim\anaconda3\Lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tim\anaconda3\Lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\Tim\anaconda3\Scripts\gppc.exe__main.py", line 4, in File "C:\Users\Tim\anaconda3\Lib\site-packages\gppc\init__.py", line 15, in from gppc._gppc import _main, _search_print as search File "C:\Users\Tim\anaconda3\Lib\site-packages\gppc_gppc.py", line 27, in from gppc._item import Item File "C:\Users\Tim\anaconda3\Lib\site-packages\gppc_item.py", line 18, in _RAW_LIST = requests.get(_MAP_API, headers=_REQUEST_HEADER, timeout=100).json() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tim\anaconda3\Lib\site-packages\requests\models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

moxxos commented 18 hours ago

thanks letting me know and using gppc! i will look into this asap