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,467
» Latest member: Aymen
» Forum threads: 38,567
» Forum posts: 174,767

Full Statistics

Online Users
There are currently 535 online users.
» 2 Member(s) | 526 Guest(s)
Google, Yandex, Baidu, Google Image, Applebot, menator01, Aymen

Latest Threads
Review of a ping tool mad...
Forum: Code Review
Last Post: Axel_Erfurt
11 minutes ago
» Replies: 1
» Views: 55
ModuleNotFoundError: No m...
Forum: General Coding Help
Last Post: Wimpy_Wellington
39 minutes ago
» Replies: 3
» Views: 3,347
problems with netcdf if I...
Forum: General Coding Help
Last Post: Larz60+
11 hours ago
» Replies: 9
» Views: 421
Monitor Computer Internal...
Forum: General Coding Help
Last Post: deanhystad
Today, 01:52 AM
» Replies: 3
» Views: 185
total Noob question: Why ...
Forum: General Coding Help
Last Post: deanhystad
Yesterday, 06:15 PM
» Replies: 5
» Views: 238
robocopy question
Forum: Bar
Last Post: Amilia
Yesterday, 03:07 PM
» Replies: 4
» Views: 1,773
Noob programmer - game of...
Forum: Homework
Last Post: russellbeckwith
Yesterday, 08:37 AM
» Replies: 4
» Views: 1,468
How to use isintance with...
Forum: General Coding Help
Last Post: buran
May-08-2025, 01:22 PM
» Replies: 3
» Views: 288
Gomoku game problem
Forum: General Coding Help
Last Post: snl_9527
May-08-2025, 12:10 AM
» Replies: 6
» Views: 527
500 Internal Server error...
Forum: Web Scraping & Web Development
Last Post: Larz60+
May-07-2025, 05:04 PM
» Replies: 3
» Views: 265

 
  problem install somewhere package
Posted by: akbarza - Dec-27-2023, 01:08 PM - Forum: General Coding Help - Replies (1)

hi
i wanted to install somewhere package in my pc(win 10, python 3.11.5, i use idle), so
I installed it in cmd. below is what I did on cmd:..... More

Print this item

  How to run utilities from a Python package?
Posted by: LugosisGhost - Dec-27-2023, 10:53 AM - Forum: General Coding Help - Replies (1)

I have installed Python 3.9 in a VENV so that I can use the PyQT6 library (my understanding is that PyQT6 cannot be used with Python 3.12, so I used a..... More

Print this item

  Create Choices from .ods file columns
Posted by: cspower - Dec-27-2023, 05:57 AM - Forum: General Coding Help - Replies (3)

The code below works however it runs the function get_m_g() twice.
which takes you through the selection process a second time.
How do I get the re..... More

Print this item

  How to access values returned from inquirer
Posted by: cspower - Dec-26-2023, 08:31 PM - Forum: General Coding Help - Replies (6)

1. I'm using the code below and it works well.
I'm able to select my choices but I can't figure out how to access the choices so I can use the info..... More

Print this item

  problem with help(type(self)) in Idle
Posted by: akbarza - Dec-26-2023, 11:32 AM - Forum: General Coding Help - Replies (1)

hi
I use idle for Python learning.
in idle i wrote help(type) and then appeared a text that contained somethings as mro(self, / ) or __sizeof..... More

Print this item

  problem descriptors in Python
Posted by: akbarza - Dec-26-2023, 11:13 AM - Forum: General Coding Help - Replies (8)

hi
the below code is in address:
https://docs.python.org/3/howto/descriptor.html
[python..... More

Print this item

  ERROR WHILE INSTALLING PLAYSOUND MODULE
Posted by: satwants33 - Dec-26-2023, 07:39 AM - Forum: General Coding Help - Replies (2)

Hello Everyone,

I hope you all are good.

I am new to python world and facing some issue while installing play sound.Error below :

PS C:\Users..... More

Print this item

  How to fix this?
Posted by: James_S - Dec-25-2023, 08:51 PM - Forum: General Coding Help - Replies (1)

I have the following codes:

import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import seaborn as sns
import pandas as pd
i..... More

Print this item

  Python entropy calculation
Posted by: 12miki12 - Dec-25-2023, 08:24 PM - Forum: General Coding Help - Replies (1)

With this code in Python, I calculate the entropy value of a txt file based on trigrams, but something goes wrong, because the output value is 110.519..... More

Print this item

  Help needed in finding a library for this project
Posted by: PythonEnthusiast1729 - Dec-25-2023, 06:50 AM - Forum: General Coding Help - Replies (7)

Hey everyone, I just got an idea to make a automation project but I didn't know which library it needed. The automation project involves time, which m..... More

Print this item

  How to Connect to PostgreSQL Through Jump Server and SSH Tunnel using Python?
Posted by: nishans - Dec-24-2023, 09:28 AM - Forum: General Coding Help - Replies (1)

I want to connect my remote database using python. Below are the frontend configuration for DBever. I need to know how to connect to the DB.

[attac..... More


Attached Files

Thumbnail(s)
       
Print this item

  UART & I2C slow down a loop
Posted by: trix - Dec-23-2023, 05:37 PM - Forum: General Coding Help - Replies (4)

hello,

I am working on writing a program for a stepper motor with a driver (pulse/dir).
this is done with acc and decc.

in the part with the co..... More

Print this item

  output shape problem with np.arange
Posted by: alan6690 - Dec-23-2023, 10:53 AM - Forum: General Coding Help - Replies (5)

When I generate an array using np.arange(start=0, stop= 29 * 4.42, step=4.42), the output turns out to be an array of size (30,) where it should be of..... More

Print this item

  partial functions before knowing the values
Posted by: mikisDeWitte - Dec-22-2023, 03:04 PM - Forum: General Coding Help - Replies (4)

Hello python experts!

I'm working on a function ("salary_or_name_builder" in the example) that routes my input parameters to multiple functions.
I..... More

Print this item

  filtering a list of dictionary as per given criteria
Posted by: jss - Dec-22-2023, 12:26 PM - Forum: General Coding Help - Replies (5)

i have metadata and api_request as below.

[python]
metadata = [

{"path": "d/scripts", "name": "../"},
{"path": "d/scripts", "name": "..... More

Print this item

  uploading files from a ubuntu local directory to Minio storage container
Posted by: dchilambo - Dec-22-2023, 07:17 AM - Forum: General Coding Help - No Replies

I want to upload files (text and binary) from my local machine running ubuntu 20.04 to a Minio storage container also in the same machine.
below are..... More

Print this item

  Merging rows and adding columns based on matching index
Posted by: pythonnewbie78 - Dec-21-2023, 04:23 PM - Forum: Data Science - Replies (3)

Hello community, tried this a million different ways with pandas groupby but no luck, any help is appreciated. First year learning python and still tr..... More

Print this item

  Upload Files to Azure Storage Container
Posted by: phillyfa - Dec-21-2023, 03:53 PM - Forum: General Coding Help - Replies (6)

Hello,

I found the script online that uploads multiple JPG files. I changed it so I can upload multiple BLOB files, i.e.) csv, xls, etc. However,..... More

Print this item

  'pip' not recogmnized in windows prompt
Posted by: MaartenRo - Dec-21-2023, 08:09 AM - Forum: General Coding Help - Replies (1)

Hi,

I want to add a library in Python by typing

Quote:pip install python-docx
in de Windows command promp. I get the result[quote] 'pip' i..... More

Print this item

  Why I am not getting the Redirected codes using requests?
Posted by: nu1153495 - Dec-20-2023, 05:13 PM - Forum: General Coding Help - Replies (2)

Hi, thank you for spending your valuable time to help me. I have tried the following code to get the dead, redirected, alive URLs. But I am not gettin..... More

Print this item

  Virtual Env changing mysql connection string in python
Posted by: Fredesetes - Dec-20-2023, 04:06 PM - Forum: General Coding Help - No Replies

I have a script that uses a Virtual Environment and has a connection to mysql where the connection string has the host as localhost or 127.0.0.1, it w..... More

Print this item

Sad UnpicklingError: NEWOBJ expected an arg tuple.
Posted by: biyazelnut - Dec-20-2023, 03:16 AM - Forum: General Coding Help - No Replies

I'm new with this pickle and have to continue previous' code.

The code is about clustering data, and when I run, the error occurs:

[b]Unpickling..... More

Print this item

  openpyxl documentation
Posted by: OldMainframeProgrammer - Dec-19-2023, 09:25 PM - Forum: General Coding Help - Replies (3)

I started a project early last spring reading and updating an excel spreadsheet and got pulled off it for other activities. I'm now back to it. The ..... More

Print this item

  super() in class
Posted by: akbarza - Dec-19-2023, 11:57 AM - Forum: General Coding Help - Replies (1)

hi
in code:
[python]# from: https://roocket.ir/discuss/%D8%B9%D9%85%...8%B1%D8%AF-
# super-%D8%AF%D8%B1-%D8%A7%D8%B1%D8%AB-%D8%A8%D8%B1%D..... More

Print this item

Exclamation Please Help
Posted by: zohershmer - Dec-19-2023, 09:35 AM - Forum: Web Scraping & Web Development - Replies (5)

I need to fix this script

Thank you


[python]from selenium import webdriver
from time import sleep
import os
from selenium.webdriver.support..... More

Print this item

  Problem with flask on Mac
Posted by: David763 - Dec-17-2023, 07:17 PM - Forum: General Coding Help - Replies (13)

Hi everyone I’m running Mac OS Ventura 13.2 and I’m trying to install flask-mysqldb library using pip on the terminal by running the code :
pip in..... More

Print this item

  Create SQLite3 database with peewee
Posted by: Jim53_1980 - Dec-17-2023, 04:08 PM - Forum: General Coding Help - Replies (2)

Hello everybody,

I begin with peewee to create SQLite database. When I use the python code example supplied with the documentation, all works corre..... More

Print this item

  Multiplayer Tic Tac Toe
Posted by: shn - Dec-17-2023, 03:53 PM - Forum: Code sharing - No Replies

Hi all,
Here is a project that I developed to learn Twisted Python. It's a Tic Tac Toe game, where a player can create a room with a unique id and an..... More

Print this item

  response 404 or 500 when trying to get products/sales from woocommerce using python
Posted by: wailoonho - Dec-17-2023, 11:57 AM - Forum: Web Scraping & Web Development - No Replies

Hi
I'm trying to get product and sales data from woocommerce using python

here is my code

[python]
import json
from woocommerce import API
..... More

Print this item

  question about __slots__
Posted by: akbarza - Dec-17-2023, 07:10 AM - Forum: General Coding Help - Replies (1)

hi
in the code:( address of the code is line 2)
[python]# usage of slot to prevent of dynamical attribute change by user.
# https://realpython.com/..... More

Print this item

  Bar Chart
Posted by: James_S - Dec-17-2023, 06:27 AM - Forum: General Coding Help - Replies (5)

How to draw a bar chart of the column "CC" from a my.csv file (show below) to count occurrence in ascending order?

32, AA,BB,CC,DD,EE
41,monkey,do..... More

Print this item

  Rename first row in a CSV file
Posted by: James_S - Dec-17-2023, 12:57 AM - Forum: General Coding Help - Replies (3)

I don't know what I have done wrong. I want to rename the first row of the table:
[python]
renamed_df = pd.read_csv('my_data.csv')

# Change colum..... More

Print this item

  Colorama_EX
Posted by: alp3rkum - Dec-16-2023, 04:11 PM - Forum: Code sharing - No Replies

Ladies and gentlemen, here I am with my first public PyPI package. I've written an extension module to famous colorama module, which I've named as "co..... More


Attached Files

Thumbnail(s)
   
Print this item

  Checking for Validity of Variables
Posted by: RockBlok - Dec-16-2023, 03:53 PM - Forum: General Coding Help - Replies (2)

I'm playing around with globals and managing variables, and I want to be able to check if a variable exists without the program stopping. If the varia..... More

Print this item

Question [PyMuPDF] Grab all strings of a given size?
Posted by: Winfried - Dec-16-2023, 12:51 PM - Forum: General Coding Help - Replies (3)

Hello,

I need to loop through a bunch of PDFs, each containing one or more articles.

I notice titles can use different fonts, but all seem to ha..... More


Attached Files

Thumbnail(s)
   
Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Review of a ping tool mad... 11 minutes ago suburbanprojects Axel_Erfurt Code Review
  ModuleNotFoundError: No m... 39 minutes ago Wimpy_Wellington Wimpy_Wellington General Codin...
  problems with netcdf if I... 11 hours ago Blaubart Larz60+ General Codin...
  Monitor Computer Internal... Today, 01:52 EdMcCauley deanhystad General Codin...
  total Noob question: Why ... Yesterday, 18:15 MarkMan deanhystad General Codin...
  robocopy question Yesterday, 15:07 DPaul Amilia Bar
  Noob programmer - game of... Yesterday, 08:37 Dazzalac russellbeckwith Homework
  How to use isintance with... 05-08, 13:22 Azdaghost buran General Codin...
  Gomoku game problem 05-08, 00:10 snl_9527 snl_9527 General Codin...
  500 Internal Server error... 05-07, 17:04 ppowell777 Larz60+ Web Scraping ...
  How to put my game loop i... 05-07, 12:54 temlotresid6 ekaintan1590 Game Developm...
Most views
  The best Prog... 561241
  Tutorial Requ... 439403
  Web Scraping ... 426478
  Newbie with P... 358223
  Thread remain... 331312
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+ 12046
buran 8168
snippsat 7324
deanhystad 6823
metulburr 5151
Top referrers
Googlepro 22
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Aymen Today
jijoh Today
evating619 Today
vinovasg Today
saramalilsa34343 Yesterday

User Panel Messages

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