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,312
» Latest member: elizabethlittle6258
» Forum threads: 38,801
» Forum posts: 175,923

Full Statistics

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

Latest Threads
No new line from print in...
Forum: General Coding Help
Last Post: noisefloor
Today, 10:06 AM
» Replies: 11
» Views: 323
Python compiler
Forum: General Coding Help
Last Post: noisefloor
Today, 09:50 AM
» Replies: 1
» Views: 78
Trading Risk management s...
Forum: Code sharing
Last Post: NeoQuant
Yesterday, 07:34 PM
» Replies: 5
» Views: 95
Standard template Data En...
Forum: Code Review
Last Post: Hosthubac
Yesterday, 05:51 PM
» Replies: 0
» Views: 55
Python Online Compiler
Forum: News and Discussions
Last Post: ichsanputr
Yesterday, 07:39 AM
» Replies: 3
» Views: 11,136
Python is not working on ...
Forum: General Coding Help
Last Post: noisefloor
Nov-28-2025, 10:44 AM
» Replies: 4
» Views: 213
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-28-2025, 04:44 AM
» Replies: 8
» Views: 737
Can I develop a live vide...
Forum: Web Scraping & Web Development
Last Post: mamta25
Nov-27-2025, 04:48 AM
» Replies: 6
» Views: 7,842
silent deployment Python ...
Forum: News and Discussions
Last Post: Larz60+
Nov-26-2025, 09:58 PM
» Replies: 3
» Views: 216
Proposal for PEP
Forum: News and Discussions
Last Post: Gribouillis
Nov-26-2025, 03:53 PM
» Replies: 1
» Views: 172

 
  Need help saving data into MySQL database
Posted by: reezalaq - Jun-03-2018, 07:50 PM - Forum: General Coding Help - No Replies

I'm trying to save API data into MySQL database but not sure why this isn't working Confused :

[python]from aliexpress_api_client import AliEx..... More

Print this item

  Job Scheduling to be solved with Greedy algorithm
Posted by: hfan6206 - Jun-03-2018, 03:36 PM - Forum: General Coding Help - Replies (1)

I am learning Greedy algorithm, i now want to solve Job Scheduling with this algorithm, say i have a list
[python]list=[(1, 3.0, 6.0), (2, 6.0, 10.0)..... More

Print this item

  [SOLVED] OSError: [Errno 22] Invalid argument
Posted by: Panda - Jun-03-2018, 02:03 PM - Forum: General Coding Help - Replies (13)

When trying to write to a log file, i get the error OSError: [Errno 22] Invalid argument

The code i am using is as follows:
[python]
import datet..... More

Print this item

  Noob help :)
Posted by: rwood1875 - Jun-03-2018, 12:33 PM - Forum: Homework - Replies (2)

Hi all. I'm getting an error message when running the following code.
I'm assuming its something to do with integers not being strings and vice-versa..... More

Print this item

  VS Code editor questions
Posted by: Larz60+ - Jun-03-2018, 09:32 AM - Forum: News and Discussions - Replies (10)

I have attempted to learn VS code studio in the past, but as soon as I had something that I needed to get done quickly, I reverted back to PyCharm.
..... More

Print this item

  Installing Tensorflow
Posted by: Scott - Jun-03-2018, 07:47 AM - Forum: Data Science - Replies (14)

Hi everyone,

I am trying to install tensorflow in Spyder with the code below:

$ pip3 install --upgrade tensorflow

I am getting error:

$ pi..... More

Print this item

  need pulse counter in GUI
Posted by: shivshankar1986 - Jun-03-2018, 07:16 AM - Forum: GUI - Replies (5)

Hello everyone,
I am new on Tkinter, I have python program which is I want to convert to GUI, Its simple pulse counter using Raspberry pi 3 and Nodemc..... More

Print this item

Information How to read the XML files
Posted by: RajaPython - Jun-03-2018, 06:19 AM - Forum: Web Scraping & Web Development - Replies (7)

Need help in reading the xml file and converting into dictionaries

XmL file:
"
<?xml version="1.0"?>
<OMeS version="2.3">
<PMSetup startTime="..... More

Print this item

  IDLE indenting 29 columns after defining function
Posted by: Cosmo_Kane - Jun-03-2018, 02:35 AM - Forum: General Coding Help - Replies (1)

In the program I'm working on, the IDLE keeps indenting by 29 columns instead of 4 after defining a function. I'm not sure why and I'd appreciate some..... More

Print this item

  wx webview event
Posted by: ian - Jun-03-2018, 12:57 AM - Forum: Web Scraping & Web Development - Replies (1)

when a webpage loading, it generates event more than once. Google in the code below, has the event fired twice. some webpage has more than 10 times. i..... More

Print this item

  Need help
Posted by: cwong79 - Jun-02-2018, 09:50 PM - Forum: Homework - Replies (3)

I don't know what the second logical error is. Can anyone help?

1) Please review the Python 3 code snippet below. In this sn..... More

Print this item

  Microsoft buying GitHub ... Mercy!
Posted by: Larz60+ - Jun-02-2018, 08:36 PM - Forum: News and Discussions - Replies (14)

Microsoft officials have been talking to GitHub about possibly acquiring the company, according to a June 1 report in Business Insider.
see: http://w..... More

Print this item

  Printing from a text file not working as I thought it would
Posted by: PythonZenon - Jun-02-2018, 07:39 PM - Forum: General Coding Help - Replies (10)

Hi all! So my exercise is to read what's written in a text file and print it three times in three different ways. My solution is:

[python]filename ..... More

Print this item

  ECU for Convertible car top problem
Posted by: lasix - Jun-02-2018, 04:34 PM - Forum: General Coding Help - Replies (2)

Sorry if this is not in the correct forum. I thought this would fit it best, however mods, please move as desired. I am not new to programming, but I..... More

Print this item

  Seperate entities in text file
Posted by: bigdazza - Jun-02-2018, 02:06 PM - Forum: General Coding Help - Replies (1)

Hi all,
I am having problems writing seperate data entiries into a file. The code (listed below) keeps on appending the data into one long strin..... More

Print this item

  Packaging a python project the right way
Posted by: TomBrady - Jun-02-2018, 01:46 PM - Forum: General Coding Help - Replies (2)

I have spent days trying to find the best way to package my python project, so that it would be easy to install by other people. As I have found more ..... More

Print this item

  Django not saving model in management command
Posted by: F2Andy - Jun-02-2018, 11:43 AM - Forum: Web Scraping & Web Development - Replies (1)

I am setting up a command to runfrom the command line to put some initial values in the database, but for some reason the model is not getting saved. ..... More

Print this item

  Modifying events with the Google Calendar API
Posted by: mondgott - Jun-02-2018, 08:27 AM - Forum: News and Discussions - No Replies

Introduction
In an earlier post, I introduced Python developers to adding events to users’ calendars using the Google Calendar API. However, while be..... More

Print this item

  A book for the mathematics ( exercice to training )
Posted by: CastorArteII - Jun-02-2018, 04:02 AM - Forum: News and Discussions - Replies (2)

Hi all.

I am a student, i learn python, it's very interressant, but when i must use this to translate a theoreme mathematics, i am very slow...
..... More

Print this item

  When do you put variables inside vs outside a function?
Posted by: Drone4four - Jun-02-2018, 03:15 AM - Forum: General Coding Help - Replies (6)

Check out this code from my interpreter:
[code]$ python3
>>> first_list = [1,2,3,4,5,6]
>>> second_list = [101,202,303,404]
>>> first_list.reverse..... More

Print this item

  len() function doesn't work with Geany Editor
Posted by: hudabaig - Jun-01-2018, 10:53 PM - Forum: General Coding Help - Replies (2)

Hello,

I am using Python 3.5 with Geany 1.25.

One of the exercises I have come across while studying python as a beginner is using the len() fuc..... More

Print this item

  Web Scraping efficiency improvement
Posted by: HiImNew - Jun-01-2018, 08:52 PM - Forum: General Coding Help - No Replies

Is there any way to speed up a web-scraper by having multiple computers contribute to processing a list of urls? Like computer A takes urls 1 - 500 an..... More

Print this item

  Line of file from string to list to tuple
Posted by: vvarrior - Jun-01-2018, 08:29 PM - Forum: General Coding Help - Replies (2)

How do I convert a line from a file into a tuple so I can input into mysql database?
File:
[output]['sql statement %s where id = %s', ['test','1']][..... More

Print this item

  Dropping all rows of multiple columns after the max of one cell
Posted by: Thunberd - Jun-01-2018, 06:34 PM - Forum: Data Science - Replies (2)

Okay so to be frank I am new to python, and I am trying to interpret some data, this is what I have (below)
so What I am trying to do is make it so th..... More

Print this item

  Folium FastMarkerCluster
Posted by: OgnjanD - Jun-01-2018, 06:20 PM - Forum: Data Science - No Replies

I am plotting gun violence incidents in the U.S. with folium FastMarkerCluster. The code bellow does the job rather well.

[python]lats2018 = guns20..... More

Print this item

  Updating existing Py app
Posted by: n8bizall - Jun-01-2018, 03:01 PM - Forum: General Coding Help - Replies (2)

I am a JR .NET developer and have only a couple hours of basic Python training. I have been tasked with updating an existing py application. In the co..... More

Print this item

  How to do matrix subtraction
Posted by: SriRajesh - Jun-01-2018, 02:00 PM - Forum: Data Science - No Replies

Hi,
I have below two arrays
1. my test data
2. my prediction data

[python]print(y_pred2)
[0 2 0 2 0 0]
print(y_test)
y
30 0
31 0
32 0..... More

Print this item

  Using Subprocess.Popen to start another python script running in background on Window
Posted by: johnb546 - Jun-01-2018, 01:57 PM - Forum: General Coding Help - No Replies

Hi,
New to Python but loving it. I am trying to run another python script using subprocess.Popen and have it run in the background. It works ok i..... More

Print this item

  AWS rekognition - index faces
Posted by: coffe2go00 - Jun-01-2018, 12:23 PM - Forum: General Coding Help - Replies (3)

Hi,

i am new in python trying to index faces using Rekogniton API's and getting the following error:

[error]DetectionAttributes=[ 'ALL' ]
F..... More

Print this item

  PyEDA-IPython Problem [Graph]
Posted by: embash - Jun-01-2018, 08:17 AM - Forum: General Coding Help - Replies (5)

Hi,
I'm using ipython for drawing binary decision diagrams but i have a problem.

I'm trying to have a graphical model of this:

[python]In [1]: ..... More

Print this item

  running script help
Posted by: matyricon - Jun-01-2018, 07:20 AM - Forum: Bar - Replies (1)

Hey,
A mate and i recently came across an Alpha 320c Led sign and we have been using the demo software through a serial connection to upload text to..... More

Print this item

  reading 2 files concurrently
Posted by: Skaperen - Jun-01-2018, 02:37 AM - Forum: General Coding Help - Replies (3)

i am trying to find the Pythonic way(s) (or popular way(s)) to read from two files or file descriptors at the same time, in such a way that the caller..... More

Print this item

  Create random pairs
Posted by: Dennisp44 - May-31-2018, 11:53 PM - Forum: General Coding Help - Replies (3)

I am trying to create random pairings from a list of players.
I first need to randomize the entire list into pairs and then divide that list into hal..... More

Print this item

  How to get python to select a dictionary.
Posted by: jarrod0987 - May-31-2018, 10:51 PM - Forum: General Coding Help - Replies (1)

I'm not even sure how to word my question. I know exactly what I want to do but I don't know how to ask it so I will try an example.

Suppose I have..... More

Print this item

  dealing with spaces in file names
Posted by: AceScottie - May-31-2018, 10:09 PM - Forum: General Coding Help - Replies (5)

example

import os
file = "C:\\test file.txt"
os.system("start '" +file +"'")
[error]The system cannot find the file 'C:\tes..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  No new line from print in... Today, 10:06 Lou noisefloor General Codin...
  Python compiler Today, 09:50 NeoQuant noisefloor General Codin...
  Trading Risk management s... Yesterday, 19:34 NeoQuant NeoQuant Code sharing
  Standard template Data En... Yesterday, 17:51 Hosthubac Hosthubac Code Review
  Python Online Compiler Yesterday, 07:39 alexmaxwell1 ichsanputr News and Disc...
  Python is not working on ... 11-28, 10:44 lary_p noisefloor General Codin...
  Help with Serial.write in... 11-28, 04:44 racingsubby Larz60+ General Codin...
  Can I develop a live vide... 11-27, 04:48 mtrkhan mamta25 Web Scraping ...
  silent deployment Python ... 11-26, 21:58 Bummibaer Larz60+ News and Disc...
  Proposal for PEP 11-26, 15:53 matt Gribouillis News and Disc...
  My regex function is not ... 11-26, 08:47 Moltar1997 perfringo General Codin...
Most views
  The best Prog... 579514
  Tutorial Requ... 513000
  Web Scraping ... 442378
  Newbie with P... 386405
  New Users Int... 381794
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+ 12113
buran 8196
snippsat 7394
deanhystad 6916
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
elizabethlittle6258 Today
StepanVoronin Today
QABOB Today
adityaN Today
NeoQuant Yesterday

User Panel Messages

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