Query regarding "Library HttpLibrary.HTTP" compatiblitty with Python 3.x

30 views
Skip to first unread message

Archana Basutkar

unread,
Mar 18, 2024, 6:54:03 AMMar 18
to robotframework-users
Hi team,
Greetings of the day!!
We are migrating our automation framework from Python 2.7 to Python 3.6.8
also migrating robot framework to 6.1.1.

However on Python 3.6.8.Getting the below error for  :

Library     HttpLibrary.HTTP

 Importing library 'HttpLibrary.HTTP' failed: SyntaxError: invalid syntax (__init__.py, line 16)
Traceback (most recent call last):
  None
PYTHONPATH:

  /tmp/automation/lib
  /tmp/venv_py3/lib64/python36.zip
  /tmp/venv_py3/lib64/python3.6
  /tmp/venv_py3/lib64/python3.6/lib-dynload
  /usr/lib64/python3.6
  /usr/lib/python3.6
  /tmp/venv_py3/lib/python3.6/site-packages

I have upgraded robot http library:
=============================
[root@fb9e2e96d974 /]# pip install --upgrade robotframework-httplibrary
Requirement already satisfied: robotframework-httplibrary in /usr/local/lib/python3.6/site-packages (0.4.2)
Requirement already satisfied: robotframework in /usr/local/lib/python3.6/site-packages (from robotframework-httplibrary) (6.1.1)
Requirement already satisfied: webtest>=2.0 in /usr/local/lib/python3.6/site-packages (from robotframework-httplibrary) (3.0.0)
Requirement already satisfied: jsonpatch in /usr/local/lib/python3.6/site-packages (from robotframework-httplibrary) (1.32)
Requirement already satisfied: jsonpointer in /usr/local/lib/python3.6/site-packages (from robotframework-httplibrary) (2.3)
Requirement already satisfied: waitress>=0.8.5 in /usr/local/lib/python3.6/site-packages (from webtest>=2.0->robotframework-httplibrary) (2.0.0)
Requirement already satisfied: WebOb>=1.2 in /usr/local/lib/python3.6/site-packages (from webtest>=2.0->robotframework-httplibrary) (1.8.7)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.6/site-packages (from webtest>=2.0->robotframework-httplibrary) (4.12.3)
Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.6/site-packages (from beautifulsoup4->webtest>=2.0->robotframework-httplibrary) (2.3.2.post1)


Wanted to confirm if  HttpLibrary.HTTP is compatible with Python 3.x Can somebody please provide the confirmation or provide me with supporting documentation link. As in Python3 httpLibrary is replaced with httpclient so in robot is the Library been replaced ? .
Thanks in advance

Reply all
Reply to author
Forward
0 new messages