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,533
» Latest member: aihancaiji31
» Forum threads: 38,661
» Forum posts: 175,191

Full Statistics

Online Users
There are currently 358 online users.
» 0 Member(s) | 346 Guest(s)
Applebot, Bing, Google, Mojeek, AOL, Baidu, Yandex, Facebook Dev

Latest Threads
RemoTe server operation w...
Forum: General Coding Help
Last Post: snippsat
5 hours ago
» Replies: 6
» Views: 644
Qt Event Filtering
Forum: GUI
Last Post: deanhystad
6 hours ago
» Replies: 3
» Views: 148
processing nested json da...
Forum: Web Scraping & Web Development
Last Post: Pedroski55
Today, 01:32 AM
» Replies: 1
» Views: 102
Convert .pdf to .txt
Forum: General Coding Help
Last Post: Pedroski55
Yesterday, 11:23 AM
» Replies: 7
» Views: 468
Trouble Importing cell2lo...
Forum: General Coding Help
Last Post: snippsat
Jul-12-2025, 04:00 PM
» Replies: 3
» Views: 266
Why is bool() an instance...
Forum: General Coding Help
Last Post: deanhystad
Jul-12-2025, 02:41 AM
» Replies: 5
» Views: 247
[SOLVED] Why does regex f...
Forum: General Coding Help
Last Post: Pedroski55
Jul-11-2025, 11:52 PM
» Replies: 7
» Views: 4,010
Custom Sorting List of Di...
Forum: Homework
Last Post: Larz60+
Jul-11-2025, 03:34 PM
» Replies: 1
» Views: 161
Coding Standards
Forum: General Coding Help
Last Post: snippsat
Jul-11-2025, 01:12 PM
» Replies: 2
» Views: 242
Make code run faster: poi...
Forum: General Coding Help
Last Post: FrankBuckland
Jul-11-2025, 07:24 AM
» Replies: 3
» Views: 778

 
  Extracting tables and text above the table from a PDF to CSV
Posted by: DivAsh - Jan-16-2023, 08:03 AM - Forum: Data Science - Replies (3)

Hi

I have a PDF file from where i need to extract all the tables and also the text above the tables and output the results to a csv file.By using t..... More


Attached Files

.pdf   Input.pdf (Size: 52.29 KB / Downloads: 7)
Print this item

  wxPython install error
Posted by: carlomscalisi - Jan-16-2023, 12:49 AM - Forum: General Coding Help - Replies (3)

Complete Rookie, seriously.

I am attempting to install wxPython via pip on my Mac, running Mojave 10.14.6, but it's not working. Any help would be..... More


Attached Files

.pdf   Terminal Output.pdf (Size: 67.79 KB / Downloads: 394)
Print this item

  How to convert .trc/.txt file into excel using python
Posted by: ebola - Jan-15-2023, 09:46 PM - Forum: Homework - Replies (3)

I want to convert .trc file (image 1) into excel(image 2). Once it is converted to excel I want a command prompt to open up asking 'Select the model t..... More


Attached Files

Thumbnail(s)
           
Print this item

  Pygame Snake Game Help Please
Posted by: Beginnerprogrammer6 - Jan-15-2023, 09:45 PM - Forum: Homework - No Replies

My computer science assignment is creating a snake game using pygame and I have to use images for my sprites. I don't know how to move the images of t..... More

Print this item

  how do I fix an index error?
Posted by: MehHz2526 - Jan-15-2023, 08:01 PM - Forum: Homework - Replies (1)

I know what an index error is, but all my variables are numbered correctly from 0 to 5 but I still have an index error. I think that the main problem ..... More

Print this item

  Syntax error? I don't see it
Posted by: KenHorse - Jan-15-2023, 06:35 PM - Forum: General Coding Help - Replies (4)

Python 3.9.2

I keep getting a syntax error and for the life of me, I don't see it:

[quote]root@piZERO:~/bin# ./npwAgent.py
File "/root/bin/np..... More

Print this item

  Is there a way to determine if a radio button has been selected?
Posted by: TWB - Jan-15-2023, 04:11 PM - Forum: GUI - Replies (5)

Hello, as Im now to Python any help is appreciated
My goal is to determine if a radio button has been selected, to help troubleshoot I have created a..... More

Print this item

  Weird behaviour using if statement in python 3.10.8
Posted by: mikepy - Jan-15-2023, 02:57 PM - Forum: General Coding Help - Replies (23)

Hello, can someone explain me this wired behavior? At the if statement which you can see in the screenshot, despite if 1==2 (for test only) is false, ..... More

Print this item

  try catch not working?
Posted by: korenron - Jan-15-2023, 01:29 PM - Forum: General Coding Help - Replies (2)

Hello,
I have this code for checking modem connection

[python]import os
import sys
import time
import datetime
import requests
import thread..... More

Print this item

  compare and find the nearest element ?
Posted by: mr_gentle_sausage - Jan-14-2023, 09:32 PM - Forum: General Coding Help - Replies (4)

hello,
I need a little help, I have a list (element has 2 elements(X and Y)), and I need to find, in this list, which element is the nearest of my mo..... More

Print this item

  Where's my .py file?
Posted by: hansemso - Jan-13-2023, 10:40 PM - Forum: General Coding Help - Replies (1)

Hi. Newbie here. I installed pycharm, got the sympy extension. I made a file called "Newton's_Method_2" and put it in a pythonProject1 folder I mad..... More

Print this item

  Question about Creating an Automated Process in Python
Posted by: Supratik1234 - Jan-13-2023, 08:29 PM - Forum: General Coding Help - No Replies

Hi everyone, I am very new to Python so I don't know a lot about coding whatsoever but I am a part of a research group involved in ab initio md. For t..... More


Attached Files

.py   OHNWCHEM.py (Size: 1.49 KB / Downloads: 212)
Print this item

  self.pos().x() and self.pos().x() always return -3,-30 on PyQT5
Posted by: DrakeSoft - Jan-13-2023, 02:31 PM - Forum: GUI - Replies (3)

Hi,

I am using the code below to experiment with window size and psoition.
I notice that irrespective of where I move the window self.pos().x() an..... More

Print this item

  excel lookups
Posted by: Deephect - Jan-13-2023, 12:46 PM - Forum: General Coding Help - No Replies

I have two excel sheets in the same book, each row contains a lookup value from sheet2.
Sheet2 contains lookups and all lookup values, Sheet1 contai..... More

Print this item

  Python SSL web page scraping
Posted by: Vadanane - Jan-13-2023, 09:34 AM - Forum: General Coding Help - Replies (1)

I'm using Python 2.7 with BeautifulSoup to scrape web pages, but I keep running across protocol errors that don't make much sense to me. This only occ..... More

Print this item

  launching executables
Posted by: DPaul - Jan-13-2023, 07:31 AM - Forum: General Coding Help - Replies (6)

Hi,
I have an executable. Users click on it (or an icon) and do research.
One user however starts inadvertently many instances of the exe,
and one ..... More

Print this item

  super lightweight (only 35 lines) dependency injection (ioc) support for Python
Posted by: kenttong - Jan-13-2023, 04:30 AM - Forum: Code sharing - Replies (5)

Hi,

A super simple and risk-free way to do dependency injection (ioc) in Python. The entire code base is only 35 lines (empty lines included). No n..... More

Print this item

  Newbie here. Create an array from file data?
Posted by: Rayj00 - Jan-13-2023, 12:37 AM - Forum: Homework - Replies (2)

I'm brand new with python. I have a file with integers like this:

2 5 8 12 20
3 12 15 18 29
etc,
etc,
etc,
.
.
etc.

I need to get them ..... More

Print this item

  "Name is not defined" when running a class
Posted by: lil_e - Jan-12-2023, 11:10 PM - Forum: General Coding Help - Replies (6)

Hi. I'm a beginner trying to figure out why my code won't work. I'm pretty sure it's a minor detail, but I tried several time, but cannot find out why..... More

Print this item

  Positive integral solutions for Linear Diophantine Equation
Posted by: august - Jan-12-2023, 10:09 PM - Forum: General Coding Help - Replies (4)

Hello All,

Say I want to find all POSITIVE INTEGRAL solutions for a,b for this linear equation:
a + 2b = 5 and the solutions ..... More

Print this item

  [split] Explain the python code in this definition
Posted by: Led_Zeppelin - Jan-12-2023, 09:07 PM - Forum: General Coding Help - Replies (1)

I have a vector of real numbers. They are the feature importance in a machine learning experiment. One importance for each sensor.

Obviously, they ..... More

Print this item

  [split] Explain the python code in this definition
Posted by: Led_Zeppelin - Jan-12-2023, 08:54 PM - Forum: Board - Replies (2)

I am sorry to bother anyone for this, but I am stuck. I have to make a new post. I do not remember how to do it.

I have not used the forum since la..... More

Print this item

  Sprites just randomly appear and dissapear in my pygame.sprite.GoupeSingle
Posted by: trueShadoWrr - Jan-12-2023, 08:28 PM - Forum: Game Development - Replies (2)

I am programming my first "real" game in pygame and now I ran into a Problem.

So I am trying to program the mainmenu of a game and it is already wo..... More

Print this item

  Python VS Code: using print command twice but not getting output from terminal
Posted by: kdx264 - Jan-12-2023, 07:33 PM - Forum: General Coding Help - Replies (4)

Hi, I have autism and am brand new to Python. I am trying to output these two print statements I wrote in my code to see the sum of a, b, and c as wel..... More


Attached Files

Thumbnail(s)
   
Print this item

  C Extension module
Posted by: lamer - Jan-12-2023, 02:41 PM - Forum: General Coding Help - Replies (1)

Hello I wrote simple c extension module and assembled it with visual studio everything works
When i try to assemble it with mingw i am getting issue ..... More

Print this item

  How to work with list
Posted by: kafka_trial - Jan-12-2023, 11:24 AM - Forum: General Coding Help - Replies (8)

Hi all,
I am new to Python. I am doing an application. the application takes 20 names of individuals then prompts user to input out of 20 individual..... More

Print this item

  cannot update PIP
Posted by: tester_V - Jan-12-2023, 04:03 AM - Forum: General Coding Help - Replies (1)

Good evening!
I tried to search the forum for 'failing to upgrade PIP', but found nothing, probably searching in the wrong place...
Got a new work c..... More

Print this item

  How to use the re library to remove irrelevant words?
Posted by: noahe - Jan-11-2023, 10:38 PM - Forum: Homework - Replies (3)

Hi, I'm currently making a python code which includes the creation of a wordcloud. The problem is that there are some words that are irrelevant with t..... More

Print this item

  How to get back a subdirectory in URL with Django
Posted by: jao - Jan-11-2023, 10:28 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello, I'm currently learning Django and i've come up with a difficulty. I have a login app, where the user logs in and registers, their url is localh..... More


Attached Files

Thumbnail(s)
   
Print this item

  First Day using Python. NEED Simple Math CODE HELP!
Posted by: Jesseluke - Jan-11-2023, 08:23 PM - Forum: Homework - Replies (4)

can someone help me with a simple *for yous* lines of code..

I need to input a number of no more then 10 or 11 digits. say 01234567890

then n..... More

Print this item

  x and y must have same first dimension, but have shapes (1,) and (50,)
Posted by: asja2010 - Jan-11-2023, 03:00 PM - Forum: General Coding Help - Replies (5)

Hey there python community, after successfully plotting a graph, when it comes to plotting the frontier of it, I get this message:
[python]ValueError..... More

Print this item

  Using one child class method in another child class
Posted by: garynewport - Jan-11-2023, 12:03 PM - Forum: General Coding Help - Replies (5)

I have two child classes; GraphSelect and GraphCreate.

Both are children of the main, parent, class, [inline]App[..... More

Print this item

  Pyinstaller
Posted by: mksundaram - Jan-11-2023, 10:23 AM - Forum: General Coding Help - Replies (1)

Pyinstaller throws an error: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/_MEIBtYb0G/frozendict/VERSION'
[48290] Failed to execute s..... More

Print this item

  Decode string ?
Posted by: JohnnyCoffee - Jan-11-2023, 12:07 AM - Forum: General Coding Help - Replies (1)

Simulating a direct http request in the browser address bar for the module (wsgiref), with the following url:

( OvO ) - Http Request :

[python]..... More

Print this item

  How to use global value or local value
Posted by: sabuzaki - Jan-10-2023, 08:55 PM - Forum: General Coding Help - Replies (4)

Hello,

I'm looking something similar like inheritance from an object (not a class). Example we have code:

[python]
class bridge():
va..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  RemoTe server operation w... 5 hours ago mario17 snippsat General Codin...
  Qt Event Filtering 6 hours ago deanhystad deanhystad GUI
  processing nested json da... Today, 01:32 Kumo_Koloo Pedroski55 Web Scraping ...
  Convert .pdf to .txt Yesterday, 11:23 vmars316 Pedroski55 General Codin...
  Trouble Importing cell2lo... 07-12, 16:00 haileyp snippsat General Codin...
  Why is bool() an instance... 07-12, 02:41 voidtrance deanhystad General Codin...
  [SOLVED] Why does regex f... 07-11, 23:52 Winfried Pedroski55 General Codin...
  Custom Sorting List of Di... 07-11, 15:34 aryasinner Larz60+ Homework
  Coding Standards 07-11, 13:12 kency snippsat General Codin...
  Make code run faster: poi... 07-11, 07:24 Bennygib FrankBuckland General Codin...
  Cleaning my code to make ... 07-11, 07:20 BSDevo FrankBuckland General Codin...
Most views
  The best Prog... 572684
  Tutorial Requ... 485716
  Web Scraping ... 437139
  Newbie with P... 380075
  Thread remain... 351373
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+ 12073
buran 8174
snippsat 7352
deanhystad 6855
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aihancaiji31 Today
gmonroe Today
Tharindu Today
thomasjoe604 Today
psychologiss443 Today

User Panel Messages

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