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,935
» Latest member: tobey12
» Forum threads: 38,722
» Forum posts: 175,509

Full Statistics

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

Latest Threads
Why Is Assignment Help Au...
Forum: News and Discussions
Last Post: tobey12
48 minutes ago
» Replies: 0
» Views: 10
403 Error
Forum: Web Scraping & Web Development
Last Post: CaptainNewb
Yesterday, 05:56 PM
» Replies: 9
» Views: 2,800
Too much space between gr...
Forum: GUI
Last Post: RonR
Yesterday, 11:22 AM
» Replies: 4
» Views: 1,222
datetime in SQL query.
Forum: General Coding Help
Last Post: Dibbley
Yesterday, 10:31 AM
» Replies: 3
» Views: 242
Another app idea - intera...
Forum: News and Discussions
Last Post: Lenowell
Sep-16-2025, 07:07 AM
» Replies: 1
» Views: 560
real community
Forum: News and Discussions
Last Post: decuser
Sep-15-2025, 08:16 PM
» Replies: 3
» Views: 1,717
variable changing types f...
Forum: General Coding Help
Last Post: Gribouillis
Sep-15-2025, 06:45 PM
» Replies: 1
» Views: 660
looking for help
Forum: Bar
Last Post: Azdaghost
Sep-15-2025, 05:03 PM
» Replies: 0
» Views: 242
Seeking feedback: dynamic...
Forum: General Coding Help
Last Post: Bona2000
Sep-15-2025, 03:28 PM
» Replies: 7
» Views: 3,193
Select Python comment (#)...
Forum: General Coding Help
Last Post: Pedroski55
Sep-14-2025, 11:27 PM
» Replies: 6
» Views: 1,417

 
  convert a named tuple to a dictionary
Posted by: Skaperen - Mar-30-2022, 12:31 AM - Forum: General Coding Help - Replies (13)

is there a better way (like a built-in way) to convert a named tuple to a dictionary?

[python]
def named_tuple_to_dict(t):
return {n:getattr(..... More

Print this item

  Python Flask Realtime system printout (console) ffmpeg
Posted by: jttolleson - Mar-29-2022, 10:46 PM - Forum: General Coding Help - Replies (3)

Hey everyone - Jayson again; and now that i have started with flask i have attempted one of my older programming ideas with the addition of a realtim..... More

Print this item

  list, map and put of the Queue in the Tree Data Structure
Posted by: longmen - Mar-29-2022, 10:38 PM - Forum: Homework - Replies (6)

Hi, I wonder if anyone could explain me what does this line of code do " list(map(fringe.put, tree_struct))"? Thanks
[python]
def createTree(leafV..... More

Print this item

  Taking info from Json & using it in Python
Posted by: Extra - Mar-29-2022, 10:26 PM - Forum: General Coding Help - Replies (8)

Hello,

I have a json file filled with intents that I would like to use in my voice assistant.

I would like to have so it goes when I say one of ..... More

Print this item

  [SOLVED] Concat data from dictionary?
Posted by: Winfried - Mar-29-2022, 07:39 PM - Forum: General Coding Help - Replies (4)

Hello,

I don't know how to read all the data from a dictionary into a string:

[python]"""
ipconfig:

[{'addr': '192.168.188.213', 'netmask': ..... More

Print this item

  sqlalchemy could not find table
Posted by: 3lnyn0 - Mar-29-2022, 05:44 PM - Forum: General Coding Help - Replies (4)

Hi!
Please help me with the error below.
I also tried with the command: user_id = Column (String (13), ForeignKey ('users.user_id')) without child a..... More

Print this item

  Openpyxl-change value of cells in column based on value that currently occupies cells
Posted by: phillipaj1391 - Mar-29-2022, 04:54 PM - Forum: General Coding Help - Replies (5)

I am completely new to openpyxl so, as you can imagine, I am having pretty hard times when I try to make use of it.

I have an Excel report that con..... More

Print this item

  The formula in the function is not giving the correct value
Posted by: quest - Mar-29-2022, 02:59 PM - Forum: General Coding Help - Replies (1)

Here is my function
[python]def coefficients(_list,q_number):
paulis = list(product([i,x,y,z],repeat=q_number))
spaulis = list(product(['i'..... More

Print this item

  Tkinter text overlap
Posted by: Frankduc - Mar-29-2022, 01:50 PM - Forum: General Coding Help - Replies (3)

Hello,

I cant figure out why my text in upper left corner is overlaping when i switch the conversion from F to C and P to CM.

[python]from tkint..... More

Print this item

  Python SQL Help
Posted by: sschuldt - Mar-29-2022, 01:23 PM - Forum: General Coding Help - Replies (1)

I have the below code which is intended to execute a SQL (MSSQL) stored procedure that both updates some file names in a SQL table as well as return t..... More

Print this item

  Array Rotation Solution
Posted by: hannah - Mar-29-2022, 12:40 PM - Forum: General Coding Help - Replies (3)

Hello Community folks,

Hope you all are doing well.

So had been practising a few Python programs on Arrays. Need help understanding this very ..... More

Print this item

  Matplotlib - automatic update
Posted by: frohr - Mar-29-2022, 08:26 AM - Forum: General Coding Help - Replies (1)

Hi all,
I am reading data from serial and then plot them. Everytime I wan to read from serial I send a char and get required data.
I want to change my..... More

Print this item

  Symbolic integration with SymPy thrown an error
Posted by: YF1 - Mar-29-2022, 06:43 AM - Forum: News and Discussions - No Replies

I ran into a problem with SymPy.jl for symbolic integration,

[python]using SymPy
m = symbols(“m”, integer=true)
n = symbols(“n”, integer=true)
x..... More

Print this item

  Writing to External File
Posted by: DaveG - Mar-29-2022, 03:59 AM - Forum: General Coding Help - Replies (9)

I wonder if someone could point out why this script is not writing to a file. I can see the correct values populating the terminal but when I go to op..... More

Print this item

  Identifying keywords in text
Posted by: drchips - Mar-28-2022, 07:21 PM - Forum: General Coding Help - Replies (6)

Hi,

I'm a teacher and I'd like to create a program with my students which analyses a text file to find two specific words and then outputs all the..... More

Print this item

  CSV writer - no output??
Posted by: Clives - Mar-28-2022, 05:24 PM - Forum: General Coding Help - Replies (6)

I am unable to use Pandas on a Python 2.7 environment.
I am appending all output into a new file using the csv library.
I am having to use Visual Co..... More

Print this item

  Having strange results from an RFID HID card reader - I'm stuck
Posted by: orbisnz - Mar-28-2022, 02:52 AM - Forum: General Coding Help - Replies (1)

Hi all, and thanks for taking a look. I'm in the process of upgrading an old Python 2.7 program I wrote about 5 years ago to Python 3 as well as using..... More

Print this item

  Python3 hashlib
Posted by: ogautier - Mar-28-2022, 02:42 AM - Forum: General Coding Help - Replies (1)

Quote:Hello, I'm trying to read and compare from an online list, through a given hash, but I'm getting this error:
[quote]
Does anybody c..... More

Print this item

  Typeerror
Posted by: Leo - Mar-28-2022, 12:21 AM - Forum: Homework - Replies (2)

For this assignment we are to make a program that prompts the user for two temperature values between -20 and 50. The second one must be bigger than t..... More

Print this item

  accessing value in dict_values class
Posted by: CompleteNewb - Mar-27-2022, 09:40 PM - Forum: General Coding Help - Replies (14)

i have this program snippet:

[python]
samelist = []
list1 = []
lst = [1,1]
alllist = {
4:[1,1,1,1],
5:[1,1,1],
6:[1,1]
}

for i in lst:
..... More

Print this item

  Trading System Architect and Developer, Eastern Europe, full remote
Posted by: AlexanderElkin - Mar-27-2022, 06:59 PM - Forum: Jobs - Replies (1)

Hi everyone! We are a sports analytics startup. We develop predictions of unparalleled quality for sports events such as soccer games, leveraging our ..... More

Print this item

  AttributeError: 'function' object has no attribute 'metadata
Posted by: 3lnyn0 - Mar-27-2022, 06:35 PM - Forum: General Coding Help - Replies (5)

Hi!
Please help me with the error below.

[error] Base.metadata.create_all(engine)
AttributeError: 'function' object has no attribute 'metadata..... More

Print this item

  Return a value to __main__
Posted by: menator01 - Mar-27-2022, 03:58 AM - Forum: GUI - Replies (7)

Using this example, is there a way to return the updated value or how to use the after method in the main?

[python]import tkinter as tk

class Wi..... More

Print this item

  Reading an Input File
Posted by: DaveG - Mar-26-2022, 11:36 PM - Forum: General Coding Help - Replies (1)

Hi
I hope this makes sense. I have a Python script that reads an input (binary??) file of geographic coordinates and I get this error:

forrtl: sev..... More

Print this item

  Selenium - bypass Cloudflare bot detection
Posted by: klaarnou - Mar-26-2022, 08:11 PM - Forum: Web Scraping & Web Development - Replies (5)

Hello,

Cloudflare detects my scraper and blocks access to the site.
I have tried to use selenium_stealth, this seems to pass bot detection at http..... More

Print this item

  Save JSON data to sqlite database on Django
Posted by: Quin - Mar-26-2022, 06:22 PM - Forum: Web Scraping & Web Development - No Replies

Hello everyone

I am trying to save JSON data to sqlite database on Django

I have these small code chunks here which are giving me some problems...... More

Print this item

  Python and SQL mastery
Posted by: OmegaRed94 - Mar-26-2022, 04:29 PM - Forum: General Coding Help - Replies (1)

Good day, Dear Pythonistas

I have the following question:

I know that there are a lot of courses and materials about (Python + SQL) implementati..... More

Print this item

  Pynput Library not Working with Windows
Posted by: jacknewport - Mar-26-2022, 03:11 PM - Forum: General Coding Help - Replies (1)

I'm trying to create a simple autoclicker where when I hold down on caps lock, the mouse will left click over and over again. I wrote a simple program..... More

Print this item

  tensorflow, How get value from Tensor
Posted by: Oleksnadr - Mar-26-2022, 02:55 PM - Forum: General Coding Help - Replies (1)

I upload the data in BatchDataset using the image_dataset_from_directory method
[python]
seed = 64
images = tf.keras.utils.image_dataset_from_direc..... More

Print this item

  how to add two buttons with different functions in Tk
Posted by: LinuxLife - Mar-26-2022, 02:16 PM - Forum: GUI - Replies (8)

hello all!
first time here,to ask for your support...
got this code in my attached file.it has two buttons,and two different functions.
the problem..... More


Attached Files

.py   teliko.py (Size: 2.67 KB / Downloads: 368)
Print this item

  Making Code Cleaner
Posted by: sklord - Mar-26-2022, 01:07 PM - Forum: Homework - Replies (1)

Is there any good website to hire a teacher per message on a simple question?


How do I make this code cleaner?
[python]
text_test = ('Hello'..... More

Print this item

  Loop through values in dictrionary and find the same as in previous row
Posted by: Paqqno - Mar-26-2022, 09:04 AM - Forum: General Coding Help - Replies (5)

I am new in Python and I am stuck with one problem for a few days now. I made a script that:

-takes data from CSV file
-sort it by same values in..... More

Print this item

  Python multiprocessing Pool apply async wait for process to complete
Posted by: sunny9495 - Mar-26-2022, 05:36 AM - Forum: General Coding Help - Replies (6)

I have coded a simple program of run through the list, but apply_sync isn't waiting until the list is complete, here is the code

[python]
import i..... More

Print this item

  How to ignore "Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=None))"
Posted by: const - Mar-26-2022, 05:18 AM - Forum: General Coding Help - Replies (3)

Hi

While running my code, I encounter this kind of warnings:

[python][WARNING] - Retrying (Retry(total=2, connect=2, read=5, redirect=5, status=..... More

Print this item

  Tkinter not passing Value to Selenium
Posted by: Taksiepacze - Mar-25-2022, 05:40 PM - Forum: Web Scraping & Web Development - No Replies

Hi all, i'm going to try to explain this as accurately as i can.

My end goal is to successfully code a web scraper with Selenium with user inputs v..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Why Is Assignment Help Au... 48 minutes ago tobey12 tobey12 News and Disc...
  403 Error Yesterday, 17:56 CaptainNewb CaptainNewb Web Scraping ...
  [Tkinter] Too much space ... Yesterday, 11:22 RonR RonR GUI
  datetime in SQL query. Yesterday, 10:31 Dibbley Dibbley General Codin...
  Another app idea - intera... 09-16, 07:07 decuser Lenowell News and Disc...
  real community 09-15, 20:16 decuser decuser News and Disc...
  variable changing types f... 09-15, 18:45 Azdaghost Gribouillis General Codin...
  looking for help 09-15, 17:03 Azdaghost Azdaghost Bar
  Seeking feedback: dynamic... 09-15, 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...
Most views
  The best Prog... 575970
  Tutorial Requ... 497373
  Web Scraping ... 439938
  Newbie with P... 383679
  New Users Int... 366098
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+ 12088
buran 8174
snippsat 7367
deanhystad 6894
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 6
buran 3
Newest members
tobey12 Today
alexguemez Yesterday
Shadab Yesterday
Dibbley Yesterday
XenonBlack 09-16

User Panel Messages

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