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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,251
» Latest member: ftk456
» Forum threads: 38,780
» Forum posts: 175,823

Full Statistics

Online Users
There are currently 49 online users.
» 0 Member(s) | 40 Guest(s)
Google, Bing, Mojeek, Facebook, Applebot

Latest Threads
New to python and coding
Forum: Homework
Last Post: lary_p
25 minutes ago
» Replies: 5
» Views: 132
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 07:26 PM
» Replies: 2
» Views: 77
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 221
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 345
Backward compatibility qu...
Forum: News and Discussions
Last Post: Gribouillis
Nov-11-2025, 05:07 AM
» Replies: 5
» Views: 307
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 133
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,634
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 229
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 218
New Users Introduce Yours...
Forum: Bar
Last Post: BelleroDev
Nov-07-2025, 09:09 AM
» Replies: 452
» Views: 376,623

 
  Problems converting bytes from socket.recvfrom
Posted by: riccardoob - Jun-24-2021, 03:50 PM - Forum: Networking - Replies (1)

I'm trying to convert bytes from the recvfrom function to text but i get this error:
[error]UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac ..... More

Print this item

  Syntax errors: Struggling to setup enviroment and load packages
Posted by: AH56 - Jun-24-2021, 12:35 PM - Forum: General Coding Help - Replies (5)

I'm trying to run code that accesses Flickr's API. The code is pre-designed and reportedly works, and it is available here:
https://github.com/ultral..... More

Print this item

  help with project of reading and searching big log file
Posted by: korenron - Jun-24-2021, 09:17 AM - Forum: General Coding Help - Replies (6)

Hello ,
I have a log file that in the end of the day get to ~ 6GB of text
now I want to be able to cut from it a certion windows of time
for exam..... More

Print this item

  add space on variable
Posted by: enigma619 - Jun-24-2021, 08:48 AM - Forum: General Coding Help - Replies (3)

Hi

i've a variable x which must contain 150 characters (every time)
On this variable sometimes I set just "bla" and sometimes "blablabla"
But on ..... More

Print this item

Question trouble with unexpected tokens
Posted by: 8iFwe8wK8 - Jun-24-2021, 08:28 AM - Forum: General Coding Help - Replies (2)

HI. I'am new to python but i was trying to do simple calcluator.
[python]def number1():
print("input first number")
input()
def number2():..... More

Print this item

  just add 2 codes together.
Posted by: lucky511 - Jun-24-2021, 08:24 AM - Forum: General Coding Help - Replies (3)

I need to add 2 codes together, please.
The first code :

[python]import os
import re
import json

from urllib.request im..... More

Print this item

  pyinstaller --onefile
Posted by: mhzr - Jun-24-2021, 06:38 AM - Forum: General Coding Help - Replies (6)

Hello,
I made a simple code and examine it many times on vscode, but when I made .exe file from that by using pyinstaller --onefile, it didn't work...... More


Attached Files

.py   SystemInfo.py (Size: 4.41 KB / Downloads: 511)
Print this item

  Python Help, New User, Computer Automation
Posted by: hexagonalyeti - Jun-24-2021, 05:31 AM - Forum: General Coding Help - Replies (2)

Hey so I am new to python and I am trying to code a specific thing. I am trying to in python run an infinite for loop and within that loop call cmd to..... More

Print this item

  Ever used shiv?
Posted by: Gribouillis - Jun-23-2021, 10:06 PM - Forum: News and Discussions - Replies (1)

I stumbled upon a blog post mentioning the shiv command to package complete python applica..... More

Print this item

  How can I find all combinations with a regular expression?
Posted by: AlekseyPython - Jun-23-2021, 04:48 PM - Forum: General Coding Help - No Replies

Python 3.9.5

I wrote the following code:
[python]pattern_space = '[\s]+'
pattern_name= '(.{4,})'
pattern = pattern_name + pattern_space + '(str..... More

Print this item

  Help converting python qt4 script to qt5
Posted by: Bladeforce - Jun-23-2021, 04:25 PM - Forum: GUI - Replies (6)

Hi,

Could someone help with converting this pyqt4 script to pyqt5 please?
When i run it i get this error:

[error]Traceback (most recent call la..... More


Attached Files

.py   wlcreator.py (Size: 33.36 KB / Downloads: 521)
Print this item

  Create Dict from multiple Lists with duplicate Keys
Posted by: rhat398 - Jun-23-2021, 11:53 AM - Forum: General Coding Help - Replies (10)

I have four lists named designName,creatorName,fabric_names and data the data list consist of multiple duplicate values which I want to map it to it's..... More

Print this item

  Created zipfile without all the subfolder?
Posted by: korenron - Jun-23-2021, 10:04 AM - Forum: General Coding Help - Replies (3)

Helllo ,
I want to create a zip file that contiens only 1 file
this is what I have done:
[python] with ZipFile(ZipLocation, 'w') as zipObj:
..... More

Print this item

Lightbulb [Solved] df.loc: write data in certain rows
Posted by: ju21878436312 - Jun-23-2021, 08:16 AM - Forum: General Coding Help - Replies (1)

I import a text file and would like to write a comment in certain rows, which I access with df.loc.
However, I get the error "[color=#C0392B]# When s..... More


Attached Files

.txt   2021-06-15_data.txt (Size: 14.02 KB / Downloads: 469)
Print this item

  How many boxes fit on a pallette?
Posted by: Pedroski55 - Jun-23-2021, 05:46 AM - Forum: News and Discussions - No Replies

My gf has a new job with a company which exports agro-chemicals.

She needs to know how many cartons fit on a pallette.

The inner dimensions of a 20'..... More

Print this item

  populating a list
Posted by: rwahdan - Jun-23-2021, 05:46 AM - Forum: Data Science - Replies (2)

Hi,

I have a list items and I have some other lists that is done through coding. I need later to check if there are any items in the other lists then..... More

Print this item

  Pexpect timesout before executing whole output
Posted by: eagerissac - Jun-23-2021, 03:30 AM - Forum: General Coding Help - No Replies

I'm new to python and pexpect and I'm writing a script that sends a bunch of commands to a board and prints the output of each command on my terminal...... More

Print this item

  interloper help appreciated combining two python3 scripts to add new conditions.
Posted by: Ricktoddfrank - Jun-22-2021, 10:24 PM - Forum: General Coding Help - No Replies

First off I apologize if I use terminology wrong, I don't know python coding but got help from an expert, currently unavailable, who made me a few com..... More

Print this item

  I have a syntax error!
Posted by: rohes_kaugummi - Jun-22-2021, 09:21 PM - Forum: General Coding Help - Replies (3)

Hello, i have been trying to make a guess the number game as a beginner project. I am very new to coding and wrote the following code:

[python]impo..... More

Print this item

  Hi, I need some guidance with the dialogue for my chatbot
Posted by: aaron10500 - Jun-22-2021, 02:36 PM - Forum: Data Science - No Replies

For my dissertation i am going to be creating a mental health chatbot using TensorFlow. I've seen some people use csv files and others use JSON files ..... More

Print this item

Exclamation Path sacn problem
Posted by: lucky511 - Jun-22-2021, 10:59 AM - Forum: General Coding Help - Replies (10)

I have more than 1 profile in the Chrome browser, so I want to locate a file in all Chrome profiles how?
my code:
[python]def main():
local = o..... More

Print this item

  vars() can't be used in list interpretation?
Posted by: Cheng - Jun-22-2021, 10:25 AM - Forum: General Coding Help - Replies (3)

P.S. I am not sure why this the interpreter in this site does not recognize vars()... however, it appears that the interpreter in W3Schools works just..... More

Print this item

  IndexError: list index out of range
Posted by: Laplace12 - Jun-22-2021, 10:12 AM - Forum: General Coding Help - Replies (1)

Working with a data file to simplify it - my aim is to get the stuff in the file in columns, and I've started with splitting and printing only the nec..... More

Print this item

  Newbie Turtle if/then coordinates Problem
Posted by: Brent - Jun-22-2021, 08:32 AM - Forum: Game Development - Replies (1)

I'm new to Python & I'm making a Pong-style hockey game and have a problem with the (goal scoring OR puck bouncing) coordinates. When I code the follo..... More

Print this item

  reading remote active log file?
Posted by: korenron - Jun-22-2021, 08:25 AM - Forum: News and Discussions - Replies (3)

Hello ,
I want to be able to read a remote log file that run all the time
can I do this?
I have acess to the server , and can run the python app on ..... More

Print this item

  Class Instance
Posted by: angus1964 - Jun-22-2021, 07:54 AM - Forum: General Coding Help - Replies (4)

I have the code attached below. When I run it, after inputting names etc, once you enter first score i get the following error.

[quote]Traceback (m..... More

Print this item

  empty row in pandas dataframe
Posted by: rwahdan - Jun-22-2021, 07:22 AM - Forum: Data Science - Replies (3)

Hi,

I have a data frame that need to add empty line at the end of that. I also see from examples that it show NaN but I don't want that, I need it ..... More

Print this item

  Help with Scipy optimize for numerical problem
Posted by: Jbjbjb1 - Jun-22-2021, 05:03 AM - Forum: Data Science - No Replies

Hi,
I'm looking for some help with using Scipy optimize numerically. My problem statement is here https://stackoverflow.com/questions/68075954/how-to..... More

Print this item

  import module with syntax error
Posted by: Skaperen - Jun-21-2021, 10:56 PM - Forum: General Coding Help - Replies (7)

i'm importing a module that may have errors in the source code. i tried to catch it like:
[python]
try:
import flaky
except ImportError:
..... More

Print this item

  Trying to pathlib instead of os.path
Posted by: tester_V - Jun-21-2021, 09:06 PM - Forum: General Coding Help - Replies (4)

Greetings!
I'm having a hard time justifying why I would use pathlib libraries instead of os.path. Undecided
It is not intuitive and I have a ..... More

Print this item

  python seems to be skipping lines of code
Posted by: alansandbucket - Jun-21-2021, 08:49 PM - Forum: General Coding Help - Replies (1)

Hello! i wrote tetris in python using pygame the other day and am having a strange problem. There is a section of code that does not seem to run. here..... More

Print this item

  Problem with bash shell needed for my python project
Posted by: Larz60+ - Jun-21-2021, 06:56 PM - Forum: Bar - Replies (4)

Forgive me, There is no python in the following, though there will be (part of my next project).

Since I am so familiar with this forum, I thought ..... More

Print this item

  Running Miniconda on a Linux-Box: adding the vscode and Spyder to the whole system
Posted by: apollo - Jun-21-2021, 03:59 PM - Forum: Bar - Replies (2)

good day dear community,

Running Miniconda on a Linux-Box: adding the vscode and Spyder to the whole system

i have done lots of setups - for e..... More

Print this item

  REST API send_file decode64?
Posted by: korenron - Jun-21-2021, 01:47 PM - Forum: General Coding Help - No Replies

Hello ,
I have created a RESTAPI server using Flask that send me a file by request
[python]
ZipLocation = '/home/pi/logs/Data.zip'
return send_fi..... More

Print this item

  [solved] unexpected character after line continuation character
Posted by: paul18fr - Jun-21-2021, 01:10 PM - Forum: General Coding Help - Replies (4)

Hi

To higlight reading by adding comments, I'm looking for a way to split function arguments into several lines; nevertheless using backslash I'm f..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  New to python and coding 25 minutes ago lary_p lary_p Homework
  why is the image not show... Yesterday, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... Yesterday, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  Backward compatibility qu... 11-11, 05:07 yutaozhou Gribouillis News and Disc...
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
  New Users Introduce Yours... 11-07, 09:09 Yoriz BelleroDev Bar
  Best book on learning Pyt... 11-07, 06:07 almahdi mamta25 News and Disc...
Most views
  The best Prog... 578900
  Tutorial Requ... 510071
  Web Scraping ... 441933
  Newbie with P... 385945
  New Users Int... 376623
Most reputation
buran 581
snippsat 510
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12107
buran 8195
snippsat 7388
deanhystad 6908
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
ftk456 Yesterday
sarbogast Yesterday
bmurray Yesterday
kai_cow2710 Yesterday
Kacper 11-11

User Panel Messages

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