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,932
» Latest member: XenonBlack
» Forum threads: 38,721
» Forum posts: 175,502

Full Statistics

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

Latest Threads
Too much space between gr...
Forum: GUI
Last Post: RonR
6 hours ago
» Replies: 2
» Views: 874
How Reliable Is Assignmen...
Forum: News and Discussions
Last Post: tobey12
9 hours ago
» Replies: 0
» Views: 52
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Today, 07:07 AM
» Replies: 1
» Views: 353
403 Error
Forum: Web Scraping & Web Development
Last Post: snippsat
Yesterday, 08:58 PM
» Replies: 8
» Views: 2,463
real community
Forum: News and Discussions
Last Post: decuser
Yesterday, 08:16 PM
» Replies: 3
» Views: 1,525
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Yesterday, 06:45 PM
» Replies: 1
» Views: 393
looking for help
Forum: Bar
Last Post: Azdaghost
Yesterday, 05:03 PM
» Replies: 0
» Views: 124
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Yesterday, 03:28 PM
» Replies: 7
» Views: 2,900
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,155
data input while debuggin...
Forum: General Coding Help
Last Post: deanhystad
Sep-14-2025, 03:32 PM
» Replies: 2
» Views: 840

 
  [PY QT APP]HOW TO uniform build and distribution for different platforms
Posted by: djibb - Jul-10-2023, 01:36 PM - Forum: GUI - Replies (1)

Hi,

I maintain an pyQt6 + Opencv application which works under Linux and Windows.
Actually, we have :

under Linux :
-> deb installer (..... More

Print this item

  Controlling program with TCP commands
Posted by: lavacode - Jul-10-2023, 08:06 AM - Forum: General Coding Help - Replies (1)

Hi! I'm still quite new to Python, so apologies if I'm missing something really basic..

I have this code, which has speech recognition and then sen..... More

Print this item

  Webscrape from my webpage and store in database and send to grafana
Posted by: Armond - Jul-10-2023, 06:32 AM - Forum: General Coding Help - Replies (2)

Hi!

I want to webscrape a value from my webpage and send it to a database every 5 minutes and upload it to grafana.
I have done the webscrape pyth..... More

Print this item

  Howto do motion event on solely window and not the widgets on it?
Posted by: janeik - Jul-10-2023, 06:14 AM - Forum: General Coding Help - Replies (3)

I have a single window (root):
window = customtkinter.CTk() which holds several widges as (mapview,labels,combos....).

I use this function to get ..... More

Print this item

  ModuleNotFoundError: No module named 'eyed3'
Posted by: Wimpy_Wellington - Jul-09-2023, 07:50 PM - Forum: General Coding Help - Replies (3)

Sorry, I am new to Python...

I am trying to use eyed3 to update the tags on a number of mp3 files. I found eyed3 mentioned in some posts on the i..... More

Print this item

  How come my python shells are different?
Posted by: SuchUmami - Jul-09-2023, 05:15 PM - Forum: General Coding Help - Replies (2)

I'm using a shell on my desktop and I'm also using a shell on a remote desktop. They are different and I'm not able to work with the remote desktop la..... More

Print this item

  Code understanding: Need help in understanding dictionary code
Posted by: jt123 - Jul-09-2023, 01:13 PM - Forum: General Coding Help - No Replies

Below code is working fine to sum the price for each items. But I could not understand how values-Keys are filled in ordered dict - d.

[python]from..... More

Print this item

  What is the difference between Command Prompt and Sublimes
Posted by: yaoyao22 - Jul-09-2023, 11:35 AM - Forum: General Coding Help - Replies (1)

There are some Python codes which can only be run in Command Prompt, and can only be run in Sublimes? I am a new user of Python. But I am very familia..... More

Print this item

  What is the best way to merged csv files and commit them to a database?
Posted by: SuchUmami - Jul-09-2023, 07:47 AM - Forum: General Coding Help - Replies (2)

I have several csv files with different kinds of data on them. Currently I am making a dataframe for each one and then merging the dataframes. I also ..... More

Print this item

  How to fix this error: ModuleNotFoundError: No module named 'notears'
Posted by: yaoyao22 - Jul-09-2023, 07:43 AM - Forum: General Coding Help - Replies (2)

I want to run linear.py from the below website. But I always am stuck at line 90 of linear.py. How to fix the error? The linear.py code can be seen he..... More

Print this item

  math problem for experts
Posted by: miltmobley - Jul-08-2023, 08:24 PM - Forum: General Coding Help - Replies (5)

While testing python code to rotate 3d points, I tried:

cos_ = np.cos((90.0/360.0) * (2.0*np.pi))

cos(90) was reported as 6.123234e-17, inst..... More

Print this item

  [solved] What is the best/pytonic way to import with dependency ?
Posted by: SpongeB0B - Jul-08-2023, 07:46 PM - Forum: General Coding Help - Replies (2)

Hi everyone,

I would like to create a module (let's call it FooBar) that I could import in few of my "main" programs.

But the functions w..... More

Print this item

  subprocess for executing over CLI
Posted by: flash77 - Jul-08-2023, 05:05 PM - Forum: General Coding Help - Replies (5)

Hi,

this is my first attempt to execute something via CLI using python - I'm totally unexperienced with "subprocesses"...

I'm trying to execute ..... More

Print this item

  [WORKED AROUND] Problem installing elitech-datareader, 'cannot import build_py_2to3'
Posted by: NeilUK - Jul-08-2023, 04:14 PM - Forum: General Coding Help - Replies (4)

I am running python 3.8.10 in a virtual environment on Linux Mint 20.3. They are both pretty much on plain vanilla defaults, I tend not to muck around..... More

Print this item

  What's the best way for multiple modules to handle database activity?
Posted by: SuchUmami - Jul-08-2023, 12:09 PM - Forum: General Coding Help - Replies (3)

When I write to databases I am currently using locks so that other modules don't run into errors. I am new to programming and I was just wondering wha..... More

Print this item

  Elo rating
Posted by: smartangel - Jul-08-2023, 12:00 PM - Forum: General Coding Help - Replies (1)

i want to create in python a code to calculate the elo ratings of players, each row is a game, every game starts with 1500 points, and the game being ..... More

Print this item

  Trying to compare string values in an if statement
Posted by: israelsattleen - Jul-08-2023, 02:21 AM - Forum: General Coding Help - Replies (1)

I am doing a tutorial where i get some string data input

lbsOrKgs = input ("is it in lbs or kgs")

now after getting that input all i want to do ..... More

Print this item

  Coding Error
Posted by: EddieG - Jul-07-2023, 01:57 PM - Forum: General Coding Help - Replies (2)

I am copying the text on the textbook for pygame but it is coming out as error when i run the code.Pls see the attached photo.[attachment=2449]I am c..... More


Attached Files

Thumbnail(s)
   
Print this item

  Convert dataframe from str back to datafarme
Posted by: Creepy - Jul-07-2023, 01:05 PM - Forum: General Coding Help - Replies (1)

Hi,

Am looking for help where I converted a dataframe in order for replace function to work?
Now am looking for way to convert it back to datafame..... More

Print this item

  What is all the info in the info window in Idle?
Posted by: Pedroski55 - Jul-07-2023, 04:16 AM - Forum: General Coding Help - Replies (3)

I only use Python for practical purposes, to do little jobs. I never found a task where I thought I need a class.

Today I was just looking at a cla..... More

Print this item

  Convert File to Data URL
Posted by: michaelnicol - Jul-06-2023, 10:25 PM - Forum: General Coding Help - Replies (3)

I have a STL, OBJ, and other CAD files stored on my server.

How can I convert those to a data URL?

I found the following library: https://pypi.o..... More

Print this item

  Change HID bytes using pywinusb.hid
Posted by: Stealthrt - Jul-06-2023, 03:36 PM - Forum: General Coding Help - No Replies

Hey all I am new to the Python world and need some help.

I have an HID device that I am needing to replace 0x00 with 0x01 and I have ..... More

Print this item

  qpython package error
Posted by: Creepy - Jul-06-2023, 02:18 PM - Forum: General Coding Help - Replies (5)

Hi,

Could you help me resolve the issue with package?
Re-installed a number of times, but still the same issue.

When I run my code, I get the b..... More

Print this item

  Put the new line after regex pattern
Posted by: stahorse - Jul-06-2023, 02:06 PM - Forum: Data Science - Replies (5)

Hi,
I have this code:

[quote]text = """MyCo Please have a look at this building’s premium. It looks to be a very high rate. <img width="874" hei..... More

Print this item

  Findall() ReGex
Posted by: stahorse - Jul-06-2023, 08:17 AM - Forum: Data Science - Replies (2)

Hi,

I have this regex:

[quote]content = """encoding="UTF-8"\?>(.*?)^<\?xml version="1.0"

MYCO Please have a look at this building’s premium. ..... More

Print this item

  Peaks in time domain
Posted by: frohr - Jul-06-2023, 02:56 AM - Forum: General Coding Help - No Replies

Hey all,
I have code to generate signal with some peaks and make hilbert - enveloping. But I have some peaks at start in time domain after applying h..... More

Print this item

  read file txt on my pc to telegram bot api
Posted by: Tupa - Jul-06-2023, 01:52 AM - Forum: General Coding Help - No Replies

how to read a text file called file.log and send to a bot in telegram.
I have the latest version of python, python-telegram-bot

[python]
#!/usr/b..... More

Print this item

  Oversampling using G-smote
Posted by: ark - Jul-05-2023, 08:34 PM - Forum: Data Science - Replies (1)

What are the necessary libraries or packages need to work with Geometric smote? And what are the other techniques available to over sample datasets wi..... More

Print this item

  Installing Python 3.8.11 from TGZ File
Posted by: michaelnicol - Jul-05-2023, 06:56 PM - Forum: General Coding Help - Replies (2)

I am attempting to install Python 3.8.11 for Windows from a TGZ file since no installer is available on the Python website.

Here is the files it gi..... More

Print this item

  Why am I getting this TypeError Exception?
Posted by: Affinity - Jul-05-2023, 03:18 PM - Forum: General Coding Help - Replies (8)

Please see the attached photo. This is my first Python program. It runs fine and the code appears to be the same as the instructors. Yet VSCode is ..... More


Attached Files

Thumbnail(s)
   
Print this item

  Apple II universe
Posted by: gridsleep - Jul-05-2023, 11:16 AM - Forum: News and Discussions - No Replies

I see several Apple II emulations written in Python or in progress. Is anyone working on an implementation of Python for Apple II, as opposed to of Ap..... More

Print this item

  Equivalent Python code from VBA
Posted by: Mishal0488 - Jul-05-2023, 08:43 AM - Forum: General Coding Help - Replies (4)

Hi Guys

Refer to the below code which is developed on Excel VBA, the code essentially opens Space Gass and passes the text to the Space Gass.
What..... More

Print this item

  Regular Expression
Posted by: stahorse - Jul-05-2023, 06:28 AM - Forum: Data Science - Replies (9)

Hi,

I have this code below:

Import re

[quote]text = """
ATT Please have a look at this building’s premium. It looks to be a very high rate...... More

Print this item

  importing serial
Posted by: Fklein23 - Jul-05-2023, 04:33 AM - Forum: General Coding Help - Replies (2)

I have a Python project I have been developing on Windows. (I wish I could use Linux for this project, because I would already be done)
My project ha..... More

Print this item

  Convert np Array A to networkx G
Posted by: IanAnderson - Jul-05-2023, 02:34 AM - Forum: General Coding Help - Replies (2)

Hi,

I am trying to convert the np array A to networkx G. I have the code "G = nx.from_numpy_array(A)" but I don't know if I need to do anything els..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [Tkinter] Too much space ... 6 hours ago RonR RonR GUI
  How Reliable Is Assignmen... 9 hours ago tobey12 tobey12 News and Disc...
  Another app idea - intera... Today, 07:07 decuser Lenowell News and Disc...
  403 Error Yesterday, 20:58 CaptainNewb snippsat Web Scraping ...
  real community Yesterday, 20:16 decuser decuser News and Disc...
  variable changing types f... Yesterday, 18:45 Azdaghost Gribouillis General Codin...
  looking for help Yesterday, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... Yesterday, 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... 575823
  Tutorial Requ... 497110
  Web Scraping ... 439833
  Newbie with P... 383532
  New Users Int... 365433
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+ 12087
buran 8174
snippsat 7367
deanhystad 6893
metulburr 5151
Top referrers
Googlepro 23
NonEntity 6
python 6
metulburr 6
buran 3
Newest members
XenonBlack Today
tobey12 Today
Lenowell Today
luisshulez6883 Yesterday
KennedyRichadGuerra Yesterday

User Panel Messages

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