Skip to main content
The 2024 Developer Survey results are live! See the results

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.

-3 votes
0 answers
27 views

line 6 else print('not good') ^^^^^ SyntaxError: expected ':' [closed]

salary = int (input('enter your salary: \n')) hours = int (input('enter your hours: \n')) total_salary = salary * hours if total_salary<200000: print('good') else print('not good') I want to ...
Ali Sohrabpour's user avatar
0 votes
0 answers
13 views

Could not find py4J jar at

I am trying to run my PMML pre-trained model in Python 3.9, but no matter what I do I have this error Could Not find py4j jar at. None of the solutions provided on the blogs are working. And, even if ...
Tidiane Sall's user avatar
0 votes
0 answers
30 views

Authenticate with SharePoint REST API using Azure AD not Azure ACS

With Python 2.7, I am currently trying to authenticate with the SharePoint REST API i.e. https://[tenant]/sites/[site_collection]/_api/web/lists, etc. I am able to generate, from what I can tell is, a ...
datRedHeadedGuy's user avatar
-5 votes
0 answers
49 views

python package pre-commit can't initialized [closed]

I'm installed pre-commit with pip version 20.3.4 and git already installed on my machine. When I try to use pre-commit install command this error has showed. An error has occurred: FatalError: git ...
Lycan's user avatar
  • 19
-3 votes
0 answers
29 views

DBT tool active users list [closed]

I want to fetch a list of active or non active users in all models .Is it possible? I tried to list models, but unable to get user info like username,project, and last activity or last logged in.
Premlata Ranganathan's user avatar
0 votes
0 answers
15 views

Sound Localization in Python 2.7

I am currently busy with a project for sensory substitution. It is an extension of a previous project and i do not have the time to convert it to python 3 so have continued working in python 2.7, also ...
BuddyJ101's user avatar
-3 votes
0 answers
20 views

how can I compute the striking force of a football player using python [closed]

in a football match between England and Spain Julius Fueke needs a decisive goal, write a Python program that can compute the striking force of each of the players i tried using the import numpy but ...
yagi's user avatar
  • 1
0 votes
0 answers
49 views

how to make python 2.7 working in alma linux 9 with dnf

I have Alma Linux 9 in my VM, which is not compatible with python 2.7, but I need backward compatibility as well. I had installed python2.7 from the source code and created a softlink between /usr/bin/...
anupurba mitra's user avatar
0 votes
1 answer
20 views

How to avoid "UserWarning: Reading `.npy` or `.npz` file required additional header parsing..."

I'm creating .npz files in Python 2 (yes, Python 2, not 3 and I can't change it) full of .npy files. When reading those .npz files, I'm having the warning message: "UserWarning: Reading .npy or ....
Avatar36's user avatar
-4 votes
0 answers
58 views

Unable to install BeautifulSoup4 on Red Hat Linux

When I try to install BeautifulSoup4. I am getting this: $ pip install beautifulsoup4 Collecting beautifulsoup4 Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection ...
asha ganapathy's user avatar
0 votes
1 answer
67 views

how to conver new key into old in python3 ndb

Here my code new_key= ndb.Key(urlsafe = request.user_key) this is written in python3 ndb this will return us key and we change in urlsafe key = new_key.urlsafe() key.decode(encoding="utf-8&...
Jaskaran Singh's user avatar
0 votes
0 answers
39 views

How to install pip for python 2.7 on ubuntu 23.10

There are some links such as here for instructions on how to install pip2 on ubuntu with python 2.7, however when I run curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py sudo ...
Joe Emmens's user avatar
0 votes
0 answers
65 views

can't find the libraries meta_lib and meta_log in pypi

I was trying to use a legacy script from a qualcomm flashing package (Packaged for QFIL) examining the script I found that it is: Python 2.7.18 (I'm have little or no experience with it. It makes ...
Nayan 's user avatar
  • 11
1 vote
2 answers
30 views

TypeConversion of a string with float values to integer is throwing error

I have written the following code: typConvInt = int('3.3') print(typConvInt) But compiler is throwing an error. ErrorMessage: Traceback (most recent call last): File "E:\Trainings\...
Sunil G.V.'s user avatar
0 votes
0 answers
24 views

Get actual with foreign key Web2py

I have a data table with three fields. All of these three (3) fields are foreign key of others table. But I want to display the actual data. How can I work it out? For now, I can only display their ID....
Lycan's user avatar
  • 19

15 30 50 per page
1
2 3 4 5
6343