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,939
» Latest member: goodvicent
» Forum threads: 38,724
» Forum posts: 175,513

Full Statistics

Online Users
There are currently 47 online users.
» 0 Member(s) | 43 Guest(s)
Bing, Google, AOL, Mojeek

Latest Threads
private dating for adults
Forum: General Coding Help
Last Post: xyz987
2 hours ago
» Replies: 0
» Views: 24
NEED HELP, LOST OF INVEST...
Forum: General Coding Help
Last Post: goodvicent
5 hours ago
» Replies: 0
» Views: 77
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
10 hours ago
» Replies: 11
» Views: 4,098
what does % stand for in ...
Forum: General Coding Help
Last Post: arbiel
Sep-19-2025, 07:55 PM
» Replies: 2
» Views: 575
Scraping a page with log ...
Forum: Web Scraping & Web Development
Last Post: Hershien
Sep-19-2025, 12:30 PM
» Replies: 1
» Views: 3,513
C++ program embedding Pyt...
Forum: General Coding Help
Last Post: Alexandros
Sep-19-2025, 11:11 AM
» Replies: 4
» Views: 927
Too much space between gr...
Forum: GUI
Last Post: RonR
Sep-17-2025, 11:22 AM
» Replies: 4
» Views: 2,414
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Sep-17-2025, 10:31 AM
» Replies: 3
» Views: 1,269
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 1,472
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 2,440

 
  Programming a routing protocol
Posted by: leemao - Jul-11-2021, 06:36 PM - Forum: General Coding Help - Replies (2)

Hello,

I want to make a simple routing protocol similar to OSPF (or at least modify an existed one) in python. I found many protocols written in ot..... More

Print this item

  Hi need help for a course - complete beginner
Posted by: zach_s - Jul-11-2021, 02:20 PM - Forum: Homework - Replies (2)

Hi new to python and I need some help with one of my courses questions:
https://gyazo.com/7f963d31452efaa8906a3de2b08bbd80

I have this so far but ..... More


Attached Files

Thumbnail(s)
   
Print this item

Question Making a copy list in a function
Posted by: RuyCab - Jul-11-2021, 02:00 PM - Forum: General Coding Help - Replies (1)

I'm getting a error in the function (make_great). I saw that we use [:] to pass a copy of the list to a function, but it's not working.
Does someone ..... More

Print this item

  MYSQL.CONNECTOR ERROR
Posted by: DB1 - Jul-11-2021, 11:43 AM - Forum: General Coding Help - Replies (8)

I am trying to connect MySQL(8.0.25) and python(3.9.6) using mysql.connector but getting error.
[error]mysql.connector.errors.ProgrammingError: 1045 ..... More

Print this item

  Make Groups with the List Elements
Posted by: quest - Jul-11-2021, 08:35 AM - Forum: General Coding Help - Replies (2)

Hello,

I have pairs list:

pairs=[[A,B],[C,D],[Z,X]]
And I have also a queue list which is includes:
[python]
queue =[A,B..... More

Print this item

  get all the files in the path in a list?
Posted by: korenron - Jul-11-2021, 07:45 AM - Forum: General Coding Help - Replies (23)

Hello ,
I forgot how to write a path so I will have a list of all my files insside?

example will do the job: :-)
right now I'm using this line..... More

Print this item

  variable prints without being declared.
Posted by: ClockPillow - Jul-11-2021, 12:03 AM - Forum: General Coding Help - Replies (2)

I'm a beginner new to this site and I don't know if this has been posted before, so please be patient with me.
This isn't an error in as much as I'm..... More

Print this item

  Defining path
Posted by: erdemath - Jul-10-2021, 11:56 PM - Forum: General Coding Help - Replies (2)

I have problem with defining paths to different folders to call different modules. To give an example,

folder1 > module1.py
folder2 > module2.py
..... More

Print this item

  UART Serial Read & Write to MP3 Player Doesn't Work
Posted by: bill_z - Jul-10-2021, 08:55 PM - Forum: General Coding Help - Replies (15)

Not only am I a beginner to Python3 but I’m a beginner to reading and writing via serial port on a Raspberry PI (dev/ttyS0). I’m trying to communicat..... More

Print this item

  Tuple to bytes
Posted by: JohnnyCoffee - Jul-10-2021, 05:15 PM - Forum: General Coding Help - Replies (4)

How can I convert a tuple to bytes ?

Print this item

  Using SoX in Python to Increase mp3 Bitrate
Posted by: DRT - Jul-10-2021, 04:37 PM - Forum: General Coding Help - Replies (1)

I am trying to increase the bitrate on an mp3 in an audio archiving program written in Python, that uses SoX.

Here's a portion of the code:

[pyt..... More

Print this item

  scraping video src fail
Posted by: jacklee26 - Jul-10-2021, 01:29 PM - Forum: General Coding Help - Replies (5)

HI I have a question related to HTML readers. I try to use selenium to scrap the video, but it seems not working. I just want to grab the src link. i ..... More

Print this item

  Adding an ascending number [SOLVED]
Posted by: AlphaInc - Jul-10-2021, 01:19 PM - Forum: General Coding Help - Replies (3)

Hello everybody,

I have a mail script written in python and now I want to add an ascending number in my script like this:

emailContent = "Text 1..... More

Print this item

  How to fetch database row values and display it in some labels
Posted by: Lalremruata - Jul-10-2021, 11:04 AM - Forum: News and Discussions - No Replies

I want to fetch database row values and display it in some labels based upon the selected value of combo box.

The combo box successfully display 'i..... More

Print this item

  script with 473 lines and 21595 bytes
Posted by: Skaperen - Jul-10-2021, 01:45 AM - Forum: Board - No Replies

people want to see source. is it OK to post the script if it has 473 lines and 21595 bytes or should i just post a URL to it?

Print this item

  Index List
Posted by: a04j - Jul-09-2021, 10:52 PM - Forum: Homework - Replies (2)

Write a function that returns a new list from the input list with a string xy inserted before the first 0, but only if this 0 is followed by other zer..... More

Print this item

  [solved] Sort list
Posted by: paul18fr - Jul-09-2021, 05:21 PM - Forum: General Coding Help - Replies (5)

Hi

I've been trapped by names I've been getting in a list; I spent some time in looking in internet to find a way; in the current example, I want t..... More

Print this item

  Clicking Every Page and Attachment on Website
Posted by: shoulddt - Jul-09-2021, 11:44 AM - Forum: General Coding Help - Replies (1)

Hello,
I need to develop a code that navigates to a website and then finds all possible pages on the site and clicks on them. Also, I would like it t..... More

Print this item

  python 3: TypeError: a bytes-like object is required, not 'str'
Posted by: wardancer84 - Jul-09-2021, 08:37 AM - Forum: General Coding Help - Replies (3)

hey all,

i know this might be a dull question, but i dont get it...

this works in python2

[python]#!/usr/bin/env python

import subprocess..... More

Print this item

  Using Excel Cell As A Variable In A Loop
Posted by: knight2000 - Jul-09-2021, 07:10 AM - Forum: General Coding Help - Replies (7)

Hey guys,

In trying to learn more about webscraping and as such I've set myself a challenge to try and scrape data off a few pages within the same ..... More

Print this item

  semantics of open(buffering=-1) ?
Posted by: Skaperen - Jul-09-2021, 12:26 AM - Forum: News and Discussions - Replies (4)

the library reference manual shows for open() that the keyword argument buffering= has a default value of -1. it does not explai..... More

Print this item

  PyPI XMLRPC Search Disabled
Posted by: Skaperen - Jul-08-2021, 10:43 PM - Forum: News and Discussions - Replies (4)

it's been a while since they made this decision. are they working on a way to do this more efficiently than XMLRPC ?

Print this item

  Encountering `importlib_metadata.PackageNotFoundError` trying to run console script
Posted by: gretchenfrage - Jul-08-2021, 09:26 PM - Forum: General Coding Help - No Replies

# Background

I have a pipenv workspace which is structured like this:

[code]
|- Pipfile
|- Pipfile.lock
|- assetdb-SNAPSHOT/
|- setup.py..... More

Print this item

  Help i don't know how to fix this
Posted by: izmamonke - Jul-08-2021, 04:00 PM - Forum: General Coding Help - Replies (2)

Hi im new on pygame programming and when I want to make the "world" variable with the "World" class it gives me error how can I fix it?
[python]impo..... More

Print this item

  An IF statement with a List variable
Posted by: dedesssse - Jul-08-2021, 02:54 PM - Forum: General Coding Help - Replies (3)

I'm trying to make it so if i enter a "Woman, girl or lady it will do the if statement

[python]isfemale = ["woman", "girl", "lady", ]
isfemale = i..... More

Print this item

  CyperSecurity Using Python HomeWork
Posted by: ward1995 - Jul-08-2021, 02:33 PM - Forum: Homework - Replies (1)

I Need Help in This Exercises Please

Final exercise in the Network Infrastructure Programming course - 5741
1 Mission
Write / write a program in ..... More

Print this item

  Extract Href URL and Text From List
Posted by: knight2000 - Jul-08-2021, 11:32 AM - Forum: Web Scraping & Web Development - Replies (2)

Hello all,

I'm new to Python and I'm trying to practice some webscraping by challenging myself to try to extract various elements from different w..... More

Print this item

  How to redraw an existing image to a different image TkInter
Posted by: zazas321 - Jul-08-2021, 10:22 AM - Forum: GUI - Replies (6)

Hello. I have a tkinter application running and I am trying to come up with a solution. I will explain the scenario briefly:

On my tkinter applicat..... More

Print this item

  The CSV is not been properly created.
Posted by: tsurubaso - Jul-08-2021, 01:24 AM - Forum: General Coding Help - Replies (4)

https://pastebin.com/z82Pv9Wm

Hello to all I hope you are all well.

I have not a super level in Python, surviving barely.
My program was workin..... More

Print this item

  Building Mapnik for a pyenv python.
Posted by: Larz60+ - Jul-07-2021, 11:29 PM - Forum: Bar - No Replies

Mapnik is a package that displays images with maps generated by openstreetmap, or in my case Switch2osm.
it's home page is https://mapnik.org/.
It i..... More

Print this item

  GJL Summer Jam - Showcase your skills to industry professionals!
Posted by: WanderingOwl - Jul-07-2021, 09:25 PM - Forum: News and Discussions - No Replies

Games Jobs Live is excited to announce the next Game Parade game jam, kicking off on Sunday 11th July! The jam lasts a week, but you'll be able to su..... More

Print this item

  sqlite3 insert date
Posted by: rwahdan - Jul-07-2021, 08:31 PM - Forum: GUI - Replies (1)

Hi,

I have a table that has thedate field with text data type. I am trying to insert current date:

[python]
c2.execute("INSERT INTO exam_re..... More

Print this item

  Partial Matching Rows In Pandas DataFrame Query
Posted by: eddywinch82 - Jul-07-2021, 07:40 PM - Forum: General Coding Help - Replies (1)

Hi there,

I have the following Part of a Python Code, which deletes DataFrame Rows from the last three Urls, if there is matching Data in the first..... More

Print this item

  ASCII-Codec in Python3 [SOLVED]
Posted by: AlphaInc - Jul-07-2021, 06:15 PM - Forum: General Coding Help - Replies (6)

Hello everyony,

I have a Python-Script which worked fine under Python2 but when I try to run it in Python3 I get the following error:

[python]Tr..... More

Print this item

  requesting help for a faster alternative of pd.groupby
Posted by: zollen - Jul-07-2021, 05:29 PM - Forum: General Coding Help - Replies (1)

I am new to python. I have two panda dataframes, they need to be merged conditionally.

[python]
group= df.groupby(['index1', 'index2'])['counts']...... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  private dating for adults 2 hours ago xyz987 xyz987 General Codin...
  NEED HELP, LOST OF INVEST... 5 hours ago goodvicent goodvicent General Codin...
  403 Error 10 hours ago CaptainNewb snippsat Web Scraping ...
  what does % stand for in ... 09-19, 19:55 arbiel arbiel General Codin...
  Scraping a page with log ... 09-19, 12:30 iamaghost Hershien Web Scraping ...
  C++ program embedding Pyt... 09-19, 11:11 Alexandros Alexandros General Codin...
  [Tkinter] Too much space ... 09-17, 11:22 RonR RonR GUI
  datetime in SQL query. 09-17, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
Most views
  The best Prog... 576410
  Tutorial Requ... 498185
  Web Scraping ... 440313
  Newbie with P... 384197
  New Users Int... 367197
Most reputation
buran 581
snippsat 508
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+ 12089
buran 8175
snippsat 7368
deanhystad 6891
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
goodvicent Yesterday
atylerfraces2254 Yesterday
AdrianCocian Yesterday
humanoidAI Yesterday
Baran12332 09-19

User Panel Messages

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