-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import failing on Python 3.6 #57
Comments
Ok, got the imports for Python 3.6:
|
Also in
|
hey @joaonc I am having the same issues. Do we need to make all changes for the library to work ? |
@aks1589 I'm pretty sure this is a defunct project and will never work in Python 3.x unless someone picks it up. |
thanks for the reply @joaonc ! Thats disappointing considering the functions this library had to offer. I am now using the requests library for my test cases. |
Any updates on this? Im using now Python 3.7 and the issue is still on it |
@jmagaru I don't think there will be any updates on this as this seems to be a defunct project. My recommendation is that you don't use this library. |
@joaonc Have you any recommendations instead this library? |
@pablogiroud I don't know. Maybe Robot Framework already provides some functionality in its libraries. What I did was created a Python module using the requests package, which makes doing REST calls super easy, and imported it into Robot as a library. |
Yes request library looks easy to use. |
@peritus , Is there a plan to support this library for Python 3.x? |
Can someone help me also i am getting this error Package Version |
i am getting the same error,please to help me
|
I have the same issue. but i have install HttpLibrary.HTTP. robotframework (3.1.2) `20191217 16:04:52.554 [WARN]: Importing test library "HttpLibrary.HTTP" failed Traceback (most recent call last): |
Thanks to Author of this library. One of the best API library to use in Robot framework especially with session retained for subsequent requests in page object test automation model. This is not achievable using other libraries. So thought of fixing issues with this library for Python 3 and I was successful and it is working. Python version I tried is python 3.8.1. As I do not know how to build test library for robot framework, someone here especially author could publish HTTPLIBRARY with latest attached files to support Python 3. Note: install relevant libraries (pyparsing, urllib3, webtest) needed for this files. Inside Zip files, there are 3 files, httplibs (previously init.py file in library), livetest and httprequest. Use only httplibs and livetest to build library. Whereas, httprequest python file can be imported to robotframework and could use keywords as temporary solution until library available. |
is this library not to be used? |
There's an unsupported syntax in HttpLibrary init.py
is not supported in Python 3.6 (maybe other versions as well, not sure).
Updating to
works for Python 2.7 and above (maybe for lower versions of Python as well, not sure).
Also:
from urllib import urlparse
becomes
from urllib.parse import urlparse
and it's failing on importing
livetest
.Tried
from HttpLibrary import livetest
but that's not working.The text was updated successfully, but these errors were encountered: