robotframework-httplibrary icon indicating copy to clipboard operation
robotframework-httplibrary copied to clipboard

Importing test library 'HttpLibrary.HTTP' failed in python 3.8

Open tgyogesh opened this issue 4 years ago • 2 comments

Importing test library 'HttpLibrary.HTTP' failed: SyntaxError: invalid syntax Traceback (most recent call last): None PYTHONPATH: C:\Robot C:\Python38\python38.zip C:\Python38\DLLs C:\Python38\lib C:\Python38 C:\Python38\lib\site-packages

tgyogesh avatar Apr 21 '20 11:04 tgyogesh

I've got the same error

unfadding avatar May 20 '20 17:05 unfadding

The error is traced back to __init__.py, line 16. That's this line:

https://github.com/peritus/robotframework-httplibrary/blob/0cb5d8fc673a82776e51def26cd7735b141bda68/src/HttpLibrary/init.py#L16

This has a Python 2 syntax, which got removed from Python 3.

petersohn avatar Dec 31 '20 14:12 petersohn