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,993
» Latest member: lauren557
» Forum threads: 38,736
» Forum posts: 175,580

Full Statistics

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

Latest Threads
Weird failure in Selenium
Forum: General Coding Help
Last Post: Larz60+
5 hours ago
» Replies: 1
» Views: 73
print does not open conso...
Forum: General Coding Help
Last Post: Pedroski55
10 hours ago
» Replies: 2
» Views: 98
Fred Economic Data API
Forum: Web Scraping & Web Development
Last Post: Trickety
Yesterday, 03:05 PM
» Replies: 3
» Views: 2,538
create ocr to detect lice...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:58 PM
» Replies: 2
» Views: 101
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: noisefloor
Yesterday, 01:56 PM
» Replies: 6
» Views: 223
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
Oct-01-2025, 03:05 AM
» Replies: 4
» Views: 2,051
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Sep-30-2025, 07:43 AM
» Replies: 2
» Views: 464
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Sep-30-2025, 12:21 AM
» Replies: 2
» Views: 1,096
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,171
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 854

 
  class AttributeError:
Posted by: anna - Nov-02-2019, 07:51 AM - Forum: General Coding Help - Replies (2)

Hi All,

I am polling Nokia Router device for port optical details through snmp. This router is having 52 ports, all details will be fetched if port..... More

Print this item

  Strange output with regular expressions
Posted by: newbieAuggie2019 - Nov-02-2019, 04:55 AM - Forum: General Coding Help - Replies (1)

Hi!

I'm reading about regular expressions (regex) and experimenting a bit with them. The following little program:

[python]import re

string1 ..... More

Print this item

  parser for LVM head
Posted by: Skaperen - Nov-02-2019, 04:04 AM - Forum: News and Discussions - No Replies

anyone know of a parser for an LVM head? i might want to use that syntax for some other configs.

Print this item

  will with sys.stdout as f: close sys.stdout?
Posted by: Skaperen - Nov-01-2019, 11:47 PM - Forum: General Coding Help - Replies (9)

i have a big block of code the i do not want to duplicate. in one case i want the block to be done with f as an opened file that gets closed at the e..... More

Print this item

  IndexError: List index out of range issue
Posted by: Adem - Nov-01-2019, 10:34 PM - Forum: General Coding Help - Replies (1)

Hi, could someone help me on this code plz ? It says"IndexError: List index out of range issue" in "n = int(sys.argv[1])". btw i m using python 3.7 if..... More

Print this item

  reading an f-string from a file
Posted by: Skaperen - Nov-01-2019, 10:29 PM - Forum: News and Discussions - Replies (4)

i am reading a string from a file. how can i have it be interpreted as an f-string?


[python]
num = 123456789
with open('thefile') as ope..... More

Print this item

  What is header module in speudo-code
Posted by: phuvinh1408 - Nov-01-2019, 09:30 PM - Forum: General Coding Help - Replies (6)

I have a CIS150AB , and I did an assignment, but I got a rep from my instructor like this :
I am not seeing module headers for each module or calls ..... More

Print this item

  MultiThreading Return value issue
Posted by: AvisPaul1 - Nov-01-2019, 08:51 PM - Forum: GUI - Replies (3)

Hi,

I have a small GUI program which reads a drives content and saves it in a csv file. The scanning of the drive takes some time and I am trying t..... More

Print this item

  Python Going to a 12 Month Release Cycle
Posted by: ichabod801 - Nov-01-2019, 08:32 PM - Forum: News and Discussions - No Replies

Announcement from Brett Cannon here. As part of this they are switching deprecation to a two release (two ..... More

Print this item

  where to look for fuzzy wuzzy benchmarks/specs
Posted by: droid15 - Nov-01-2019, 07:48 PM - Forum: Data Science - Replies (1)

I'm considering using fuzzy wuzzy at work to maintain a table of similarities for part numbers. in order to update the similarity table i need to feed..... More

Print this item

  Raspberry Pi Python Rest Post
Posted by: madaxe - Nov-01-2019, 07:30 PM - Forum: General Coding Help - No Replies

I have two questions, i want to call a URL passing in three parameters SensorName Temperature Humidity the sensor is working so the temp and humi para..... More

Print this item

  Frequency and timing of psycopg2 commits
Posted by: acecase - Nov-01-2019, 05:50 PM - Forum: General Coding Help - No Replies

I'm building a tool to do the initial import of data for another app. The data will be read or inferred from the contents of a json file.

The total..... More

Print this item

  SSH port forwarding and connection to SQL Server in separate threads freezes
Posted by: jan_pips - Nov-01-2019, 05:44 PM - Forum: GUI - Replies (25)

To begin with I have to say I was not sure where to put the question but it seems to be after all problem with QT Threading.

I am trying to incorpo..... More

Print this item

  How do I rewrite this .bat file code onto Python?
Posted by: SteampunkMaverick12 - Nov-01-2019, 04:56 PM - Forum: General Coding Help - Replies (4)

set APPDATA=%CD%\data
bin\minecraft.exe
don't ask why

Print this item

  Are there optimizer for static code?
Posted by: AlekseyPython - Nov-01-2019, 01:51 PM - Forum: General Coding Help - Replies (5)

Python 3.7.1

My program works with big data, where I don't see the point of using dynamic language capabilities (adding class members or methods duri..... More

Print this item

  first time in python
Posted by: TDW5 - Nov-01-2019, 01:44 PM - Forum: General Coding Help - Replies (1)

Hello,

Anyone who can tell me how to plot something like this:
[python]
f = f(x)
g = function with variable f = g(f)
h = function of g = h(g)
..... More

Print this item

  Cant start module
Posted by: bejag - Nov-01-2019, 01:24 PM - Forum: Networking - Replies (4)

Hi all, I cant start server under windows anymore.

[Image: 54AZse3TQeuufJ1LJirLNQ.png]
then windows firewall promp..... More

Print this item

  tkinter window and turtle window error
Posted by: 1885 - Nov-01-2019, 12:44 PM - Forum: GUI - Replies (3)

I have a simple tkinter menu example that opens a new window on click.
When the Turtle window is opened it works fine the first time.
But when close..... More

Print this item

  Linear Regression Python3 code giving weird solutions
Posted by: deepsen - Nov-01-2019, 12:06 PM - Forum: Data Science - No Replies

Dear Members,
Welcome to another noob question. I am learning to code in Python for scientific research.
I wrote a python code following the math fo..... More

Print this item

  plotting problem
Posted by: TDW5 - Nov-01-2019, 11:54 AM - Forum: General Coding Help - Replies (1)

Hello

(I'm new to Python)
Im trying to plot 4 functions with quite some variables, however in the end it's only dependent on x.
My code:
[python..... More

Print this item

  Partial "visual" Matching of matrices
Posted by: masteripper - Nov-01-2019, 10:22 AM - Forum: General Coding Help - Replies (15)

Hello,
I have this issue and i am a bit short on ideas on how to resolve it
Suppose you have 3 matrices :
A =
1 0 1 [b]1[/..... More

Print this item

  Right modules to use ?
Posted by: Fre3k - Nov-01-2019, 09:49 AM - Forum: Web Scraping & Web Development - Replies (4)

Hello guys !

Well I'll dive straight into my question.

I changed from PHP to Python some weeks ago, and Im totally into web-scraping.

As my f..... More

Print this item

  pip is not working
Posted by: Gregerwhut - Nov-01-2019, 08:36 AM - Forum: General Coding Help - Replies (1)

Hello

I am having troubles getting the pip to work on my windows 10 pc.
I have added the python path, and get ack. when i type python in cmd, bu..... More

Print this item

  Implement distancematrix to Held karp algorithm
Posted by: Robinjacobsson - Nov-01-2019, 08:09 AM - Forum: General Coding Help - Replies (1)

Hi, this is my first post.
I am an PHP developer that just started learning Python. I installed a Go-package and got a code from the internet. Can so..... More

Print this item

  chat simulation between 2 chat bots
Posted by: ronblue77 - Nov-01-2019, 06:49 AM - Forum: Code sharing - No Replies

hello everyone.

here is a small program to test a chat between two chatbots "david" and "zira" also you can chat with david... this is just a sketc..... More

Print this item

  Working socket() program...isn't
Posted by: ptrivino - Nov-01-2019, 01:48 AM - Forum: Networking - Replies (10)

I'm pretty new to Python, and newer still to socket() but I've been working on learning it. I implemented the "Echo Client and Server" from https://r..... More

Print this item

  combining stdout and stderr
Posted by: Skaperen - Nov-01-2019, 01:34 AM - Forum: News and Discussions - Replies (1)

i want to combine stdout and stderr on the same output so both can go over a single pipe. the buffering of stdout can mess up the line ordering. i d..... More

Print this item

  TensorFlow CNN get error - DataType uint8 not in list
Posted by: vokoyo - Oct-31-2019, 11:27 PM - Forum: Data Science - Replies (3)

The experiment is carried out on Windows 10 Pro Intel ® Core ™ i5-4590 CPU @ 3.3 GHz, based on the platform of Anaconda with Spyder Python 3.7.15..... More

Print this item

  Def code does not work for negative integers.
Posted by: doug2019 - Oct-31-2019, 10:56 PM - Forum: General Coding Help - Replies (1)

The def code when it results in negative does not work. I don't know how to solve it.
[python]
def conversao(x):
if x < GPa:
return(st..... More

Print this item

  io.UnsupportedOperation: not readable
Posted by: navidmo - Oct-31-2019, 10:26 PM - Forum: General Coding Help - Replies (1)

i dont understand why i get this error,
thnks for your helping
[python]import hashlib
import csv
input_file_name = 'c:/users/shervin/documents/pas..... More

Print this item

  Attribute Error
Posted by: DiceMann - Oct-31-2019, 09:45 PM - Forum: Homework - Replies (1)

I am doing an online course and when i run the program, i get an error message of:

[output]Traceback (most recent call last):
File "vulnerabilit..... More

Print this item

  OOP and module approaches in a simple app monitoring list of servers
Posted by: hjzxxzjcz - Oct-31-2019, 08:10 PM - Forum: General Coding Help - Replies (1)

Hi there,

I have a simple web app (python & flask) which shows a list of Oracle databases as a list, from where we can open a page with details abo..... More

Print this item

  Showing only one country in Folium
Posted by: tantony - Oct-31-2019, 06:08 PM - Forum: General Coding Help - Replies (3)

I have a script that generates a folium map using Python and Folium. Please click on the link below to see.

[url=https://python-forum.io/thread-22141.html]..... More

Print this item

  packet radio communication
Posted by: EmpireAndrew - Oct-31-2019, 05:29 PM - Forum: General Coding Help - Replies (1)

I have two Raspberry Pi 3's, each with a packet radio attached. Each radio can send and receive data packets, but the data limit is 60 bytes. I have..... More

Print this item

  Trying to display a variable in a label
Posted by: Jordansonatina - Oct-31-2019, 03:44 PM - Forum: GUI - Replies (2)

When I run this the answer prints into the python console but not in the label:

[python]import tkinter as tk

HEIGHT = 300
WIDTH = 300
answer =..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Weird failure in Selenium 5 hours ago glestwid Larz60+ General Codin...
  print does not open conso... 10 hours ago Tycho_2025 Pedroski55 General Codin...
  Fred Economic Data API Yesterday, 15:05 warrior42 Trickety Web Scraping ...
  create ocr to detect lice... Yesterday, 13:58 bimosora noisefloor General Codin...
  Parse Markdown / get the ... Yesterday, 13:56 SpongeB0B noisefloor General Codin...
  Error: cannot mix str wit... 10-01, 03:05 ngregistrations Joliekeva General Codin...
  Integer Factorization Too... 09-30, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... 09-30, 00:21 GnomeSweetGnome GnomeSweetGnome News and Disc...
  Unable to resolve FileNot... 09-29, 17:45 llarkin6 noisefloor General Codin...
  Comparing 2 100GB Drives/... 09-29, 12:59 tester_V snippsat General Codin...
  Select Python comment (#)... 09-28, 18:39 SpongeB0B tester_V General Codin...
Most views
  The best Prog... 577480
  Tutorial Requ... 501354
  Web Scraping ... 441106
  Newbie with P... 385163
  New Users Int... 369912
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+ 12093
buran 8178
snippsat 7371
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
lauren557 Today
maribita Today
AnalystRobert Today
Safariscampoea Today
DataAnalytics021 Today

User Panel Messages

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