Skip to main content

All Questions

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 ...
eddie's user avatar
  • 33
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 ...
jlison fernandes's user avatar
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 ...
Lorena's user avatar
  • 1
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 ...
Simone Maffei's user avatar
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) ...
j.twis's user avatar
  • 41
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....
undefined's user avatar
  • 3,632
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\...
miss-chl's user avatar
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 ...
Shivam Pandey's user avatar
0 votes
1 answer
812 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
-1 votes
2 answers
79 views

how to compare given date (string) is current date to last 8 date or not? [closed]

I have an one date in a string. How can I figure out this date REFRESH = ("2021-11-25 00:27:23") to current date from last 8 days from datetime import datetime from datetime import ...
Ajith MsM's user avatar
-1 votes
2 answers
227 views

i have thes exam and i dont know what is the problem in my answer

Write a Python code snippet use 'if-elif' flow control along with a 'while' loop that will: Instruct a user to input a number that is greater than 0 and less than or equal to 10 and store the input ...
Yassin Askour's user avatar
0 votes
0 answers
79 views

Pythonic way to iterate through content-range during request get call

The GET rest api returns < HTTP/1.1 200 OK < rlogid: t6elbbolst2%3F%3Ckuv%60ng%60jnvv7*6565%3B37-17d3a004c7d-0x233d < content-range: nodes 1-397/397 < x-ebay-request-id: 17d3a004-c7e0-a4cc-...
developthou's user avatar
0 votes
0 answers
26 views

Merging two Dictionaries with togrther [duplicate]

I try to merge two dictionaries with together with out update() method. What is your offer to use with new ways?
faridmohammadi chianeh's user avatar
1 vote
0 answers
313 views

python: keep HTTP connection open with requests module [duplicate]

I use requests python module as following: import requests from requests.structures import CaseInsensitiveDict ... response = requests.post(URL, json={ 'a': '123', 'b': '456' }) ... I'm assuming ...
Mark's user avatar
  • 6,494

15 30 50 per page
1
2 3 4 5
46