postpython icon indicating copy to clipboard operation
postpython copied to clipboard

Requests not available

Open sayr777 opened this issue 7 years ago • 2 comments

I run

from postpython.core import PostPython
runner = PostPython('test1.json')
runner.RequestMethods.help()

response

Traceback (most recent call last):
  File "C:\Python\Python36-32\lib\site-packages\IPython\core\interactiveshell.py", line 2910, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-18-76c0bbfcceaf>", line 1, in <module>
    runner.RequestMethods.help()
  File "C:\Python\Python36-32\lib\site-packages\postpython\core.py", line 52, in __getattr__
    similar = difflib.get_close_matches(item, self.__folders)[0]
IndexError: list index out of range

sayr777 avatar Jun 13 '19 12:06 sayr777

@sayr777, Would you please send me test1.json as well?

bardia-heydari avatar Jun 16 '19 17:06 bardia-heydari

i run with V1 but still giving same error

from postpython.core import PostPython runner = PostPython('/Users/naveen.gedela/Desktop/Demo_APi.postman_collection.json') response = runner.DemoApi.get_request() print(response.json())

/usr/local/bin/python3.6 /Users/naveen.gedela/IdeaProjects/PostPython/Test.py Traceback (most recent call last): File "/Users/naveen.gedela/IdeaProjects/PostPython/Test.py", line 4, in response = runner.DemoApi.get_request() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/postpython/core.py", line 53, in getattr similar = difflib.get_close_matches(item, self.__folders)[0] IndexError: list index out of range

It's Json file but when i do upload it's not supporting by github changed to Docx Demo_APi.postman_collection.docx

It's Folder of my collection Screenshot 2020-12-05 at 7 18 58 PM

NaveenKumar-G avatar Dec 05 '20 13:12 NaveenKumar-G