All Questions
Tagged with python-2.7 python-requests
948 questions
0
votes
0
answers
24
views
Can processing of request/grequest responses be run concurrently in Python2?
I'm writing a Python2 program that pulls a large amount of JSON data from a remote CouchDB database. The data is indexed by timestamp: I pass a startkey and an endkey, and the database returns all ...
1
vote
0
answers
22
views
Python script on Raspberry runs out of memory while listening (webserver or websocket)
on my RPi's I need an "event" within my python script which can be triggered from other devices, in order to set high a GPIO output for 60s. First I tried it with a websocket:
def ...
1
vote
2
answers
5k
views
pip --version led to open raise FileNotFoundError("Can't open orphan path")
I am working on calling the Rest-API from Python. All the Rest-API I have tested using Postman and are working fine. But, While executing those using Python scripts I am facing certification error.
I ...
0
votes
1
answer
63
views
How can I add threads to this python code to make multiple request
i am creating a custom tool for login bruteforce on web application for bug bounty hunting so i came to a bug on one web application which i had to create my own tool to bruteforce this is not a ...
0
votes
0
answers
106
views
Why do Python modules behave differently in virtualenv than in system environment?
I've finally realized the advantages of virtual environments for my projects, having all modules/versions contained within the project could save me from the regular headache whenever I'm trying to ...
0
votes
0
answers
75
views
Python 2.7.0 - requests problem sending xlsx file
I am trying to send an .xlsx file from a software written in python 2.7 to a telegram chat via https using the 'requests' library.
If I send an .xlsx without data (only with columns) I have no error ...
4
votes
2
answers
7k
views
Trying to get Python, Pip and Requests all up and running and failing to do so
I am running a Linux server (Linux 4.1.12-124.19.1.el7uek.x86_64 #2 SMP Wed Sep 5 13:41:16 PDT 2018 x86_64 x86_64 x86_64 GNU/Linux) with python 2.7.5 on it (DBAs want it to be 2.7.5 for their script) ...
0
votes
0
answers
33
views
Exporting chart from existing xlsm
I have multiple xlsm files that contains charts. I want to export the charts in png format using python. Found multiple posts to export charts in xlsx but not xlsm. Could someone help me?
0
votes
1
answer
495
views
ImportError: No module named requests.exceptions
This is a strange error which works well with other environment but with my ubuntu18 + python 2.7, it throws below error:
__import__(name)
File "/home/user/p4/stage-1/web-ui/machines/models....
2
votes
1
answer
2k
views
Invalid syntax error using Requests library with Python 2.7
I'm using the Requests library with Python 2.7 and get the following error:
Traceback (most recent call last):
File "/home/user/Documents/workspaces/controller/main.py", line 2, in <...
0
votes
1
answer
442
views
importing requests module does not work how to make it work?
i run the command bellow on widows command line
pip install requests
the error that apeared is :
Exception:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip\...
0
votes
3
answers
315
views
How to import other Python files
I have this file, abc.py:
def asb():
print("Hello, ")
def xyz():
print("World!")
In my main.py file,
from abc import asb
from abc import xyz
I want to import both asb ...
0
votes
1
answer
811
views
How to solve this? Error install cryptography for dirsearch tool
I don't know why this error, I want to solve this error, so that I can run the dirsearch tool properly.
Note:
pip3 install cryptography not helpful.
Click to see screenshot
0
votes
0
answers
11
views
How to convert CrossTab data to simple dataframe in Pandas or python? [duplicate]
I have a crosstab:
1 Erratic Intermittent Lumpy Smooth
2
Intermittent 20 77 9 450
Lumpy ...
0
votes
0
answers
3k
views
FastAPI how to print the HTTP request status code
I am new to FastAPI framework, I want to print out the response status code from a PUT request.
@app.put('/user/{id}', status_code=status.HTTP_200_OK)
async def processing(id: str, request: Request, ...