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,399
» Latest member: zanathanlttle647
» Forum threads: 38,826
» Forum posts: 176,029

Full Statistics

Online Users
There are currently 46 online users.
» 0 Member(s) | 41 Guest(s)
Bing, Google, Mojeek, Internet Archive, AOL

Latest Threads
Fake Skating Pdf Format
Forum: General Coding Help
Last Post: zanathanlttle647
3 hours ago
» Replies: 0
» Views: 29
Shield Of Sparrows Pdf
Forum: General Coding Help
Last Post: zasophiatpo5446
3 hours ago
» Replies: 0
» Views: 19
dtmfgpo,guy678
Forum: General Coding Help
Last Post: GeraldNoive
3 hours ago
» Replies: 0
» Views: 26
Opencv findContours Q
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 12:11 AM
» Replies: 1
» Views: 120
Struggles I Faced While E...
Forum: Code Review
Last Post: padma121
Dec-29-2025, 09:12 AM
» Replies: 1
» Views: 4,601
Willing to pay for help w...
Forum: General Coding Help
Last Post: noisefloor
Dec-29-2025, 08:37 AM
» Replies: 4
» Views: 199
Create dataframe from the...
Forum: Data Science
Last Post: OtiliaGen
Dec-29-2025, 07:27 AM
» Replies: 7
» Views: 3,613
How to Integrate External...
Forum: General Coding Help
Last Post: noisefloor
Dec-27-2025, 06:21 PM
» Replies: 1
» Views: 168
Calling python from anoth...
Forum: General Coding Help
Last Post: eedjsa
Dec-27-2025, 04:06 PM
» Replies: 9
» Views: 324
IP address for users
Forum: Networking
Last Post: itx_sumeet
Dec-27-2025, 05:53 AM
» Replies: 4
» Views: 7,122

 
  check if entry is null
Posted by: rwahdan - Jun-25-2021, 03:37 PM - Forum: GUI - Replies (2)

Hi,

I am trying to check if an entry is null but not succeeded to do so.

[python]
cap_entry = sec_entry.get()
if cap_entry in str(image_ra..... More

Print this item

  Question on True expressions
Posted by: mgreen2251660 - Jun-25-2021, 02:29 PM - Forum: General Coding Help - Replies (2)

I am new to Python and I am taking a course in Python. I have an expression that I do not understand what the answer should be. My instructor gave m..... More

Print this item

  Flattening attribute access
Posted by: ruy - Jun-25-2021, 12:09 PM - Forum: General Coding Help - Replies (5)

Hi there

I have a class PrintValue that contains as attribute an instances of another class PrintMetaData. In ord..... More

Print this item

  Cryptographic message syntax CMS and Qualified Seal
Posted by: arno23 - Jun-25-2021, 11:01 AM - Forum: Networking - No Replies

I would need help with generate CMS and then when is generated, I need to add Qualified seal to thist object/file.

I have ZIP file that is encrypt ..... More

Print this item

  image in label not showing?
Posted by: rwahdan - Jun-25-2021, 09:49 AM - Forum: GUI - Replies (2)

Hi,

I am trying to show image in label but it is not showing.

[python]
image3 = tkinter.PhotoImage(file="1.png")
Label(cvv_screen, text="", im..... More

Print this item

  Reading Multiple text Files in pyhton
Posted by: Fatim - Jun-25-2021, 09:30 AM - Forum: General Coding Help - Replies (1)

I have been working on .txt format files. Almost 13 k files and wanted to extract Age and gender from all the files in separate csv file . I ha..... More

Print this item

  Nested Python functions (Dan Bader's book)
Posted by: Drone4four - Jun-25-2021, 08:56 AM - Forum: General Coding Help - Replies (4)

Check out this script:

[python]
def get_speak_func(volume):
def whisper(text):
return text.lower() + '...'
def yell(text):
return..... More

Print this item

  Why did they put a while loop here?
Posted by: Pedroski55 - Jun-25-2021, 03:21 AM - Forum: Game Development - Replies (2)

I know nothing about pygame, just started learning about it. I got the code below from here[/url[url=https://python-forum.io/thread-34091.html]..... More

Print this item

  Cannot print if 'sys.stdout' is in snipped
Posted by: tester_V - Jun-25-2021, 01:52 AM - Forum: Networking - Replies (2)

Greetings!
Sorry if this is the wrong place for the post!
I'm converting IPs to Hosts, and it works fine but I cannot print anything in the script b..... More

Print this item

  Incorrect Type Error
Posted by: milkycow - Jun-24-2021, 11:53 PM - Forum: General Coding Help - Replies (4)

Hi guys,

I am a Pythong newbie and I am coding using the sasPy package. I am just running an initial script from SAS to test integration and I am ..... More

Print this item

  Statsmodels Multiple Regression Syntax Error
Posted by: Burger - Jun-24-2021, 11:17 PM - Forum: Data Science - Replies (2)

I've been able to use the statsmodels.api regression when assigning variables to x and y with no issues, however, now I am trying to use the statsmode..... More

Print this item

  Best Fit In Python
Posted by: JoeDainton123 - Jun-24-2021, 07:49 PM - Forum: General Coding Help - Replies (2)

Hi all

I was wondering is anyone could give me some guidance on how to solve the following problem.

I have list of numbers that represent temper..... More


Attached Files

Thumbnail(s)
   
Print this item

  making : optional
Posted by: Skaperen - Jun-24-2021, 07:47 PM - Forum: News and Discussions - Replies (3)

is there any case where a compound statement (if, while, for, try, with) can be made without ending with a : character? i cannot find any in the Pyth..... More

Print this item

Smile Help making number analysis program
Posted by: Dainer - Jun-24-2021, 06:54 PM - Forum: General Coding Help - Replies (2)

Hello everybody

I need a code for number analysis. I imagine this can be done in Python and I think it would be rather easy task for somebody famil..... More

Print this item

  Installing Miniforge for Apple m1 Processor
Posted by: Led_Zeppelin - Jun-24-2021, 05:50 PM - Forum: General Coding Help - Replies (2)

I need help in understanding something. I have access to an Apple MacBook Air with an M1 processor. I want to take full advantage
of the M1 process..... More

Print this item

  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: 514)
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: 525)
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: 474)
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

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Fake Skating Pdf Format 3 hours ago zanathanlttle647 zanathanlttle647 General Codin...
  Shield Of Sparrows Pdf 3 hours ago zasophiatpo5446 zasophiatpo5446 General Codin...
  dtmfgpo,guy678 3 hours ago GeraldNoive GeraldNoive General Codin...
  Opencv findContours Q Yesterday, 00:11 jogl Pedroski55 General Codin...
  Struggles I Faced While E... 12-29, 09:12 baffa_dbt padma121 Code Review
  Willing to pay for help w... 12-29, 08:37 braillescribe noisefloor General Codin...
  Create dataframe from the... 12-29, 07:27 Calab OtiliaGen Data Science
  How to Integrate External... 12-27, 18:21 finallen321 noisefloor General Codin...
  Calling python from anoth... 12-27, 16:06 eedjsa eedjsa General Codin...
  IP address for users 12-27, 05:53 Robots itx_sumeet Networking
  Lottery generator (beginn... 12-27, 01:10 Hullari Pedroski55 General Codin...
Most views
  The best Prog... 580441
  Tutorial Requ... 519742
  Web Scraping ... 442789
  Newbie with P... 386996
  New Users Int... 386648
Most reputation
buran 581
snippsat 511
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
zanathanlttle647 Today
zasophiatpo5446 Today
GeraldNoive Today
aellatsz9602 Yesterday
cruisesfares Yesterday

User Panel Messages

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