Skip to main content

Questions tagged [python-2.7]

Python 2.7 is the last major version in the 2.x series, and is no longer maintained since January 1st 2020. Use the generic [python] tag on all Python questions. Do not add this tag simply to convey the version of Python you're using, unless the question concerns an issue specific to Python 2.7.

python-2.7
0 votes
0 answers
30 views

SCRAM authentication method in Psycopg2 and Python 2.7

I have an old application based on python 2.7 which is currently using psycopg2 2.7.4 and using latest releases of postgresql I got the error "pg_connect(): Unable to connect to PostgreSQL server:...
semantic-dev's user avatar
  • 1,113
1 vote
1 answer
33 views

Using Revit Python Shell, is it possible for the print statement to output colored text?

Using Revit Python Shell, is it possible to get a print statement to print colored text? For example, print "An Apple is red" where the word "Apple" prints in red.
Michelle's user avatar
0 votes
0 answers
38 views

Django Tests Throw ORA-00942: table or view does not exist

I haven't found any questions with respect to Django tests and Oracle DB. I am trying to run a test on an existing application, but am running into the table or view doesn't exist error. I am confused ...
Casey's user avatar
  • 520
1 vote
0 answers
30 views

simple python lambda sorting gives different results on different devices

this is my python code for apache hive udf: #!/usr/bin/python import sys counter=0 delay={"carrier":0, "nas":0,"weather":0, "security":0, "late_aircraft&...
Reungu Ju's user avatar
0 votes
0 answers
139 views

Problem with python server cert? - "There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed."

This command suddenly started failing on my centos image: RUN pip install --upgrade 'pip==20.3.4'. This is the error message: Could not fetch URL https://pypi.python.org/simple/pip/: There was a ...
Annie Van's user avatar
0 votes
0 answers
243 views

yarn global add windows-build-tools, GET https://npm.taobao.org/mirrors/python/2.7.15/python-2.7.15.amd64.msi returned 404

PS C:\Users\member2> yarn global add windows-build-tools yarn global v1.22.22 [1/4] Resolving packages... warning [email protected]: Node.js now includes build tools for Windows. You ...
user24964957's user avatar
0 votes
1 answer
38 views

Maya Python: Drop down menu align with button

I'm relatively new to using python in Maya. I am trying to figure out how to align the drop down menu with a button. I would like for both the drop down menu and both the buttons to be aligned with ...
Anjani Sathe's user avatar
0 votes
0 answers
23 views

how to get ripem160 from hashlib to work in python 2

I am modifying a script written in python2 that uses hashlib, the actual call is: ripemd160 = hashlib.new('ripemd160') I am doing this in a venv python2. I checked the /usr/lib/python2.7/hashlib.py ...
Mauricio Villamil's user avatar
1 vote
1 answer
54 views

How to replace \r or \n in \r\n python2.7

How to replace \r or \n in \r\n in Python 2.7? Input string = 'hello\r\n\n world\n \r\r\n\r\n' Output string = 'hello\r\n\r\n world\r\n \r\n\r\n\r\n'
Satyajit Das's user avatar
0 votes
0 answers
10 views

I don't get my own email if I send it using Gmail to Mailman

I have a Python Mailing list using Mailman2 When subscribed people using gmail send and email to the list, they don't get their own email. But if they reply, they get it. It works using any other ...
Pendres Chkednes's user avatar
0 votes
0 answers
27 views

django project on macbook pro M1 pro crashed with illegal hardware instruction

environment: 16-inch,2021 cpu: Apple M1 Pro mermory: 16 GB os version: 14.4.1 (23E224) python version: 2.7.15 Heading i try to run "python manage.py runserver 0.0.0.0:8080", but i got ...
Qiuping Wu's user avatar
0 votes
1 answer
97 views

python2.7 - How to decode JSON without decoding the UTF-8 inside of it?

I need a function to decode UTF-8 encoded JSON. This function should take a UTF-8 encoded JSON string and convert it to UTF-8 encoded objects. The following code works: # helper function def ...
personal_cloud's user avatar
0 votes
1 answer
640 views

Unable to Install Python 2 on Parrot OS

I'm facing an issue while trying to install Python 2 on my Parrot OS. Whenever I run the command: sudo apt-get install python2 I receive the following output: `Reading package lists... Done Building ...
Kamran's user avatar
  • 1
0 votes
0 answers
9 views

shutil.make_archive works but throws Error 13 for /root

I have a script that collects various files into a directory structure than creates a final zip archive. The directory <dir> is located at /home/<user>/<dir> and I want it to create /...
Nosjack's user avatar
  • 101
0 votes
1 answer
35 views

install python2.7 on rehl 9 for legacy application

We have an legacy application running on old python version which is python 2.7 i tried installing 2.7 from source but failed to so with many errors Also tried using sudo dnf install python2.7 but it ...
shashank verma's user avatar

15 30 50 per page