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
6
questions
-4
votes
0
answers
30
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 ...
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 ...
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 ...
-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 ...
-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.
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 ...