1,312 questions
0 votes
0 answers
54 views
Other Solution for Installing pip with Python 2.6 on Windows
I have been unable to install pip in Python 2.6. I've downloaded the bootstrap from https://bootstrap.pypa.io/pip/2.6/get-pip.py and the attempt to install yields ther following error: c:\users\XXXXX\...
0 votes
0 answers
68 views
Python requests get call getting in to unlimited waiting, where curl succeeds
In our legacy application we use Python2.6 with requests 2.9.1 for making API requests. There a strange behavior is noticed with Python requests library that is, it gets in to unlimited wait where ...
1 vote
4 answers
643 views
Install pip on Python 2.6
I need to install pip on Python 2.6. I have tried a couple of solutions available. How to install pip on a system with python 2.6 How to install pip for python 2.6? How to install pip with python 2....
-1 votes
2 answers
91 views
Using a python 2.6 package in python 3.10
Background I want to learn python through creating an isometric RPG computer game. To make it a little more fun at the start, I thought I would instead of starting from scratch, alter another very ...
1 vote
1 answer
3k views
Python Build Error: fatal error: misc/abstract_atomic.h: No such file or directory
Im using Linux Mint 21 and I'm trying to build python 2.6.2 I need it for Blender 2.49b. So here is error which Im getting from /home/slobodan/Python-2.6.2/Modules/nismodule.c:17: /usr/include/rpc/...
0 votes
0 answers
42 views
Downloading google sheets using python 2.6
For some reason one of our unix servers is still using python 2.6. I cant upgrade it’s version to v3 due to restrictions. Frustrating I know. Anyway, I am wondering if there are still working ...
0 votes
1 answer
372 views
How to eliminate duplicate IP Table entries through python program
iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- 10.10.10.10 anywhere tcp dpt:6379 ACCEPT tcp -- 10.10.10.10 ...
0 votes
1 answer
108 views
Defining a list of values within a class
I know that this is a simple question, but I don't know what this is called and I can't find any details online... Using Python 2.6, I simply want to be able to reference some predefined values that ...
0 votes
0 answers
71 views
Python2.6 give OSERROR No Such File on subprocess but python > 2.7 works well
I have installed python 2.6 into a host and python 2.7 and python 3 as well the below code is working fine in pythn3 and python 2.7 but not working in python 2.6 >>> f=open("/tmp/abcd....
0 votes
0 answers
101 views
Is there a way to convert excel to csv in python 2.6?
Currently, I have a 2.6 version of python on my windows machine. I intended to use pandas, xlrd, and openpyxl for excel parsing, but since pip is not installed automatically in v2.6, I tried to ...
0 votes
1 answer
81 views
Sort and count words in xml output python script
I'm trying to sort and count every word from the output of the i.find().text command, but I can't find a way to do it without hardcoded filter words in the array. Used strings: from xml.etree import ...
1 vote
1 answer
1k views
Pillow - Adding transparency depending on grayscale values
Based on this post: Converting image grayscale pixel values to alpha values , how could I change an image transparency based on grayscale values with Pillow (6.2.2)? I would like the brighter a pixel, ...
0 votes
0 answers
68 views
I am getting this error related to logging
No handlers could be found for logger reports_wrapper if logging.getLogger().hasHandlers(): logger = logging.getLogger(__name__) else: logger = logging.getLogger("reports_wrapper") ...
0 votes
0 answers
100 views
Running a TimesTen query from a Python script works fine. When I put it in my crontab, it doesn't work as expected
I have a python script which queries a TimesTen database and stores the output in a file, and emails it off. When I run it from its directory /home/directory/script.py, it works absolutely fine and ...
0 votes
1 answer
148 views
Calling grep after writing to file Python 2.6.4 os.system
I'm trying to read from text.txt, write certain lines to temp.txt, then using os.system call grep on temp.txt After I run the program, temp.txt gets created and I can call the same grep command in ...