Skip to main content

All Questions

0 votes
0 answers
9 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 ...
lucs100's user avatar
  • 303
1 vote
0 answers
20 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 ...
DerLord's user avatar
  • 11
1 vote
2 answers
4k 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 ...
eddie's user avatar
  • 33
0 votes
1 answer
56 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 ...
jlison fernandes's user avatar
0 votes
0 answers
98 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 ...
Lorena's user avatar
  • 1
0 votes
0 answers
72 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 ...
Simone Maffei's user avatar
4 votes
2 answers
6k 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) ...
j.twis's user avatar
  • 41
0 votes
0 answers
29 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?
Fin123's user avatar
  • 11
0 votes
1 answer
423 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....
undefined's user avatar
  • 3,614
2 votes
1 answer
1k 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 <...
redfords's user avatar
0 votes
1 answer
400 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\...
miss-chl's user avatar
0 votes
3 answers
257 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 ...
Shivam Pandey's user avatar
0 votes
1 answer
619 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
Kabar Kabari's user avatar
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 ...
Kyra's user avatar
  • 29
0 votes
0 answers
2k 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, ...
uk_butterfly's user avatar

15 30 50 per page
1
2 3 4 5
64