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,384
» Latest member: Michaelhauct
» Forum threads: 38,820
» Forum posts: 176,011

Full Statistics

Online Users
There are currently 52 online users.
» 1 Member(s) | 45 Guest(s)
Bing, AOL, Google, Apple, Mojeek, snippsat

Latest Threads
Calling python from anoth...
Forum: General Coding Help
Last Post: bowlofred
19 minutes ago
» Replies: 4
» Views: 95
Lottery generator (beginn...
Forum: General Coding Help
Last Post: Amowtonyl
Today, 10:34 AM
» Replies: 4
» Views: 9,838
[split] How to ask Smart ...
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 07:58 AM
» Replies: 2
» Views: 120
Need Help with Pandas Con...
Forum: Bar
Last Post: Axel_Erfurt
Dec-24-2025, 10:07 AM
» Replies: 1
» Views: 69
requests.post not sending...
Forum: Web Scraping & Web Development
Last Post: noisefloor
Dec-24-2025, 09:20 AM
» Replies: 2
» Views: 118
Looking for constructive ...
Forum: News and Discussions
Last Post: cecrease
Dec-24-2025, 03:16 AM
» Replies: 2
» Views: 1,284
Switching from batch proc...
Forum: GUI
Last Post: arbiel
Dec-23-2025, 09:38 PM
» Replies: 0
» Views: 91
Exploring Different Pytho...
Forum: News and Discussions
Last Post: ankitsharma32
Dec-23-2025, 01:01 PM
» Replies: 3
» Views: 748
We open-sourced kubesdk —...
Forum: Code sharing
Last Post: beslanpuzl
Dec-21-2025, 11:52 AM
» Replies: 0
» Views: 153
a function to watch files
Forum: News and Discussions
Last Post: Gribouillis
Dec-21-2025, 07:43 AM
» Replies: 1
» Views: 136

 
  loop (create variable where name is dependent on another variable)
Posted by: brianhclo - Aug-05-2022, 07:28 AM - Forum: General Coding Help - Replies (1)

Hi guys, i am new to python. i am coding a buy/sell order instruction for interactive brokers api. Is there a way to simplify the code here?

[pyth..... More

Print this item

  Scraping someone's recent tweets via python UI automation module Clicknium
Posted by: sharmajaafar - Aug-05-2022, 06:16 AM - Forum: Code sharing - No Replies

Requirement Statements
Get someone's recent tweets and save to a CSV file.
We can start this simple beginner process q..... More

Print this item

  how to run a command pipeline and get its result output as a piped file
Posted by: Skaperen - Aug-04-2022, 11:59 PM - Forum: Code sharing - No Replies

this code is a minimal example of how to run a command pipeline and get its result output as a pipe file. that file is binary so its read result will..... More

Print this item

  Help unwinding assignment
Posted by: JamesBrown - Aug-04-2022, 05:38 PM - Forum: General Coding Help - Replies (2)

I am trying to understand the operation of this assignment function:

[python] Iss = (0.0 < tNow < 2.0) * Iin + (tNow >= 2.0 or tNow < 0) * 0 [/pyth..... More

Print this item

  PyMongo error
Posted by: bagou450 - Aug-04-2022, 08:27 AM - Forum: General Coding Help - No Replies

Hello

I do a transfer of a python script from a server to another and i get this error:

ModuleNotFoundError: No module named 'pymongo.server_api..... More

Print this item

  File explorer
Posted by: DPaul - Aug-04-2022, 06:41 AM - Forum: General Coding Help - Replies (9)

Hi,
In a win11 python 10.x environment, I can start the file explorer from within python like so:
[python]import os
def show_explorer(path):
..... More

Print this item

  Whys is asterisk and random variable necessary in these functions?
Posted by: rrowhe4d - Aug-04-2022, 04:03 AM - Forum: General Coding Help - Replies (5)

In this basic Python Tkinter code, I'm trying to bind certain functions to trigger upon either a UI button press or a keyboard key press.

[python]..... More

Print this item

  od_graph_def.ParseFromString(serialized_graph)
Posted by: hobbyist - Aug-03-2022, 05:39 PM - Forum: General Coding Help - Replies (3)

I am using this guy's code: https://stackoverflow.com/questions/4567...to-console
I get..... More

Print this item

Exclamation Weird IndexError (help a beginner)
Posted by: David_F - Aug-03-2022, 07:42 AM - Forum: General Coding Help - Replies (4)

Hello,
When I pass as input an array of shape (15,1) I get:
IndexError: index 15 is out of bounds for axis 0 with size 15

However, when I pass th..... More

Print this item

  Selling gives me ‘Insufficient balance’ error
Posted by: gerald - Aug-03-2022, 04:45 AM - Forum: General Coding Help - Replies (3)

Hi everyone,

When I try to sell it gives me error: APIError(code=-2010): Account has insufficient balance for requested action. Even though I shoul..... More

Print this item

  [SOLVED] Tkinter module not found
Posted by: Milan - Aug-02-2022, 06:51 PM - Forum: General Coding Help - Replies (7)

Hello team,

So I installed tkinter using

pip3 install tk
But when I try to run the following code

[python]import tkinter ..... More

Print this item

  Regex find string then return 10 character after it
Posted by: pyStund - Aug-02-2022, 04:52 PM - Forum: Data Science - Replies (6)

Hi,
I’ve been looking at Regex and regex cheat sheets and can find how to search for a string and then group them but it would be useful for me to be..... More

Print this item

  How to modify python script to append data on file using sql server 2019?
Posted by: ahmedbarbary - Aug-02-2022, 01:23 AM - Forum: General Coding Help - Replies (1)

I need to append data to excel file already exist from table students on SQL Server .

So I need to append data when dbo.fn_FileExists(@FullFilePath..... More

Print this item

Lightbulb Total Strokes Calculator
Posted by: marlonsmachado - Aug-02-2022, 01:10 AM - Forum: General Coding Help - Replies (7)

Hello all,

I'm trying to create a calculator where I want to see the total strokes in cumulative (sum per second) when I input the rate. For exampl..... More

Print this item

  Convert SQLite Fetchone() Result to float for Math
Posted by: Extra - Aug-01-2022, 07:57 PM - Forum: General Coding Help - Replies (13)

Hello,

I have an SQLite Statement that fetches one result.

Output:
(1.5,)
The problem is when I try using that result for math:
..... More

Print this item

  Fully Remote: Django Developer Who Loves Linux And Open Source 5 Monkeys Agency
Posted by: djangojobs.net - Aug-01-2022, 04:31 PM - Forum: Jobs - No Replies

Quick Apply:
djangojobs.net/jobs/1140/fully-remote-django-developer-who-loves-linux-and-open-source-apply-via-ssh-5-monkeys-agency/

Do you love Py..... More

Print this item

  Undefined
Posted by: Led_Zeppelin - Aug-01-2022, 04:20 PM - Forum: General Coding Help - Replies (4)

I get the following error when I run some python code.

[error]
NameError Traceback (most recent call last)
Input ..... More

Print this item

  Help Iterating through to read comboBox Selections
Posted by: Extra - Aug-01-2022, 04:06 PM - Forum: GUI - Replies (3)

Hello,

I have 22 ComboBoxes where the user can choose different values for each one.
The problem I'm having is that I don't know how to iterate t..... More


Attached Files

Thumbnail(s)
   
Print this item

  Creating hot spots in PyGTK
Posted by: DrakeSoft - Aug-01-2022, 02:20 PM - Forum: GUI - Replies (1)

Hi,

I am trying to create an application in PyGTK that will feature 4 video screens in a single GTK window. I am using GTKs UI sockets to embed the..... More

Print this item

  Querying Django model db - from Jose Portilla’s Udemy course
Posted by: Drone4four - Aug-01-2022, 02:12 PM - Forum: Web Scraping & Web Development - Replies (2)

I’m taking a Udemy course by Jose Portilla and I am learning how to query data in my Django shell.

To make things simple and straightforward, the ..... More

Print this item

  Using .pb saved model for object detection
Posted by: hobbyist - Aug-01-2022, 12:03 PM - Forum: General Coding Help - Replies (2)

I am using this guy's code: https://tensorflow-object-detection-api-...aved_model...... More

Print this item

  How to combine two output in one variable?
Posted by: ilknurg - Aug-01-2022, 08:25 AM - Forum: General Coding Help - Replies (2)

I have a while loop. In my loop the result can be one or more than one. Like:

2 antivirüs name's like:
Kaspersky.
Trend Micro


I want to..... More

Print this item

  Python just isn't 'clicking' for me
Posted by: IceJJFish69 - Aug-01-2022, 04:28 AM - Forum: News and Discussions - Replies (1)

Hello,

I previously did python for a college class and just managed to barely scrape by with a pass (it was an introduction class). I had hoped to ..... More

Print this item

  Continuous Scrolling Loop
Posted by: giddyhead - Aug-01-2022, 04:07 AM - Forum: Web Scraping & Web Development - No Replies

Hello Everyone,

I have a problem with the continuous down scrolling of page as it does not stop at the scrape number found. The following is what I..... More

Print this item

  simple tkinter question function call not opening image
Posted by: gr3yali3n - Jul-31-2022, 07:40 PM - Forum: GUI - Replies (5)

I had some free time and was messing tkinter again, i wanted to create a function to open a image so that i could simply call the function to get the ..... More

Print this item

  extract table from multiple pages
Posted by: sshree43 - Jul-31-2022, 11:38 AM - Forum: General Coding Help - Replies (8)

Hi Expert,

I am trying to get table extract from multiple pdf pages but i am getting only 2 pages and page header currently(Source PDF(test.pdf),ou..... More


Attached Files

.csv   Outputfile.csv (Size: 5.49 KB / Downloads: 363)
.txt   codetext (1).txt (Size: 3.25 KB / Downloads: 283)
.pdf   test.pdf (Size: 146.37 KB / Downloads: 509)
Print this item

  python with mysql utf8 error
Posted by: thomasvanderwal - Jul-31-2022, 10:22 AM - Forum: Data Science - Replies (1)

I have a problem on my raspberry with mysql (mariadb). When I execute this simple programm it shows this error. The database is made in phpmyadmin (ge..... More

Print this item

  I don't understand pip and environments
Posted by: snakes - Jul-31-2022, 09:14 AM - Forum: General Coding Help - Replies (3)

I'm completely confused... partly because I decided to buy a Mac!

I play about with Python and Scikit-learn from time to time mostly on a Linux deskt..... More

Print this item

  Parsing JSON
Posted by: pyStund - Jul-30-2022, 09:27 PM - Forum: General Coding Help - Replies (4)

Hi,

I need to take some JSON values that are floats from an AWS DynamoDB and make them variables to use in my script but I keep on running into prob..... More

Print this item

  [Solved]Populate ComboBox with for loop?
Posted by: Extra - Jul-30-2022, 07:08 PM - Forum: GUI - Replies (3)

Hello,

I'm trying to populate 22 combo boxes with the same options (I have 'Material_1_ComboBox' all the way to [i]'Material_22_ComboBox'[/i..... More

Print this item

  boto3 Help Needed
Posted by: gw1500se - Jul-30-2022, 04:06 PM - Forum: General Coding Help - No Replies

I'm just getting started with boto3 and AWS. I found this article[/[url=https://python-forum.io/thread-37865.html]..... More

Print this item

  Hello all! need help. calculating OT hours.
Posted by: no1up - Jul-30-2022, 03:40 PM - Forum: General Coding Help - Replies (5)

So, I'm "self teaching" python, and I'm trying to challenge myself. I'll take the answer but a "hint" would be more helpful in the long run. So, I'm m..... More

Print this item

  The of ( : ) what does it do?
Posted by: Frankduc - Jul-30-2022, 02:44 PM - Forum: General Coding Help - Replies (11)

Hi,

I dont understand this part of the code.
The : between protein and Nutrient in protein: Nutrient = Nutrient(name="Protein") what does it do?..... More

Print this item

  Get Current Directory From ShortCut.
Posted by: Oshadha - Jul-30-2022, 12:56 PM - Forum: General Coding Help - Replies (1)

Hi, My question is regarding file Directories in Windows based Systems:
Suppose I have a Directory : D:\PyProj\
In that Directory I..... More

Print this item

  Server Error with parse_args() using Flask
Posted by: NoNameoN - Jul-30-2022, 09:42 AM - Forum: Web Scraping & Web Development - No Replies

I'm trying to develop an api using flask but i'm having a server error in post request, i use this simple code
[python]
parserTest = reqparse.Reques..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Calling python from anoth... 19 minutes ago eedjsa bowlofred General Codin...
  Lottery generator (beginn... Today, 10:34 Hullari Amowtonyl General Codin...
  [split] How to ask Smart ... Yesterday, 07:58 yoanselcp Pedroski55 General Codin...
  Need Help with Pandas Con... 12-24, 10:07 naproxy_1 Axel_Erfurt Bar
  requests.post not sending... 12-24, 09:20 JarredAwesome noisefloor Web Scraping ...
  Looking for constructive ... 12-24, 03:16 decuser cecrease News and Disc...
  [PyQt] Switching from bat... 12-23, 21:38 arbiel arbiel GUI
  Exploring Different Pytho... 12-23, 13:01 girish_benvanshi ankitsharma32 News and Disc...
  We open-sourced kubesdk —... 12-21, 11:52 beslanpuzl beslanpuzl Code sharing
  a function to watch files 12-21, 07:43 Skaperen Gribouillis News and Disc...
  Spaces in string 12-19, 13:04 Mallard Mallard General Codin...
Most views
  The best Prog... 580324
  Tutorial Requ... 518776
  Web Scraping ... 442752
  Newbie with P... 386936
  New Users Int... 385997
Most reputation
buran 581
snippsat 511
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+ 12117
buran 8198
snippsat 7398
deanhystad 6920
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Michaelhauct Today
eedjsa Today
byanfrances6176 Today
Amowtonyl Today
sofiadavis1840 Today

User Panel Messages

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