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,465
» Latest member: JeanChristophe
» Forum threads: 38,576
» Forum posts: 174,803

Full Statistics

Online Users
There are currently 498 online users.
» 2 Member(s) | 490 Guest(s)
Bing, Google, Mojeek, Apple, snippsat, buran

Latest Threads
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
2 hours ago
» Replies: 5
» Views: 188
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
3 hours ago
» Replies: 16
» Views: 1,007
class Blockage not projec...
Forum: General Coding Help
Last Post: Azdaghost
6 hours ago
» Replies: 0
» Views: 37
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
10 hours ago
» Replies: 1
» Views: 330
Pip help
Forum: General Coding Help
Last Post: Larz60+
Today, 05:57 AM
» Replies: 4
» Views: 322
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
Today, 01:12 AM
» Replies: 2
» Views: 948
Library Management System
Forum: Homework
Last Post: deanhystad
Yesterday, 01:56 AM
» Replies: 1
» Views: 162
smbus.SMBus i2c code whic...
Forum: General Coding Help
Last Post: NewbyTyro
May-12-2025, 03:51 PM
» Replies: 2
» Views: 279
Why are the PythonT symli...
Forum: News and Discussions
Last Post: gernophil
May-12-2025, 08:10 AM
» Replies: 0
» Views: 133
Send SMS from my phone nu...
Forum: General Coding Help
Last Post: TheTechNexus
May-11-2025, 05:48 PM
» Replies: 4
» Views: 3,817

 
  Trouble with installing python
Posted by: domingo251 - Sep-22-2023, 03:48 PM - Forum: General Coding Help - Replies (2)

I have a trouble with install python , i have windows 10 and two of my friends has 11 i can install it normally but when my friends trying nothing wor..... More

Print this item

  os.path.join() 'NoneType' confusion
Posted by: gowb0w - Sep-22-2023, 10:15 AM - Forum: General Coding Help - Replies (11)

Hi there !

this is an exercise to just save an audio file from a pdf. I want this file to be moved to a specific folder.

[python]
import pytt..... More

Print this item

  Generating accounting transactions data
Posted by: Emekadavid - Sep-22-2023, 09:00 AM - Forum: General Coding Help - No Replies

I was attempting to generate accounting transactions data for three years. I tried to use Faker but I got stuck at line 68:
"Date": fake.date_between..... More


Attached Files

.py   accounting_data.py (Size: 3.41 KB / Downloads: 164)
Print this item

Thumbs Up Convert word into pdf and copy table to outlook body in a prescribed format
Posted by: email2kmahe - Sep-22-2023, 08:28 AM - Forum: General Coding Help - Replies (1)

Hello Experts,

Looking for a Python script for the below requirements:

1.Convert word document into pdf and attach to the email
2.Copy few sect..... More


Attached Files

.docx   Output File for Outlook.docx (Size: 20.87 KB / Downloads: 172)
.docx   Input File.docx (Size: 19.25 KB / Downloads: 212)
Print this item

  Python Code for Preorder Traversal of a Binary Tree
Posted by: Bolt - Sep-22-2023, 08:18 AM - Forum: General Coding Help - Replies (1)

Hi everyone,

I'm currently working on implementing a preorder traversal, and I've been using the tutorial on ..... More

Print this item

  Python C Extension Module loading issue on Cygwin
Posted by: mesibo - Sep-22-2023, 05:41 AM - Forum: General Coding Help - No Replies

We have a real-time messaging Python module available on various platforms, including Linux, macOS, Window..... More

Print this item

  Failure to run source command
Posted by: middlestudent - Sep-22-2023, 02:00 AM - Forum: General Coding Help - Replies (2)

Dear All,

I am a Python beginner. I followed the instruction in https://github.com/mkocabas/VIBE/tree/master to run python command.

Yet, I coul..... More

Print this item

  Python installation for old MacOS
Posted by: Yonix - Sep-21-2023, 03:22 PM - Forum: General Coding Help - Replies (1)

My Mac is running old MacOs from 2011. I am trying to insall Python in the Mac for the 1st time.
Which version would run under the MacOs?

I am an..... More

Print this item

  Scraping Data from Website
Posted by: melkaray - Sep-21-2023, 02:00 PM - Forum: General Coding Help - Replies (3)

Hi, I am trying to learn Scraping Data from Website with python and i tried extract that list ( List of largest companies by revenue - Wikipedia ) but..... More

Print this item

  Move Files based on partial Match
Posted by: mohamedsalih12 - Sep-20-2023, 03:00 PM - Forum: General Coding Help - Replies (2)

I want to move files to folders having same name or having part of the file name. I have 60000 files, in the folder (D:/Source) . , there names look l..... More

Print this item

  PyPDF2 deprecation problem
Posted by: gowb0w - Sep-20-2023, 10:42 AM - Forum: General Coding Help - Replies (5)

hi there ! i am following a tutorial, and here's the code :

[python]import pyttsx3, PyPDF2

from PyPDF2 import PdfReader

pdfreader = PyPDF2.PdfRead..... More

Print this item

  PyRun_String equivalent in stable ABI
Posted by: nschloe - Sep-19-2023, 08:53 AM - Forum: General Coding Help - Replies (2)

I'd like to translate a Python/C++ project to the stable ABI. The project uses PyRun_String to exec/eval a literal string in Python. That function is ..... More

Print this item

  Reading in of line not working?
Posted by: garynewport - Sep-19-2023, 07:54 AM - Forum: General Coding Help - Replies (2)

Just posted about my file not working and realised, as soon as I finished, that I already knew the solution.

However, I'd like a more flexible solu..... More

Print this item

  python command interface
Posted by: cwc2 - Sep-19-2023, 03:49 AM - Forum: General Coding Help - Replies (5)

Brand new to python....I just downloaded from python site and I am watching a training video. The video is telling me to run python --version and all..... More

Print this item

Video Rendering math notation with ASCIIMath within Nodezator
Posted by: KennedyRichard - Sep-18-2023, 03:58 PM - Forum: Code sharing - No Replies

[Image: CDgj8yf.png]

Recently came up with a solution for rendering math notation with ASCIIMath markup within Nodezator. It ..... More

Print this item

  Installing packages of Conda / Miniconda
Posted by: Liki - Sep-18-2023, 11:50 AM - Forum: Data Science - Replies (12)

Hallo,

I've bought an Book "Data Science mit Python" and I'm trying to install necessary programms and featurs.

At first i installed
http://con..... More

Print this item

Photo Python code: While loop with if statement
Posted by: HAMOUDA - Sep-18-2023, 09:25 AM - Forum: General Coding Help - Replies (1)

Dear Friend,
I am a beginner in python.
I find it hard to understand the logic of the following issues:
1- why we use empty string?
2-Why when y..... More

Print this item

  Python Launcher Pops Up When Py-based App Is Running (Mac)
Posted by: radix_optimus - Sep-18-2023, 09:19 AM - Forum: General Coding Help - No Replies

Hello,

I'm running macOS Mojave with Python 2.7. I have an old Dashboard widget (last modified in 2009) that appears to use Python. The widget..... More

Print this item

  image conversion
Posted by: Skaperen - Sep-18-2023, 02:27 AM - Forum: GUI - Replies (7)

i'm thinking about the design of a (my first) GUI program. this program will need to read image files and display some or all of an image in some or ..... More

Print this item

  Pynput - One content on screen, another in the variable
Posted by: Valjean - Sep-17-2023, 11:43 PM - Forum: General Coding Help - Replies (4)

Hi guys, I am using Pynput library to listen for the keyboard events and store typed keys in a variable, which I will use further for a text expansion..... More

Print this item

  Python implementation of Longest Common Substring problem
Posted by: Bolt - Sep-17-2023, 08:31 PM - Forum: General Coding Help - No Replies

What is the longest common substring (LCS) of two strings?

The LCS of two strings is the longest sequence of characters that appears in both string..... More

Print this item

  max_minus_min_abs
Posted by: whatdoyoumeanitwontpassthru - Sep-17-2023, 08:07 PM - Forum: Homework - Replies (3)

I have to come up with a code for max_minus_min_abs but I am confused on where to enter the numbers I am passing through. This is what I am using

..... More

Print this item

Question Special Characters read-write
Posted by: Prisonfeed - Sep-17-2023, 08:07 PM - Forum: General Coding Help - Replies (1)

I have a directory filled with .gz text archives. To scan these archives, I use the following python code:

[python]
with gzip.open(logDir+"\\"..... More

Print this item

  for loops break when I call the list I'm looping through
Posted by: Radical - Sep-17-2023, 04:40 PM - Forum: General Coding Help - Replies (4)

I was trying out the for loops in Python, and I don't fully understand why it breaks.

When I type:

[python]
for i in catNames:
print(catNames[i]..... More

Print this item

Question Common understanding of output processing with conditional statement
Posted by: neail - Sep-17-2023, 06:24 AM - Forum: General Coding Help - Replies (6)

Hello,

Can anyone please explain why the output calls the Evaluation statement before printing the series?

And what is the process to print the ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Installation
Posted by: tultalk - Sep-16-2023, 10:20 PM - Forum: General Coding Help - Replies (1)

Not sure where to post!!

Error msg:

Message:
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve..... More

Print this item

  Help creating shell scrip for python file
Posted by: marciokoko - Sep-16-2023, 04:18 PM - Forum: General Coding Help - Replies (10)

Hi guys,

So Im reading through this git (https://github.com/cubapp/RasPi-EnviropH...ree/master) and the author writes:

[quote]I call..... More

Print this item

  Yet another unique identifier generator
Posted by: Gribouillis - Sep-16-2023, 08:14 AM - Forum: Code sharing - Replies (3)

This small module generates unique ever 11 letters identifiers by converting the number of nanoseconds since 1970 to a string. I know there are many w..... More

Print this item

  Trying to get counts/sum/percentages from pandas similar to pivot table
Posted by: cubangt - Sep-15-2023, 02:41 PM - Forum: General Coding Help - Replies (6)

I am restructuring this question as i have moved away from trying the JSON file since we dont have a server to host this page, and more trouble than i..... More

Print this item

  Unchangeable variables in a class?
Posted by: Calab - Sep-15-2023, 02:27 PM - Forum: General Coding Help - Replies (12)

I want a class that will accept a value, and provide some other values based on calculations from the original value. I do not want these calculated v..... More

Print this item

  Making tetrominos
Posted by: ragoo - Sep-15-2023, 10:34 AM - Forum: Game Development - Replies (11)

Hi. I don't think this is really a game development problem, it's more of a design problem best I can tell.

I've written a base Tetromino class that ..... More

Print this item

  QTreeView, StyleSheet resizes last column
Posted by: malonn - Sep-15-2023, 09:44 AM - Forum: GUI - Replies (2)

I am using a QTreeView with a StyleSheet set to it. This tree has checkboxes, and the style replaces the image for the empty, checke..... More

Print this item

  Pythonic from a C++ perspective
Posted by: PyDan - Sep-15-2023, 12:45 AM - Forum: General Coding Help - Replies (2)

In C++, entSel would look like

int acedEntSel(const ACHAR * str, ads_name entres, ads_point ptres );

where entres and ptres are out parameters, th..... More

Print this item

  Class member become static
Posted by: Quasar999 - Sep-14-2023, 10:17 PM - Forum: General Coding Help - Replies (1)

In the following code data must be an non static attribute of the class Node:

[python]class Node:
total = 0
def __init__(self,parent,data):
..... More

Print this item

  C++ programmer confused about why Python isn't working the way I intend
Posted by: Radical - Sep-14-2023, 04:53 PM - Forum: General Coding Help - Replies (2)

So I just started learning Python a few days ago and have written a very simple block of code, but it doesn't do what I think it would. Can you please..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Return a string or byte o... 2 hours ago Calab snippsat General Codin...
  problems with netcdf if I... 3 hours ago Blaubart Blaubart General Codin...
  class Blockage not projec... 6 hours ago Azdaghost Azdaghost General Codin...
  Retired and Learning Pyth... 10 hours ago breacsealgaire BarbaraGonzalez Code sharing
  Pip help Today, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... Today, 01:12 Wehaveall armorerratic General Codin...
  Library Management System Yesterday, 01:56 annajoy deanhystad Homework
  smbus.SMBus i2c code whic... 05-12, 15:51 NewbyTyro NewbyTyro General Codin...
  Why are the PythonT symli... 05-12, 08:10 gernophil gernophil News and Disc...
  Send SMS from my phone nu... 05-11, 17:48 aster TheTechNexus General Codin...
  [SOLVED] [Beautiful Soup]... 05-11, 17:32 Winfried Winfried General Codin...
Most views
  The best Prog... 563322
  Tutorial Requ... 447719
  Web Scraping ... 428337
  Newbie with P... 362269
  Thread remain... 334870
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7325
deanhystad 6826
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
JeanChristophe Today
EZEKIELGRAPHICSMEDIA Today
BarbaraGonzalez Today
william224477 Today
ellena Today

User Panel Messages

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