insidesherpa / JPMC-tech-task-1-PY3

50 stars 448 forks source link

C:\Windows\System32\JPMC-tech-task-1-py3>python3 client3.py #247

Open Ajaych7 opened 1 year ago

Ajaych7 commented 1 year ago

line 51, in quote = json.loads(urllib.urlopen(QUERY.format(random.random())).read()) AttributeError: module 'urllib' has no attribute 'urlopen'

MbohBless commented 1 year ago

I don't think your server3.py was started So if you don't mind you'll have to start the server before executing client

Ajaych7 commented 1 year ago

C:\Windows\System32\JPMC-tech-task-1-py3>pip --version pip 22.2 from C:\python310\lib\site-packages\pip (python 3.10)

C:\Windows\System32\JPMC-tech-task-1-py3>pip dateutil ERROR: unknown command "dateutil"

C:\Windows\System32\JPMC-tech-task-1-py3>pip install python-dateutil Requirement already satisfied: python-dateutil in c:\python310\lib\site-packages (2.8.2) Requirement already satisfied: six>=1.5 in c:\python310\lib\site-packages (from python-dateutil) (1.16.0)

C:\Windows\System32\JPMC-tech-task-1-py3>python3 server3.py Traceback (most recent call last): File "C:\Windows\System32\JPMC-tech-task-1-py3\server3.py", line 26, in import dateutil.parser ModuleNotFoundError: No module named 'dateutil'

could you help me

anshumaan255 commented 1 year ago

i think pip is not installed try installing pip and then run the program