3,377 questions
-2
votes
1
answer
297
views
My Code With Openrouter api is not working [closed]
I'm trying to automate intraday financial analysis using OpenRouter's free models. My Python script rotates through several LLM endpoints, sending a prompt about a stock's symbol, change, and closing ...
-1
votes
1
answer
94
views
Why would a simple input statement cause a runtime error? (Work@tech IDE) NZEC error
Since replit has started charging for collaborative IDE's i've been trying to explore good alternatives.
I am experiencing NZEC error when trying to run a simple program such as:
answer = ""
...
0
votes
1
answer
69
views
Cosmographia not starting in Ubuntu
I recently got Ubuntu in my laptop. I installed the cosmographia version 4.2 for Linux. After installation the cosmographia runs when run using the installer GUI. However after shutting down this ...
1
vote
0
answers
366
views
Is Debian 12 compatible with Python 3.5.4? (Segmentation fault error)
I've Debian 12 (PRETTY_NAME="Debian GNU/Linux 12 (bookworm)") installed on WSL2. And I'm trying to install Python3.5.4, but everytime I try that I get a segmentation fault error.
I've tried ...
0
votes
0
answers
90
views
having application run error with python3 and flask
I am trying to run a simple flask application with python3.5 but getting below error.
SyntaxError: future feature annotations is not defined
i have installed the latest version of flask using below ...
1
vote
1
answer
296
views
How to create a tweet using V2 API without Tweepy?
I am trying the following code but it gives 401 error:
headers = {
"Authorization": f"OAuth oauth_consumer_key={consumer_key},oauth_token={access_token},...
0
votes
0
answers
494
views
How to install object-detection library without downgrading Python version?
I am trying to install object-detection library using cmd but having an issue
I tried
pip install object-detection
I am getting this error
ERROR: Ignored the following versions that require a ...
-1
votes
1
answer
441
views
how to downgrade python3.8.10 to 3.5.6 on ubuntu via the terminal?
In order to install older version of keras, tensorflow 1.10.0 is needed. That should solve compatibility issues with an algorithm I am trying to run. TO be able to install these older versions of ...
1
vote
1
answer
299
views
Reading alb logs in python using boto3 and athena
I want to access alb logs in my django code,i am trying to use athena query to get the logs for which i am connecting to athena client using boto3 version 1.3.1 to query into athena using python
This ...
0
votes
0
answers
56
views
match 2 dictionary with python and check both key and value
I am matching 2 dictionaries with their keys and values but after
giving it same items the output is coming false, I have to check it
both key and value and if its true it should print true or givr ...
0
votes
2
answers
33
views
* operation in python for 2-d matrix initialization
You init a 2-d matrix like this
board = [[0] * width for _ in range(height)]
Instead of
board = [[0] * width] * height
as it creates the list once and every row references the same list.
Is it not ...
0
votes
3
answers
260
views
python program to print sum of consecutive numbers in a range
write a python program to print sum of 3 consecutive numbers in a range in a list. for example we take input n = 8 so the program will print
[1+2+3,2+3+4,3+4+5,4+5+6+,5+6+7,6+7+8]
means the output ...
1
vote
2
answers
8k
views
I can't install or run beautifulsoup
I was trying to install beautifulsoup using pip and then there was a message that asked me to update pip so i did then when i run the code with beautiful soup it gives me a syntax error here is the ...
0
votes
1
answer
1k
views
AttributeError: 'DataFrame' object has no attribute '_data' [Not a duplicate]
I was trying to run the main.py but it threw an error about attribution.
My Python version is Python 3.5. I am using the CNTK Docker release 2.6-cpu-python3.5. I cannot update the Python version ...
0
votes
1
answer
874
views
Get file knowing its specific name/string using Python
I would like to get the excel file whose name ends with"_updated" string in my current working directory. For this I am running below code. However, since I have 3 xlsx file, below code is ...