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,257
» Latest member: Bamboo
» Forum threads: 38,782
» Forum posts: 175,836

Full Statistics

Online Users
There are currently 38 online users.
» 0 Member(s) | 30 Guest(s)
Applebot, Bing, Google, Facebook Dev

Latest Threads
[solved] re.split issue
Forum: General Coding Help
Last Post: DeaD_EyE
2 hours ago
» Replies: 9
» Views: 165
Please guide me to comple...
Forum: General Coding Help
Last Post: pbkurd
2 hours ago
» Replies: 2
» Views: 91
New to python and coding
Forum: Homework
Last Post: jefsummers
Yesterday, 07:58 PM
» Replies: 6
» Views: 188
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 361
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 121
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 249
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 397
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 151
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,645
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 252

 
  instance methods sharing addresses
Posted by: mim - Mar-28-2021, 05:04 AM - Forum: General Coding Help - Replies (1)

is it true:
all the objects of a particular class have their own data members but share the member functions, for which..... More

Print this item

  instance methods
Posted by: mim - Mar-28-2021, 05:01 AM - Forum: General Coding Help - Replies (7)

why the address of __init__ in this code is similar:

[python]class c:
def __init__(self,color):
print (f"id of self in __init__ on cl..... More

Print this item

  AttributeError Traceback (most recent call last)
Posted by: quest - Mar-28-2021, 01:03 AM - Forum: General Coding Help - Replies (5)

Hello,

I created a class:

[python]
class inportProp:

def __init__(self, t0, tM, incoming, phys, clinkdt, otherport=None, name=''):
..... More

Print this item

  replace in code vs literals
Posted by: Skaperen - Mar-28-2021, 12:37 AM - Forum: General Coding Help - Replies (3)

i have a string of Python code. i want to replace(';','\n') for the code but not for any ';' in literal stri..... More

Print this item

  I need help for adding def to my code
Posted by: muzaffarshamsiev - Mar-27-2021, 09:41 PM - Forum: Homework - Replies (1)

so we wrote this and a tutor asked us to add a def how to add it?

[python]import random

# library that we use in order to choose
# on random w..... More

Print this item

  Encoding Problem?
Posted by: Konlork - Mar-27-2021, 05:18 PM - Forum: Web Scraping & Web Development - Replies (2)

Hi all,

i have an issue crawling results from google. The first results are extracted correctly, but the 8th result throws an exception.
This is m..... More

Print this item

Photo After using models.Model on my class Im getting 'ImproperlyConfigured' error Django
Posted by: khavro - Mar-27-2021, 04:47 PM - Forum: Web Scraping & Web Development - Replies (1)

This question is not only about Python but about Django framework as well.

1. I just started a new project in django, I run the command 'django-adm..... More

Print this item

  Python dictionary with values as list to CSV
Posted by: Sritej26 - Mar-27-2021, 03:54 PM - Forum: General Coding Help - Replies (4)

Hello,
I have a dictionary in this way
tdm={
word1: [0,0,0,1.....] -> 253 values in the list
word2: [0,25,0,2.....]
.
.
.
word 12,000: [..... More

Print this item

  Reconnect to an API?
Posted by: stylingpat - Mar-27-2021, 03:24 PM - Forum: General Coding Help - Replies (1)

Hello everyone, my Python program connects to an API, is there any way to make it try and "auto reconnect" every 1 min to the said API if it gets disc..... More

Print this item

  Capture Scheme ( http e https )
Posted by: JohnnyCoffee - Mar-27-2021, 03:10 PM - Forum: General Coding Help - No Replies

I am using the socketserver as the example below to establish connections in the tcp layer and to be able to have interactions with the http data proc..... More

Print this item

  Scraping a page with log in data (security, proxies)
Posted by: iamaghost - Mar-27-2021, 02:56 PM - Forum: Web Scraping & Web Development - No Replies

Hey guys,

I have a few questions regarding the safety issues whilst scraping the web.

Im working for an agency selling tickets for a big fligh..... More

Print this item

  New Email Provider
Posted by: snippsat - Mar-27-2021, 02:56 PM - Forum: Board - No Replies

We have signed up for new Email provider which is Amazon SES(Simple Email Service).
We had some trouble with Gmail which needed to be reactivated reg..... More

Print this item

  reading lines from a string [Solved]
Posted by: ebolisa - Mar-27-2021, 02:55 PM - Forum: General Coding Help - Replies (14)

Hi,

The code below works, but it has too many lines. I tried to shorten it, but I get OSError: [Errno 36] File name too long..... More

Print this item

  PySimpleGUI keeps running after LibreOffice crashs
Posted by: FernandoCabral - Mar-27-2021, 02:22 PM - Forum: GUI - Replies (4)

This is a PySimpleGUIQt issue, not necessarily a PyQt issue. I posted it here for similarity, because I didn't find a PySimpleGUIQt thread.

Here is..... More

Print this item

  Converting decimals
Posted by: stylingpat - Mar-27-2021, 11:23 AM - Forum: General Coding Help - Replies (3)

Good morning!

If I have a variable that is let’s say 2000.846

What would be the easiest way to convert the decimals to a specific number?

If ..... More

Print this item

  Add column based on others
Posted by: timste - Mar-27-2021, 10:52 AM - Forum: Data Science - Replies (8)

Hi there,

This is a dataframe with glacial lakes and their volume:

[python]
data = {'Volume': ['50', '100', '100', '90', '60', '200', '150', '..... More

Print this item

  Calcolate the average of numbers from a .txt file
Posted by: francescomiles - Mar-27-2021, 10:24 AM - Forum: General Coding Help - Replies (2)

I start to learn programming few weeks ago and I'm trying to do an exercise that ask me to calculate the average of a list of number from a text file...... More

Print this item

  How to solve AttributeError
Posted by: Roshan - Mar-27-2021, 07:08 AM - Forum: General Coding Help - Replies (5)

I am using line chart in tkinter.

First i create button event, then generate number graph & updating graph & working fine.

Now change program & ..... More

Print this item

  Displaying database info in QTableWidget
Posted by: thewolf - Mar-27-2021, 01:32 AM - Forum: GUI - Replies (6)

I was trying to keep my code somewhat organized and I ran into a slight problem and I'm hoping I won't have to restructure it too much. I have two fil..... More

Print this item

  Python can't find a library which is definitely there!
Posted by: Pedroski55 - Mar-26-2021, 11:23 PM - Forum: General Coding Help - Replies (1)

EDIT: I managed to get it working with:

Quote:sudo apt-get install libzbar0

Don't know what I have in my .local folder, must be something fo..... More

Print this item

  IoT Air Monitoring System
Posted by: project_science - Mar-26-2021, 08:14 PM - Forum: General Coding Help - No Replies

Hi,

I’m looking to make a small IoT project / test automation with my Raspberry Pi. I have a light and temperature sensor. I want to make an air ..... More

Print this item

  PIP Error
Posted by: Frogcop - Mar-26-2021, 07:56 PM - Forum: General Coding Help - Replies (5)

Hello, I'm having an error when I try to run PIP. I've tried reinstalling Python but it didn't work. (I'm using Python 3.5 because my operating system..... More

Print this item

  Launch Windows Application
Posted by: OEMS1 - Mar-26-2021, 07:42 PM - Forum: General Coding Help - No Replies

Hallo,

I am using a python script running as a service (intalled with NSSM)
The script is working fine, but I can not start an application like no..... More

Print this item

  How to handle the authentication for Apps within OneLogin?
Posted by: tonywang531 - Mar-26-2021, 10:44 AM - Forum: Networking - Replies (1)

My company uses Office 365 within OneLogin. Therefore I need to log in to OneLogin first then sign into Office 365 (OneDrive). My question is how do I..... More

Print this item

  Django project deployed to Heroku: Postgres security
Posted by: Drone4four - Mar-26-2021, 10:17 AM - Forum: Web Scraping & Web Development - No Replies

I’ve setup my Django settings.py in such a way that I can access the Postgres instance in the cloud containing my production data in my local develo..... More

Print this item

Thumbs Up tkinter canvas; different page sizes on different platforms?
Posted by: philipbergwerf - Mar-25-2021, 08:05 PM - Forum: GUI - Replies (4)

I am working on an alternative music notation app for a long time and I have a problem. I use Tkinter canvas for drawing the whole score. I get differ..... More

Print this item

  index of range, but data prints out
Posted by: mrc06405j - Mar-25-2021, 07:10 PM - Forum: General Coding Help - Replies (1)

I have written a program in python. It occasionally gives an index out of range at a particular line in the code. I printed out all of the variables..... More

Print this item

  More list help please!
Posted by: Pytho13 - Mar-25-2021, 03:22 PM - Forum: General Coding Help - Replies (2)

Hi everyone,

I have a question that I can't figure out, I've been trying to find the answer myself.

I have created two lists and looped throug..... More

Print this item

  How to create a simple GUI
Posted by: GRS26 - Mar-25-2021, 02:23 PM - Forum: GUI - Replies (7)

Hello,
I am starting a new school project where I need to control a aolenoid and actuator with a RPI. Normally it would no problem, just write a litt..... More

Print this item

  New to Python. How do i read out this number?
Posted by: dhl047 - Mar-25-2021, 10:36 AM - Forum: Web Scraping & Web Development - Replies (2)

Hello,

i am new to Python. For my first project i want to scrap the number "CY"... but i cant find a solution to scrap it.

Can you help me with..... More

Print this item

  Keep getting Session management error when running imshow in pycharm
Posted by: pace - Mar-25-2021, 10:06 AM - Forum: General Coding Help - No Replies

So I've tried following the advice in other post about this error, but have yet to solve the issue.

When I use cv2.imshow I get the error:
[inline]Qt..... More

Print this item

  How to set LD_LIBRARY_PATH on python codes?
Posted by: aupres - Mar-25-2021, 08:32 AM - Forum: General Coding Help - Replies (1)

I am using eclipse ide. So I configure LD_LIBRARY_PATH environment variable on eclipse ide. But I try to generate python codes which are independent o..... More

Print this item

  Want to replace last column header value
Posted by: shantanu97 - Mar-25-2021, 06:35 AM - Forum: General Coding Help - No Replies

Want to replace last column header value to "Sourcefile". This python script is to extract each sheet in an Excel workbook as a new csv file.

[pyth..... More

Print this item

  IndexError: list index out of range
Posted by: brunolelli - Mar-25-2021, 04:38 AM - Forum: General Coding Help - Replies (11)

Hello guys...

What's going on with my code?
[python]from tempfile import NamedTemporaryFile
from FlightRadar24.api import FlightRadar24API
from ..... More

Print this item

  Accessing S3 buckets through the AWS dashboard created by dj_database_url
Posted by: Drone4four - Mar-25-2021, 01:04 AM - Forum: Web Scraping & Web Development - Replies (2)

I automated the creation and configuration of my Postgres db for my Django project hosted as an S3 bucket on AWS through Heroku using a `dj_database_u..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [solved] re.split issue 2 hours ago paul18fr DeaD_EyE General Codin...
  Please guide me to comple... 2 hours ago pbkurd pbkurd General Codin...
  New to python and coding Yesterday, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
Most views
  The best Prog... 578946
  Tutorial Requ... 510360
  Web Scraping ... 441965
  Newbie with P... 385985
  New Users Int... 376963
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+ 12107
buran 8195
snippsat 7388
deanhystad 6909
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Bamboo Today
TomTMH Yesterday
pbkurd Yesterday
Gichardaxora Yesterday
cc123 Yesterday

User Panel Messages

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