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,252
» Latest member: Jessicaadams
» Forum threads: 38,781
» Forum posts: 175,827

Full Statistics

Online Users
There are currently 41 online users.
» 0 Member(s) | 34 Guest(s)
Bing, AOL, Google, Facebook

Latest Threads
re.split issue
Forum: General Coding Help
Last Post: paul18fr
22 minutes ago
» Replies: 2
» Views: 26
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
2 hours ago
» Replies: 6
» Views: 323
New to python and coding
Forum: Homework
Last Post: lary_p
6 hours ago
» Replies: 5
» Views: 145
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 07:26 PM
» Replies: 2
» Views: 94
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Yesterday, 10:11 AM
» Replies: 6
» Views: 229
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 357
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 138
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,636
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 234
[openpyxl] Set the lockin...
Forum: General Coding Help
Last Post: Pedroski55
Nov-07-2025, 11:59 AM
» Replies: 3
» Views: 226

 
  Setting AST node lineno correctly
Posted by: voidtrance - Jun-16-2025, 08:54 PM - Forum: General Coding Help - Replies (5)

In my application, I am using inspect and ast to dynamically modify function code. What is happening is that a call to assertEQ(a, b) is being r..... More

Print this item

  Convert any Python expression to a string
Posted by: voidtrance - Jun-16-2025, 02:06 PM - Forum: General Coding Help - Replies (2)

I'd like to be able to convert any Python expressions to a string. Something like this:
[python]
def show(a):
print(stringify(a))

>>> show(5..... More

Print this item

  Venv - Python Virtual Environment on Raspberry Pi
Posted by: DanneA - Jun-16-2025, 01:25 PM - Forum: General Coding Help - Replies (4)

I try to follow a book and also Pythons document page to get a venv to work.
The install works but when I want to get a library through pip and I thi..... More

Print this item

  Webscraping: Attendance Local Community Council
Posted by: ThatsMe - Jun-16-2025, 09:28 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi everyone,

I'm trying to make some attendance statistics for my local community council for the last years. It looks like this online: https://p..... More

Print this item

  Predicitve Maintenance Project mit Arduino
Posted by: dannyg - Jun-14-2025, 01:51 PM - Forum: General Coding Help - Replies (2)

Hi everyone,
I’m planning a small project to simulate predictive maintenance using Arduino and Python.

The idea is: I’m working with a small motor..... More

Print this item

  How do select this table for webscraping?
Posted by: MarkMan - Jun-13-2025, 02:51 PM - Forum: Web Scraping & Web Development - Replies (12)

Hello to this great forum:
I am trying to learn how to scrape data from websites with python.
From this website:
..... More

Print this item

  I am a newbie I like to use the command line
Posted by: Mikel2025 - Jun-13-2025, 12:32 PM - Forum: General Coding Help - Replies (1)

Hello community

I am new to python.
I have a very simple question:
I am a professional and testing python on a Cooperate Laptop which is clearly ..... More

Print this item

  can't use pyrepl: bad magic number in 'enum'
Posted by: eliastw85 - Jun-13-2025, 11:45 AM - Forum: News and Discussions - Replies (2)

Greetings,

How can I resolve the following error? Can't use pyrepl: bad magic number in 'enum' : b'\xd1\xf2\r\n' ?
I am using Python 3.13.4.

Thank y..... More

Print this item

  Challenge: Token
Posted by: Azdaghost - Jun-12-2025, 01:22 PM - Forum: Bar - Replies (2)

Hello Python Community!
I have a challenge:

Can you add 1 + 2 while only using the tokens?

RULES:
You cant use any modules
You cant create ne..... More

Print this item

Question Find windows and send keys?
Posted by: Winfried - Jun-12-2025, 08:16 AM - Forum: General Coding Help - Replies (1)

Hello,

On Windows at least, I wonder if Python can 1) find a window, and 2) simulate typing keys.

Currently, I run an AutoIt just for this, so ..... More

Print this item

  Port forwarding with fritzconnection
Posted by: timonick - Jun-12-2025, 05:01 AM - Forum: Networking - Replies (3)

Hey, I want to temporarily open ports using a Python script. I want to use fritzconnection for this. But I keep getting error 600 ("Argument Value Inv..... More

Print this item

  Unexpected token ';'
Posted by: Azdaghost - Jun-11-2025, 06:14 PM - Forum: General Coding Help - Replies (3)

Hello Python Community!
This is driving me insane, I keep getting this error:

Error:
Unexcepted token ';'
It dosen't give me which line i..... More

Print this item

Question Enabling tracebacks in Voila programatically
Posted by: Calab - Jun-11-2025, 01:08 PM - Forum: General Coding Help - Replies (2)

I have some code in a Jupyter notebook. When I run it locally. It works as expected. If I use Voila to render the notebook locally it still works. Whe..... More

Print this item

  How do I cancel a function while it's still running?
Posted by: The_Fruitass - Jun-10-2025, 09:16 PM - Forum: General Coding Help - Replies (4)

Good day!
My current project is to make a software to move a thing using motors.
What I have set up is an Interval move function, to move the thing o..... More

Print this item

  How scan all ips from main databse
Posted by: ramin_malek - Jun-10-2025, 05:31 AM - Forum: Networking - Replies (1)

   
Hi a want write code in python scan all ips in main database by nmap specify port by protocol ips by subnet if port 80 open add /3..... More

Print this item

  .value changing
Posted by: Azdaghost - Jun-09-2025, 02:11 PM - Forum: General Coding Help - Replies (1)

Hello! I'm trying to make a language and there's a problem.

Whenever I display the token, It displays something like this:
[python][TT_INT: 5][/py..... More

Print this item

  Crontab and python versions
Posted by: stsxbel - Jun-08-2025, 04:59 PM - Forum: General Coding Help - Replies (3)

Good day. Please help me figure this out. Ubuntu has 2 versions of python (3.6 and 3.9). Pymodbus (2.5.3 and 3.0) are installed via pip. So, when I ru..... More

Print this item

  Keyboard input on Android
Posted by: Lukas_Krejci - Jun-07-2025, 02:56 PM - Forum: Game Development - Replies (1)

Hello,
I am creating a simple game using pygame on Android platform and I am not able to receive any key events except for ESCAPE and arrow keys (the..... More

Print this item

  Help with code
Posted by: Ash - Jun-03-2025, 04:50 PM - Forum: Homework - Replies (5)

[python]import requests
import pyttsx3
import time

API_KEY = "ed13978dcbd44393abe5b31e8be20fef"
engine = pyttsx3.init()

def speaker(text):
..... More

Print this item

  Why cloudflare?
Posted by: Axel_Erfurt - Jun-02-2025, 07:58 PM - Forum: Board - Replies (7)

A cloudflare query has been annoying since today. Is that necessary?

Print this item

  List[] in Python needs so much times Machine Jumps and extra cost forMemMangament
Posted by: Codingdesigner12 - Jun-01-2025, 03:12 PM - Forum: Game Development - Replies (3)

With Machinery Perspectives

Print this item

Photo For Researching of the System built in Functions() for List(Array) in Python
Posted by: Codingdesigner12 - Jun-01-2025, 03:06 PM - Forum: Game Development - Replies (1)

[python]print ('Hello World')
goods1=[15,42,69];
goods2=[20,41,59];
goods3= [10,42,59];

goods1. append ("purple");
print(goods1,goods2,goods3..... More

Print this item

  NEW: Visualize Python Execution
Posted by: bterwijn - May-31-2025, 09:56 PM - Forum: News and Discussions - No Replies

Visualize your Python data to better understand your code using 'memory_graph': https://pypi.org/project/memory-graph/

Now available in:
- Visual Stu..... More

Print this item

  Start Idle in a virtual environment
Posted by: Pedroski55 - May-30-2025, 07:22 PM - Forum: General Coding Help - Replies (8)

This is a sad story.

Using my mobile phone and an app from Epson, I was setting up my printer to work with a new router. Everything was fine. Righ..... More

Print this item

  nltk installs but cannot be imported [SOLVED]
Posted by: sheepog - May-29-2025, 10:12 PM - Forum: General Coding Help - Replies (3)

I installed nltk in my virtual environment, but importing does not work. Please advise.
[output]
(venv) mel@Raccoonland:~/Documents/Foreign Countrie..... More

Print this item

  JavaScript File?
Posted by: Azdaghost - May-29-2025, 06:13 PM - Forum: Bar - Replies (1)

Hello! While I was debugging a project, I came across this:

var ρσ_ls, key; "6"
Anyone knows what it means? Gemini will just crash.

Print this item

  How to install Selenium on Python 3.6.15
Posted by: MarkMan - May-29-2025, 03:52 PM - Forum: Web Scraping & Web Development - Replies (4)

Hello,

I have an old computer with win7 and Python 3.6.16 installed. Is there a way to get Selenium installed and which version would i need?

G..... More

Print this item

  Using moviepy fails due to "ModuleNotFoundError: No module named 'pip._internal.utils
Posted by: sheepog - May-28-2025, 12:04 AM - Forum: General Coding Help - Replies (2)

[error]Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
..... More

Print this item

  EarnestPef
Posted by: Lhanelycle - May-27-2025, 09:18 PM - Forum: General Coding Help - No Replies

Hi there! Would you mind if I share your blog with my twitter group? There's a lot of people that I think would really appreciate your content. Please..... More

Print this item

  Error without reason
Posted by: Azdaghost - May-27-2025, 01:29 PM - Forum: General Coding Help - Replies (4)

Hello and I'm trying to make a custom language (again) and I came across this problem
I got an error but without an reason:

[error]
>>> 1
Traceb..... More

Print this item

Question [SOLVED] Open file, and insert space in string?
Posted by: Winfried - May-27-2025, 01:25 PM - Forum: General Coding Help - Replies (7)

Hello,

Before I look deeper, is there a simple way to loop through each line of a text file, and append a space within a string?

I need to perfo..... More

Print this item

  Nested Dictionaries, good programming practice?
Posted by: Curbie - May-26-2025, 09:06 PM - Forum: General Coding Help - Replies (6)

I’m still playing around with nested dictionaries trying to store an ancient and arcane file system in memory to implement a PC <> Alpha file transfer..... More


Attached Files

.txt   fs.txt (Size: 149.54 KB / Downloads: 89)
Print this item

  Picamera2 add text to camera preview
Posted by: GigiG - May-26-2025, 11:46 AM - Forum: General Coding Help - No Replies

I have a Picamera2 640*480 preview running on my 800*480 DSI LCD (see photo), so there is some free room at right (it's blue because I placed a blu im..... More


Attached Files

Thumbnail(s)
   
Print this item

  Enhancement for Python’s zipimport
Posted by: 14mhz - May-26-2025, 11:40 AM - Forum: Code sharing - Replies (1)

Hello~

There seem to be some little problems with Python's zipimport, so I tried to improve it.
Of course, zipimport is very very awesome. (Thanks to..... More

Print this item

  PYTHONHOME Variable correct setting
Posted by: msetzerii - May-25-2025, 11:48 PM - Forum: General Coding Help - No Replies

Running latest LibreOffice package on Fedora 42 saw message about recommendation to setting the PYTHONHOME environment variable.

Found lots of link..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  re.split issue 22 minutes ago paul18fr paul18fr General Codin...
  Backward compatibility qu... 2 hours ago yutaozhou noisefloor News and Disc...
  New to python and coding 6 hours 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
  [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
Most views
  The best Prog... 578911
  Tutorial Requ... 510123
  Web Scraping ... 441937
  Newbie with P... 385952
  New Users Int... 376712
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
Jessicaadams Today
ftk456 Yesterday
sarbogast Yesterday
bmurray Yesterday
kai_cow2710 Yesterday

User Panel Messages

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