JohnnyPeng18 / HiTyper

This is the tool released in ICSE 2022 paper "Static Inference Meets Deep Learning: A Hybrid Type Inference Approach for Python"
Apache License 2.0
40 stars 6 forks source link

Error occurs when getting recommendations from Type4Py #5

Closed wahid-nlogn closed 1 year ago

wahid-nlogn commented 1 year ago

2023-06-25 16:49:55,239[ERROR][utils.py:83] Error occurs when getting recommendations from Type4Py, reason: HTTPConnectionPool(host='localhost', port=5001): Max retries exceeded with url: /api/predict?tc=0 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x00000251FB6C0ED0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')).

Any idea on how to fix these?

bengsparks commented 1 year ago

Have you started running the docker image supplied by the Type4Py authors? docker run --rm -d -p 5001:5010 -it ghcr.io/saltudelft/type4py:latest

wahid-nlogn commented 1 year ago

No I did not. Thanks a lot, it solved the issue.