External request Library import failed after fresh installation

1,233 views
Skip to first unread message

Ramakrishna kolli

unread,
Mar 4, 2015, 3:11:23 PM3/4/15
to robotframe...@googlegroups.com
HI All,

Im getting request and HTTPlibrary(external library) import error, can any one help me to overcome this problem.

Installed robotframework-requests via pip

pip install -U robotframework-requests
after request library installation 

During test case running getting error like
\REST_API_TEST\API_TEST.txt': Importing test library 'RequestsLibrary' failed: ImportError: No module named requests
Traceback (most recent call last):
  File "build\bdist.win-amd64\egg\RequestsLibrary\__init__.py", line 1, in <module>
  File "build\bdist.win-amd64\egg\RequestsLibrary\RequestsKeywords.py", line 1, in <module>
PYTHONPATH:
  C:\Python27\lib\site-packages\robotframework-2.8.7-py2.7-win-amd64.egg\robot\libraries
  C:\Python27\lib\site-packages\robotframework-2.8.7-py2.7-win-amd64.egg
  C:\Python27\Lib\site-packages\setuptools-12.3-py2.7.egg
  C:\Python27\Lib\site-packages\jsonpointer-1.7-py2.7.egg
  C:\Python27\Lib\site-packages\jsonpatch-1.9-py2.7.egg
  C:\Python27\Lib\site-packages\beautifulsoup4-4.3.2-py2.7.egg
  C:\Python27\Lib\site-packages\webob-1.4-py2.7.egg
  C:\Python27\lib\site-packages\setuptools-12.3-py2.7.egg
  C:\Python27\lib\site-packages\robotframework_httplibrary-0.4.2-py2.7.egg
  C:\Python27\lib\site-packages\jsonpointer-1.7-py2.7.egg
  C:\Python27\lib\site-packages\jsonpatch-1.9-py2.7.egg
  C:\Python27\lib\site-packages\webtest-2.0.18-py2.7.egg
  C:\Python27\lib\site-packages\beautifulsoup4-4.3.2-py2.7.egg
  C:\Python27\lib\site-packages\waitress-0.8.9-py2.7.egg
  C:\Python27\lib\site-packages\webob-1.4-py2.7.egg
  C:\Python27\lib\site-packages\six-1.9.0-py2.7.egg
  C:\Python27\lib\site-packages\pip-6.0.8-py2.7.egg
  C:\Python27
  C:\Python27\Scripts
  C:\Python27\python.exe
  C:\Python27\Lib\site-packages
  C:\Python27\lib\site-packages\robotframework_requests-0.3.8-py2.7.egg
  C:\Windows\SYSTEM32\python27.zip
  C:\Python27\DLLs
  C:\Python27\lib
  C:\Python27\lib\plat-win
  C:\Python27\lib\lib-tk
  C:\Python27\lib\site-packages\wx-2.8-msw-unicode
  C:\Python27\python.exe
  C:\Python27\lib\site-packages\robotframework_requests-0.3.8-py2.7.egg
Thanks in advance
Ram

Ramakrishna kolli

unread,
Mar 4, 2015, 3:25:08 PM3/4/15
to robotframe...@googlegroups.com
Got the point request library need to be installed 
Thank you all 

Jerry Schneider

unread,
Mar 4, 2015, 3:43:38 PM3/4/15
to robotframe...@googlegroups.com
Unless I miss my guess, you are missing the python requests library.  Try doing:
sudo pip install -U requests

jer
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

-- 
Linux registered user #475536
Ubuntu registered user #28583
Reply all
Reply to author
Forward
0 new messages