Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Using OpenCV and image path is invalid
Post: RE: Using OpenCV and image path is invalid
(10 hours ago)AudunNilsen Wrote: Sorry for the late reply.
I don´t know what you mean by the Run C-thing.
I did the change as instructed, and then I got a new error message.
>>> %Run 'op... |
|
snippsat |
General Coding Help |
5 |
319 |
8 hours ago |
|
|
Thread: Request for Feedback: Python Website Accessibility
Post: RE: Request for Feedback: Python Website Accessibi...
We are no connent to python.org website at all,read Who is python-forum.io
So for changes on python.org website you have to connect them on there website. |
|
snippsat |
News and Discussions |
2 |
133 |
Mar-17-2024, 08:33 AM |
|
|
Thread: Selenium update broke python code
Post: RE: Selenium update broke python code
|
snippsat |
General Coding Help |
1 |
107 |
Mar-16-2024, 07:33 PM |
|
|
Thread: append str to list in dataclass
Post: RE: append str to list in dataclass
lash77 Wrote:Perhaps I'm mistaken about dataclasses to keep data, because "common" classes can't store data.As mention dataclasses are just convenient way for writing classes and has no own way to sto... |
|
snippsat |
General Coding Help |
6 |
280 |
Mar-14-2024, 05:25 PM |
|
|
Thread: Python Django
Post: RE: Python Django
(Mar-14-2024, 01:49 PM)Sowmya Wrote: Unfortunatetly, I used this process, but still My problem is not solved. Can you please give me another solution for my problem.You most explain what your doing ... |
|
snippsat |
General Coding Help |
4 |
234 |
Mar-14-2024, 02:13 PM |
|
|
Thread: Python Django
Post: RE: Python Django
(Mar-14-2024, 12:26 PM)Sowmya Wrote: I am using Visual Studio Code 3.11.8 for python coding practiceLook down in right corner now you use 3.11.5('demo':venv),so is not using your Python 3.11.8 vers... |
|
snippsat |
General Coding Help |
4 |
234 |
Mar-14-2024, 01:31 PM |
|
|
Thread: File is not being created with 'w' argument
Post: RE: File is not being created with 'w' argument
(Mar-13-2024, 08:19 AM)CAD79 Wrote: dit: never mind, I solved it, it was just the directory and a bit of syntax. The directory will already be created so all it needs to create is the text file.Some... |
|
snippsat |
General Coding Help |
3 |
285 |
Mar-14-2024, 12:05 PM |
|
|
Thread: ChromeDriver breaking Python script
Post: RE: ChromeDriver breaking Python script
The link to driver is now in a Json file JSON API endpoints last-known-good-versions-with-downloads.json.
Example.
from selenium import webdriver
from selenium.webdriver.chrome.options import Options... |
|
snippsat |
General Coding Help |
1 |
173 |
Mar-14-2024, 09:39 AM |
|
|
Thread: break print_format lengthy line
Post: RE: break print_format lengthy line
Can do it like this.
info1 = {'name': 'ali', 'classroom': 3}
info2 = {'name': 'mohammad', 'classroom': 2}
for info in [info1, info2]:
print('{name} is in classroom {classroom}.'.format(**info))Ou... |
|
snippsat |
General Coding Help |
4 |
222 |
Mar-12-2024, 12:21 PM |
|
|
Thread: No Internet connection when running a Python script
Post: RE: No Internet connection when running a Python s...
Some improvement,like time.sleep(blocking) is not the best for schedule stuff.
So schedule and loguru(great) for logging.
import requests
import os
from bs4 import BeautifulSoup
import time
from logu... |
|
snippsat |
General Coding Help |
8 |
394 |
Mar-11-2024, 11:02 AM |
|
|
Thread: Running Python script through Task Scheduler?
Post: RE: Running Python script through Task Scheduler?
(Mar-10-2024, 06:03 PM)Winfried Wrote: After I followed the instructions above, I can see the screen flicker every minute (looks like a CMD window opens and closes real fast) but I don't see Notepad... |
|
snippsat |
General Coding Help |
8 |
299 |
Mar-10-2024, 07:11 PM |
|
|
Thread: Running Python script through Task Scheduler?
Post: RE: Running Python script through Task Scheduler?
This is just your path to Python,that shall in Program/script
Quote:C:\Users\joe\AppData\Local\Programs\Python\Python312\python.exe
Then in argument Add argument(absolute path to your Python code)
W... |
|
snippsat |
General Coding Help |
8 |
299 |
Mar-10-2024, 05:07 PM |
|
|
Thread: Learning curve
Post: RE: Learning curve
Is not an easy task,quick search this a minimum you could have done yourself **undecided**
Automated Trading Systems: The Pros and Cons.
Sum it up:
Quote:Automated trading systems typically require... |
|
snippsat |
General Coding Help |
1 |
200 |
Mar-10-2024, 08:00 AM |
|
|
Thread: currency converter using forex-python
Post: RE: currency converter using forex-python
Example like this.
try:
cr = CurrencyConverter()
amount = float(input("Please enter the amount you want to convert: "))
from_currency = input("Please enter the currency code that has to be... |
|
snippsat |
General Coding Help |
8 |
486 |
Mar-08-2024, 10:25 AM |
|
|
Thread: currency converter using forex-python
Post: RE: currency converter using forex-python
(Mar-07-2024, 11:36 PM)preethy12ka4 Wrote: thank you for the reply. I am really new to python and learning things. i installed the package exchange_rates in pycharm. I ran the code you gave me and i... |
|
snippsat |
General Coding Help |
8 |
486 |
Mar-07-2024, 11:58 PM |
|
|
Thread: currency converter using forex-python
Post: RE: currency converter using forex-python
Also if do some coding can extend exchange_rates to do your task.
from exchange_rates import get_exchange_rates
def conversion_rate(base_currency, target_currency, on_date=None):
rates = get_exch... |
|
snippsat |
General Coding Help |
8 |
486 |
Mar-07-2024, 08:18 PM |
|
|
Thread: currency converter using forex-python
Post: RE: currency converter using forex-python
Quick test is down,if look at converter.py
def _source_url(self):
return "https://theforexapi.com/api/"So the theforexapi👀 is down,then nothing will work in this library.
If look at isssus so ha... |
|
snippsat |
General Coding Help |
8 |
486 |
Mar-07-2024, 06:00 PM |
|
|
Thread: PIL not recognised in subprocess
Post: RE: PIL not recognised in subprocess
As mention more info is needed,also what OS do you use.
Basic test that you can do from command line.
G:\div_code\po_env
λ python -c "import sys; print(sys.executable)"
C:\python312\python.exe
G:\div... |
|
snippsat |
General Coding Help |
2 |
237 |
Mar-05-2024, 02:31 PM |
|
|
Thread: problem with memory_graph module
Post: RE: problem with memory_graph module
It works fine for me when i test most run 2 times for it two overwrite memory_graph.gv.pdf.
If i want to save a graph just rename to eg factorial_grah.pdf.
Then when run again a new graph will be agai... |
|
snippsat |
General Coding Help |
3 |
276 |
Mar-04-2024, 10:15 AM |
|
|
Thread: confusion on importing modules
Post: RE: confusion on importing modules
Can also advice to make a virtual environment(build into Python) then search path to folder will work.
Example setup.
myproject/
│
├── Browser/
│ ├── __init__.py # Ma... |
|
snippsat |
General Coding Help |
4 |
318 |
Mar-03-2024, 08:11 PM |