All Questions
Tagged with python-2.7 python-3.x
9,298
questions
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 ...
-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.
-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 ...
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&...
1
vote
0
answers
24
views
Runing a script written for python2.7 using subprocess.run in a script written in python3.11
In my company there is a script: install.py that is written in python2.7.
The issue
I'm writing a script to run this script from my own python script which I've written in python3.11.
In the beginning ...
1
vote
2
answers
51
views
Python Pandas data frame column split based on previous unique columns combination [duplicate]
I have a data frame like below:
TAG TAG_NAME METRIC METRIC_NAME CAPTURE_DATE MB
DB PRO SPACE A 2024-03-01 3
DB PRO SPACE B 2024-03-01 4
DB ...
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&...
0
votes
0
answers
90
views
how to run next js and python backend on local server?
i want to run a project on local host , where frontend is built with next.js and backend is built with python, i am attaching package.json file of frontend and backend,
package.json file of python ...
0
votes
0
answers
9
views
Emulator output log for startup failure
Estou tento problema ao coda o beeware. mais especificamente estou tentando rodar o briefcase run android porém estou tento erro.enter image description here
briefcase create android
briefcase build ...
0
votes
1
answer
25
views
" 'Word2Vec' object has no attribute 'load_parent_word2vec_format' " error
I am trying to run an old code which uses python 2.7, and since it runs on the slow version of Word2Vec I want to update it to Python3 and when I did so I got this error:
'Word2Vec' object has no ...
1
vote
2
answers
78
views
Large number in python gives infinity
I dealing with data with very large numbers this error appears
for example if I am trying to calculate for example:
import random
import numpy as np
import cmath
import math
import mpmath
from scipy....
1
vote
1
answer
48
views
How do I port python2 code using RSA.importKey().decrypt() to python3?
We have a legacy python2 application that uses an RSA private key to decrypt a base64-encoded file. How do we port this to python3?
Python2.7 code, this does work:
def _unlock_keys(self, ...
0
votes
0
answers
51
views
When I run "python .\manage.py runserver" I get this: No Python at '"C:\Users\Utilizador\AppData\Local\Programs\Python\Python312\python.exe'
virtual environment activated
(env) PS C:\Users\Utilizador\Documents\FSapp> python .\manage.py runserver
No Python at
'"C:\Users\Utilizador\AppData\Local\Programs\Python\Python312\python....
-1
votes
1
answer
53
views
python multiple input multiple output
I wrote a program that gets 4 input in a line from user and it's in a loop. My problem is that if in different iterations the user want to give less than 4 input the program accept them and save them ...
0
votes
0
answers
129
views
I am getting this error "xcode-select: Failed to locate 'python3', requesting installation of command line developer tools." due to python upgrade
revclerx@Revclerxs-Mac-mini ~ % python -v
2024-02-19 22:57:28.212 xcodebuild[15788:1110225] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.dbg.DebuggerLLDB (/Applications/Xcode....