Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 19,552
» Latest member: Dawinch
» Forum threads: 38,664
» Forum posts: 175,208

Full Statistics

Online Users
There are currently 235 online users.
» 1 Member(s) | 228 Guest(s)
Bing, Baidu, Google, Applebot, Yandex, snippsat

Latest Threads
gpiozero buttons stop wor...
Forum: General Coding Help
Last Post: deanhystad
1 hour ago
» Replies: 5
» Views: 199
How to package code for d...
Forum: General Coding Help
Last Post: snippsat
5 hours ago
» Replies: 2
» Views: 145
pip3 install certifi fail...
Forum: General Coding Help
Last Post: Pedroski55
Jul-15-2025, 08:52 AM
» Replies: 1
» Views: 101
My first python game : Ti...
Forum: Game Development
Last Post: walterliz
Jul-15-2025, 07:45 AM
» Replies: 8
» Views: 55,583
A penny doubled every day...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:35 AM
» Replies: 6
» Views: 737
Exercise on reading a chu...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:31 AM
» Replies: 3
» Views: 1,211
While loop is terminating...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:29 AM
» Replies: 3
» Views: 453
Custom Sorting List of Di...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:28 AM
» Replies: 3
» Views: 241
Unable to define function...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:26 AM
» Replies: 2
» Views: 103
RemoTe server operation w...
Forum: General Coding Help
Last Post: snippsat
Jul-14-2025, 10:14 AM
» Replies: 6
» Views: 712

 
  Pip lists the module but python does not find it
Posted by: Dato - Apr-11-2023, 11:20 AM - Forum: General Coding Help - Replies (2)

Hi people,

I am struggling to get a package that, supposedly, pip already installed.
the package in question is fenics. Installed with pip install..... More

Print this item

Sad extract frame from video error
Posted by: MrSonoa - Apr-11-2023, 09:15 AM - Forum: General Coding Help - No Replies

Hi and greetings , I am new to this forum. Who here really needs help from a python expert. I am a student and am currently doing a final year project..... More


Attached Files

Thumbnail(s)
       
Print this item

  How do I check if the first X characters of a string are numbers?
Posted by: FirstBornAlbratross - Apr-11-2023, 12:57 AM - Forum: General Coding Help - Replies (6)

How do I check if the first X characters of a string are numbers?

For example if someone inputs a combination of numbers and characters, how can I ..... More

Print this item

  populate a QListWidget
Posted by: devilonline - Apr-10-2023, 01:11 AM - Forum: GUI - Replies (1)

Hi

i want to populate a list widget but it always gives me this error

what can i do?

thanks

error: [quote]TypeError: addItems(self, Itera..... More

Print this item

  Pyserial Readline() conversion to array
Posted by: bprosman - Apr-09-2023, 05:00 PM - Forum: General Coding Help - Replies (1)

Dear all,

As the title already states I'd like to convert a line , read via the readline() function, I am already Googling all afternoon but cant f..... More

Print this item

  Webbrowser.open() causes errors
Posted by: ChrisOfBristol - Apr-09-2023, 04:19 PM - Forum: General Coding Help - Replies (1)

I didn't realise others could edit my posts. I am extremely uncomfortable with that.

Print this item

  Personal Project - JDR Tool Introduction (for data governance)
Posted by: ciphero - Apr-09-2023, 03:26 PM - Forum: Code sharing - No Replies

Hi,
I recently started learning Python, so I tried to write this project as an exercise. The idea of the concept is derived from the solution to the ..... More

Print this item

  I'm trying to make my Alexa/Echo dot 3 powered by ChatGPT....
Posted by: mariozio - Apr-09-2023, 02:44 PM - Forum: General Coding Help - Replies (1)

Hello.

I'm trying to make my Alexa/Echo dot 3 powered by ChatGPT. I would like to integrate ChatGPT into my Alexa / Echo dot 3. I want to have more..... More

Print this item

  Need help for script access via webdriver to an open web page in Firefox
Posted by: Clixmaster - Apr-09-2023, 10:49 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi@all,

I have the following task:

In a form in a LogIn area, keywords are to be entered one after the other into an input field with the ID "tags",..... More

Print this item

  switch case not working
Posted by: Username0089098 - Apr-09-2023, 05:01 AM - Forum: General Coding Help - Replies (1)

I am trying to read a file using a switch case and an input.




[python]while True:
choice = input("(1) Write A File\n(2) Read A File\n(3) Ap..... More

Print this item

  [Hiring] Looking for Data Sci/ML consultant to advise on a project
Posted by: pandadad123 - Apr-09-2023, 04:12 AM - Forum: Jobs - Replies (1)

Hi, I'm looking for a senior level data scientist with ML experience to advise us on a project that is in the requirements finding/discovery stage. T..... More

Print this item

  python convert multiple files to multiple lists
Posted by: MCL169 - Apr-08-2023, 10:36 PM - Forum: General Coding Help - Replies (6)

year = '1990'

filename = open('FF_abbreviated.txt')

for i in filename:
    print(i)
[output]19260701 0.09 0.22 ..... More

Print this item

  Is the following code returning a generator expression?
Posted by: quazirfan - Apr-08-2023, 07:30 PM - Forum: General Coding Help - Replies (8)

I am reading Python documentation on in operator,

Source: https://docs.python.org/3/reference/expr...operations

6.10..... More

Print this item

  restrict user input to numerical values
Posted by: MCL169 - Apr-08-2023, 04:45 PM - Forum: General Coding Help - Replies (2)

[python]while True:
year = input('please enter a 4-digit year: ')

digit = len(year)

if digit != 4 and year != int:
print("..... More

Print this item

  [SOLVED] [regex] Why isn't possible substring ignored?
Posted by: Winfried - Apr-08-2023, 01:08 PM - Forum: General Coding Help - Replies (4)

Hello,

I need to loop through a list of URLs to grab each page's title, which might contain a substring I want to ignore.

For some reason, the s..... More

Print this item

  Deitel book "Python for Programmers"
Posted by: ricardian - Apr-08-2023, 11:57 AM - Forum: General Coding Help - Replies (7)

Deitel book "Python for Programmers" page xxxv.
Command "jupyter labextension install @jupyter-widgets/jupyterlab-manager" fails with error "Jupyter..... More

Print this item

  How to verify widening conversion?
Posted by: quazirfan - Apr-08-2023, 03:54 AM - Forum: General Coding Help - Replies (1)

I am trying to understand why I can not see int to float widening in Python bytecode.

here is the code:

import dis
dis.dis("5.0 == 5")

Outpu..... More

Print this item

Bug New to coding, Using the zip() function to create Diret and getting weird results
Posted by: Shagamatula - Apr-07-2023, 11:29 PM - Forum: General Coding Help - Replies (6)

Hey guys im new to coding doing a mature student diploma, im doing my 3rd project for the course and im getting results that don’t make sense. Please ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Interpreting this code
Posted by: EmBeck87 - Apr-07-2023, 04:36 PM - Forum: Homework - Replies (4)

Hello, I have a dumb question- can someone tell me in layperson terms what this code is doing? I'm worried it is excluding the values I want 'LMU' ins..... More

Print this item

  Selenium undetected Chromedriver Bot
Posted by: Laurin0000 - Apr-07-2023, 10:20 AM - Forum: Web Scraping & Web Development - Replies (1)

I am trying to create an bot that locates an item checks it for discount and price and then decides to clicks it or not. But the bot isnt able to loca..... More

Print this item

  when package built, requirements not installed
Posted by: sabuzaki - Apr-07-2023, 07:10 AM - Forum: General Coding Help - Replies (1)

Hello,

I'm new to packaging, but using setup.py file. I have included this line [1] in setup.py, built the package using command [2], uploaded to t..... More

Print this item

  programming OpenOffice with External Python Project
Posted by: bobthebuilder44 - Apr-07-2023, 05:24 AM - Forum: General Coding Help - Replies (1)

I am unable to program Openoffice documents from a python project.

Here is my Python code:

[python]filename = 'somefile.ods'

import Danny.OOo..... More

Print this item

  attempt to split values from within a dataframe column
Posted by: mbrown009 - Apr-07-2023, 01:54 AM - Forum: Data Science - Replies (9)

I have the following code snippet from my script

[python]cleandata["year3paytest"] = cleandata.apply(lambda x: semiannualpayments(x["owneroccupancy..... More

Print this item

  Asyncio weird behaviour
Posted by: vugz - Apr-06-2023, 09:53 PM - Forum: General Coding Help - Replies (2)

I am having difficulties understanding the output of the following program

[python]
import asyncio

async def inner():
try:
print("Inside..... More

Print this item

  SSLContext for mTLS
Posted by: vshaik - Apr-05-2023, 07:58 PM - Forum: General Coding Help - No Replies

Hello,

I need to sign my http request using a cert and a key.

[python]ctx = ssl.create_default_context()
ctx.load_cert_chain(certfile="C:/tes..... More

Print this item

  Sum up Time difference
Posted by: tester_V - Apr-05-2023, 05:15 AM - Forum: General Coding Help - Replies (10)

Greetings!
I’m calculating the time difference between some start and finish time stamps and need to sum up the outcome for each file.
Here is a sni..... More

Print this item

  Math python question
Posted by: Deonvek - Apr-05-2023, 02:04 AM - Forum: General Coding Help - Replies (6)

But the highlight of my blog post was definitely my collection of anal sex sites. From big-name production studios to independent creators, I had it a..... More

Print this item

  Using log to calculate difference
Posted by: EmBeck87 - Apr-04-2023, 07:56 PM - Forum: General Coding Help - Replies (1)

Hello, I have some code for diluting the difference between results using numpy.log. It goes like:

df[new value]=(np.log(df[values1]-nplog(df[values2..... More

Print this item

  Strange issue with tkcalendar
Posted by: dady - Apr-04-2023, 07:46 PM - Forum: General Coding Help - Replies (1)

Hi all,

Like it says in the subject i have a strange issue with tkcalendar.

I have this line of code on script 1.py:

[python]result = subproc..... More

Print this item

Question Responding correctly to HTTP request
Posted by: Calab - Apr-04-2023, 07:03 PM - Forum: Web Scraping & Web Development - Replies (2)

I have a Linux host that is running Apache. I am able to execute my Python 3 scripts on that host using a web request.

My problem is that I don't ..... More

Print this item

  How to add list to dictionary?
Posted by: Kull_Khan - Apr-03-2023, 07:08 PM - Forum: General Coding Help - Replies (3)

Hey, how would I add a nested list to a dictionary based on the dictionary key and list element. Say the dictionary represented the columns of a datas..... More

Print this item

  Sum of changing general term
Posted by: Vantin19 - Apr-03-2023, 06:58 PM - Forum: General Coding Help - Replies (2)

Good evening everyone,
I want to compute every possible result of this sum:

\[ v= \sum_{k=1}^j 9 + \sum_{k=1}^{10-j} \delta(v_k) = 2\cdot 40 \te..... More


Attached Files

Thumbnail(s)
   
Print this item

Question Extracting Version Number from a String
Posted by: britesc - Apr-03-2023, 05:45 PM - Forum: General Coding Help - Replies (2)

Hi,
I would like to be able to extract the version number (nimbers and ,) from a string.
I can get the result but only if I use 1 type of delimeter..... More

Print this item

  find random numbers that are = to the first 2 number of a list.
Posted by: Frankduc - Apr-03-2023, 01:58 PM - Forum: General Coding Help - Replies (23)

Hello,

I have a list. start_list = [1,2] and a random_list[]

My goal is to find 4 random numbers where the 2 first numbers are the same as my st..... More

Print this item

  Flask: sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked
Posted by: pythonpaul32 - Apr-03-2023, 01:02 PM - Forum: Web Scraping & Web Development - Replies (1)

Hi,

I am trying to update a database table and I keep getting this error:

'sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  gpiozero buttons stop wor... 1 hour ago duckredbeard deanhystad General Codin...
  How to package code for d... 5 hours ago mayukun snippsat General Codin...
  pip3 install certifi fail... 07-15, 08:52 rb9594 Pedroski55 General Codin...
  My first python game : Ti... 07-15, 07:45 ForsakenDusk walterliz Game Developm...
  A penny doubled every day... 07-15, 07:35 esoyboy walterliz Homework
  Exercise on reading a chu... 07-15, 07:31 Nit_Picker walterliz Homework
  While loop is terminating... 07-15, 07:29 jumpsworthnow walterliz Homework
  Custom Sorting List of Di... 07-15, 07:28 aryasinner walterliz Homework
  Unable to define function... 07-15, 07:26 gmonroe walterliz Homework
  RemoTe server operation w... 07-14, 10:14 mario17 snippsat General Codin...
  Qt Event Filtering 07-14, 09:36 deanhystad deanhystad GUI
Most views
  The best Prog... 572714
  Tutorial Requ... 485779
  Web Scraping ... 437170
  Newbie with P... 380135
  Thread remain... 351391
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 451
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12072
buran 8174
snippsat 7353
deanhystad 6860
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Dawinch Today
ShanePulse Today
augustuswest Today
Yuvaraju Today
GPX005631 Today

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020