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,934
» Latest member: alexguemez
» Forum threads: 38,721
» Forum posts: 175,508

Full Statistics

Online Users
There are currently 46 online users.
» 0 Member(s) | 36 Guest(s)
Bing, Google, Applebot, Twitter, AOL, Mojeek

Latest Threads
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
3 hours ago
» Replies: 9
» Views: 2,724
Too much space between gr...
Forum: GUI
Last Post: RonR
10 hours ago
» Replies: 4
» Views: 1,138
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
11 hours ago
» Replies: 3
» Views: 154
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Yesterday, 07:07 AM
» Replies: 1
» Views: 509
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,668
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 603
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 189
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,128
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,354
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 1,021

 
  Python Has Major Problems as Language
Posted by: Dave - May-05-2022, 01:48 PM - Forum: News and Discussions - Replies (13)

I will apologize ahead of time here. Python is great, and my preferred language, but it needs to have basic flaws fixed:

1.)Some variables are pass..... More

Print this item

  Adding row to df with df.loc[len(df.index)]
Posted by: Mark17 - May-05-2022, 01:35 PM - Forum: General Coding Help - Replies (2)

This works to add a list a as a new (last) row of a dataframe df:

df.loc[len(df.index)] = a
len(df.index) is an integer, ri..... More

Print this item

  Make console show after script was built with Pyinstaller --NOCONSOLE?
Posted by: H84Gabor - May-05-2022, 12:32 PM - Forum: General Coding Help - No Replies

Hi,

I'd be looking for a way to make the console appear after I build the script with pyinstaller using --NOCONSOLE. In most cases I do not need th..... More

Print this item

  Python Anytree - Is not of type 'NodeMixin' error
Posted by: georgebijum - May-05-2022, 09:46 AM - Forum: General Coding Help - Replies (3)

I am trying to build a Hierarchy from the below csv data:

Child,Parent,IsActive
11074165,11018432,NO
11094122,11033371,NO
11020499,11018277,NO
..... More

Print this item

  ModuleNotFoundError: No module named '_struct' when starting pip3
Posted by: yuhuihu - May-05-2022, 04:41 AM - Forum: General Coding Help - No Replies

My OS environment is openSUSE Tumbleweed.

I cloned the latest Python code from git.
[code]
git clone -b main --single-branch git@github.com:pyt..... More

Print this item

  how to populate a dataframe thru line iteration ?
Posted by: knob - May-05-2022, 12:48 AM - Forum: General Coding Help - No Replies

Good afternoon !
I need some help to approach this problem using python.
I'm currently processing a big text file, line by line.
During this itera..... More

Print this item

  NameError: name 'hash_value_x_t' is not defined
Posted by: Anldra12 - May-05-2022, 12:40 AM - Forum: General Coding Help - Replies (5)

Why happen the name hash_value_x_t not define
[python]def setup():
global hash_value_x_t
"""
Generates public key and master secr..... More

Print this item

  Why is copying and pasting a block now broken?
Posted by: WagmoreBarkless - May-04-2022, 11:36 PM - Forum: General Coding Help - Replies (2)

This is trivial, but... Wall

Henceforth, if I had a block of code:

code line 1
code line 2
code line 3
code line 4
..... More

Print this item

  Why is copying and pasting a block now broken?
Posted by: WagmoreBarkless - May-04-2022, 11:36 PM - Forum: General Coding Help - Replies (1)

This is trivial, but... Wall

Henceforth, if I had a block of code:

code line 1
code line 2
code line 3
code line 4
..... More

Print this item

  How to remove extra space from output list?
Posted by: longmen - May-04-2022, 09:04 PM - Forum: Homework - Replies (3)

Hi,

I have this input

P (0, 2,+1) (2, 0, -1) (0, 4,+1) (4, 0, -1)
and I would like to have it printed out this way [python][(0, 2..... More

Print this item

Lightbulb Code is Working As-Is, Looking for Pointers to Improve
Posted by: ki5nyz - May-04-2022, 08:40 PM - Forum: Code Review - Replies (4)

Raspbian10 (Buster) (Pi-Star image 4.1.6)
Python 2.7.16
My script is working properly, other than I still need to figure out how to set the callsign..... More

Print this item

  TypeError: 'dict_items' object does not support indexingw
Posted by: Skaperen - May-04-2022, 04:42 PM - Forum: News and Discussions - Replies (3)

why does 'dict_items' not support indexing? this is the object type you get from dict.items(). shouldn't it interface like a tuple?

Print this item

  Alarm system with state, class, enum.
Posted by: Frankduc - May-04-2022, 01:26 PM - Forum: General Coding Help - No Replies

Hello,

I have this assigment to do. An interface for an alarm system. I came up with this code at first.

[python]from time import sleep
import..... More

Print this item

  Json Parsing
Posted by: sshree43 - May-04-2022, 12:26 PM - Forum: General Coding Help - Replies (5)

Hi Expert,

i wanted to extract below objects from json file, (valueObject,valueString)

[python]"analyzeResult": {

"documentResults": [
..... More

Print this item

  Python Sqlite
Posted by: georgebijum - May-04-2022, 10:12 AM - Forum: General Coding Help - No Replies

Hi ,

I am using the sqlite3 package in python. I push data to Sqlite table using to_sql function and is then querying data from multiple tables as..... More

Print this item

  canvas size
Posted by: DPaul - May-04-2022, 07:23 AM - Forum: GUI - Replies (2)

Hi,
I have an app with a large canvas, showing images.
The canvas is configured:
[python]tifCanvas = Canvas(root, width = 1200, height = 950, relie..... More

Print this item

Question Can you put encoded strings into .txt files?
Posted by: Alivegamer - May-04-2022, 12:50 AM - Forum: General Coding Help - No Replies

I have been trying to encode a text and then put it into a txt file but it doesn't show correctly.
When it's in the variable : b'\xff\xfe\x00\x00b\x0..... More

Print this item

  Quick question/help regarding my variable
Posted by: Extra - May-04-2022, 12:41 AM - Forum: General Coding Help - Replies (5)

Hello,

My sellPrice variable won't work because it's taking price as a string and trying to multiply it to a number.

[error]
File "ListTest.py",..... More

Print this item

  If/elif help
Posted by: stupidanlearning - May-03-2022, 10:58 PM - Forum: General Coding Help - Replies (5)

Hello all! So I am starting to mess around with python, it's the first language I am learning, I am also learning independently.

I decided to try ..... More

Print this item

  validate the existing value and change the series
Posted by: datahub - May-03-2022, 08:00 PM - Forum: Data Science - No Replies

Hello Everyone.

I am new to the Python and this Forum. I have the requirement to generate the new set of dataset

Source Dataset

ID ..... More

Print this item

  can anyone train me to get a python job?
Posted by: MetsxxFan01 - May-03-2022, 07:21 PM - Forum: Jobs - No Replies

i'm a beginner when it comes to learning python. maybe you could train me through video chat. and maybe the job could be remote or work from home

Print this item

  inset countdown in panel
Posted by: Frankduc - May-03-2022, 06:26 PM - Forum: Game Development - Replies (6)

i am trying to create a countdown clock below the numbers.
I am king of stuck to how insert the timer in my actual panel without creating a new panel...... More

Print this item

  How to keep columns header on excel without change after export data to excel file?
Posted by: ahmedbarbary - May-03-2022, 05:46 PM - Forum: General Coding Help - No Replies

I work on sql server 2017 I run script depend on python language v 3.10 .

I need to export data to excel fileStudentExport.xlsx already exist and k..... More

Print this item

  how to mouse click a specific item in pygame?
Posted by: Frankduc - May-03-2022, 02:24 PM - Forum: General Coding Help - Replies (5)

hello,

I want to mouse click a specific item.
When you click Activé which is button_A this line appear: img = font.render("Veuillez entrer votre c..... More

Print this item

  Windows install does not create .exe, shortcut,etc to open
Posted by: hammer - May-03-2022, 12:56 PM - Forum: General Coding Help - Replies (4)

I used pynsist in linux to create an installer for windows of my python app.-no errors/warnings
When I looked into the nsis file it created, there w..... More

Print this item

Question How can I import a variable from another script without executing it
Posted by: ThomasFab - May-03-2022, 08:57 AM - Forum: General Coding Help - Replies (12)

I have a little beginner issue doing imports between scripts, maybe someone can help? Blush

I wrote 2 Modules:

[b]- B01_Import_CSV_V1.py[/..... More

Print this item

  Can't write to .txt after opening websocket
Posted by: gerald - May-03-2022, 03:40 AM - Forum: General Coding Help - Replies (5)

Hi everyone,

When I write to a txt file with this code i get no errors. However after I open a websocket I get a 'type error'
The code I use is:

[py..... More

Print this item

  IndexError: list index out of range
Posted by: Anldra12 - May-03-2022, 01:32 AM - Forum: General Coding Help - Replies (2)

A common error but i don't know the reason why list index out of range
[python]def runScheme(t_str, n_str, k, q, Field):
x_subi = [0]
..... More

Print this item

  can you please help me with this python code
Posted by: MetsxxFan01 - May-02-2022, 08:07 PM - Forum: General Coding Help - Replies (5)

[python]import json

try:
with (open("log.txt")) as file:
data = json.load(file)

print("data has been successfully retrieve..... More

Print this item

  pywin32: Outlook connection ends with 'operation aborted' on one machine
Posted by: tstone - May-02-2022, 05:13 PM - Forum: General Coding Help - No Replies

Hello Python Community!

I'm trying to create an MD5 hash of email contents in order to be able to identify it by its contents afterwards.
Also, th..... More

Print this item

  Buttons not working in tabs
Posted by: kenwatts275 - May-02-2022, 02:45 PM - Forum: General Coding Help - Replies (2)

I am trying to put buttons on my tabs. The buttons appear, but when I click them, nothing happens.
It looks like the code for the buttons gets run wh..... More

Print this item

  Python + PHP. Sending data from "Moodle" (php) to python CGI-script and get it back
Posted by: stanislav - May-02-2022, 02:02 PM - Forum: Networking - No Replies

I installed Learning Managment System (LMS) 'Moodle' to XAMPP local server. And there is instrument for file downloading, called "filepicker".

I wa..... More

Print this item

  Multiprocessing: first step
Posted by: paul18fr - May-02-2022, 01:58 PM - Forum: Data Science - No Replies

All

As ever evoqued in a previous post, I'm interested in using multiprocessing to speed-up some parts of my code:

Print this item

  Python 25 Line Challenge
Posted by: codingCat - May-02-2022, 01:08 PM - Forum: Code sharing - Replies (36)

What is the most interesting, useful or fun program that you can develop in 25 lines of Python or less?

Working on developing projects for my Intro..... More

Print this item

  [solved] Basic question on list matchiing
Posted by: paul18fr - May-02-2022, 10:17 AM - Forum: General Coding Help - Replies (7)

Hi
Sorry for that basic question, but I do not understand why the answer is always "no" when using simple quote between Y: where I'm missing somethin..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  403 Error 3 hours ago CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... 10 hours ago RonR RonR GUI
  datetime in SQL query. 11 hours ago Dibbley Dibbley General Codin...
  Another app idea - intera... Yesterday, 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...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 15:28 Bona2000 Bona2000 General Codin...
  Select Python comment (#)... 09-14, 23:27 SpongeB0B Pedroski55 General Codin...
  data input while debuggin... 09-14, 15:32 fred1232 deanhystad General Codin...
  New to Python and Pygame 09-14, 11:25 JMcM JMcM Game Developm...
Most views
  The best Prog... 575939
  Tutorial Requ... 497322
  Web Scraping ... 439913
  Newbie with P... 383648
  New Users Int... 365991
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+ 12088
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
NonEntity 6
python 6
buran 3
Newest members
alexguemez Today
Shadab Today
Dibbley Today
XenonBlack Yesterday
Lenowell Yesterday

User Panel Messages

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