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,561
» Latest member: Gichardfex
» Forum threads: 38,665
» Forum posts: 175,213

Full Statistics

Online Users
There are currently 267 online users.
» 0 Member(s) | 261 Guest(s)
Baidu, Bing, Yandex

Latest Threads
gpiozero buttons stop wor...
Forum: General Coding Help
Last Post: deanhystad
2 hours ago
» Replies: 7
» Views: 292
Code stoped working
Forum: News and Discussions
Last Post: Axel_Erfurt
4 hours ago
» Replies: 1
» Views: 58
Made my first Python prog...
Forum: Game Development
Last Post: Ricky1178
Yesterday, 11:12 PM
» Replies: 8
» Views: 10,670
How to package code for d...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 11:36 AM
» Replies: 2
» Views: 181
pip3 install certifi fail...
Forum: General Coding Help
Last Post: Pedroski55
Jul-15-2025, 08:52 AM
» Replies: 1
» Views: 130
My first python game : Ti...
Forum: Game Development
Last Post: walterliz
Jul-15-2025, 07:45 AM
» Replies: 8
» Views: 55,796
A penny doubled every day...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:35 AM
» Replies: 6
» Views: 761
Exercise on reading a chu...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:31 AM
» Replies: 3
» Views: 1,221
While loop is terminating...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:29 AM
» Replies: 3
» Views: 459
Custom Sorting List of Di...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:28 AM
» Replies: 3
» Views: 249

 
  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

  Python debuggers
Posted by: jehoshua - Jul-04-2023, 10:51 PM - Forum: General Coding Help - Replies (8)

What do you use ? There is the command line pdb at https://docs.python.org/3/library/pdb.html

Then three GUI ones mentioned at https://stac..... More

Print this item

  Having trouble with a circula import
Posted by: SuchUmami - Jul-04-2023, 10:06 PM - Forum: General Coding Help - Replies (2)

When I try to run the sqlite3 module. It is saying it has a circula import. Here is the error:

[python]line 2, in <module>
import sqlite3
F..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  gpiozero buttons stop wor... 2 hours ago duckredbeard deanhystad General Codin...
  Code stoped working 4 hours ago OldMan57 Axel_Erfurt News and Disc...
  [PyGame] Made my first Py... Yesterday, 23:12 andrerocha1998 Ricky1178 Game Developm...
  How to package code for d... Yesterday, 11:36 mayukun snippsat General Codin...
  pip3 install certifi fail... 07-15, 08:52 rb9594 Pedroski55 General Codin...
  My first python game : Ti... 07-15, 07:45 ForsakenDusk walterliz Game Developm...
  A penny doubled every day... 07-15, 07:35 esoyboy walterliz Homework
  Exercise on reading a chu... 07-15, 07:31 Nit_Picker walterliz Homework
  While loop is terminating... 07-15, 07:29 jumpsworthnow walterliz Homework
  Custom Sorting List of Di... 07-15, 07:28 aryasinner walterliz Homework
  Unable to define function... 07-15, 07:26 gmonroe walterliz Homework
Most views
  The best Prog... 572727
  Tutorial Requ... 485786
  Web Scraping ... 437181
  Newbie with P... 380147
  Thread remain... 351394
Most reputation
buran 581
snippsat 507
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+ 12072
buran 8174
snippsat 7353
deanhystad 6861
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Gichardfex Today
OldMan57 Today
coolwaves4all Today
Stephenchers Today
chocheng211 Today

User Panel Messages

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