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,627
» Latest member: TheJeffah
» Forum threads: 38,637
» Forum posts: 175,063

Full Statistics

Online Users
There are currently 425 online users.
» 0 Member(s) | 421 Guest(s)
Google, Bing, Baidu, Yandex

Latest Threads
List[] in Python needs so...
Forum: Game Development
Last Post: DeaD_EyE
Yesterday, 01:32 PM
» Replies: 3
» Views: 372
Web scraping confusion
Forum: Web Scraping & Web Development
Last Post: AlluminumFoil
Yesterday, 11:05 AM
» Replies: 4
» Views: 1,858
Problem Converting Tradin...
Forum: General Coding Help
Last Post: wallneradam
Yesterday, 07:29 AM
» Replies: 2
» Views: 2,782
2D-Cube-Tic-Tac-Toe
Forum: Game Development
Last Post: barrelmarble
Yesterday, 07:25 AM
» Replies: 1
» Views: 1,867
PyQT5 Thread crashes afte...
Forum: GUI
Last Post: Axel_Erfurt
Jun-26-2025, 08:17 PM
» Replies: 2
» Views: 3,068
Unable to install pygame ...
Forum: Game Development
Last Post: Thatedge
Jun-26-2025, 08:09 AM
» Replies: 2
» Views: 2,086
can't use pyrepl: bad mag...
Forum: News and Discussions
Last Post: Plyth
Jun-26-2025, 05:53 AM
» Replies: 2
» Views: 245
Setting AST node lineno c...
Forum: General Coding Help
Last Post: voidtrance
Jun-24-2025, 02:10 PM
» Replies: 5
» Views: 506
[SOLVED] Let user search ...
Forum: GUI
Last Post: deanhystad
Jun-24-2025, 02:04 PM
» Replies: 3
» Views: 203
color names
Forum: General Coding Help
Last Post: DeaD_EyE
Jun-24-2025, 08:10 AM
» Replies: 9
» Views: 199,403

 
  py2app ValueError
Posted by: harusin - Jun-12-2017, 07:30 PM - Forum: General Coding Help - Replies (1)

Hello,

i have issue with app on OSX, gui in tkinter and app created with py2app. When i try to run application it won't and i get error.
[error]
..... More

Print this item

  how to detect \x in string so it can be removed
Posted by: azimmermann - Jun-12-2017, 06:36 PM - Forum: General Coding Help - Replies (5)

I have some garbled data that has random \x values in the string. These should be skipped for the import to work correctly
I am trying to write code ..... More

Print this item

  Rasp Pi: "lp: not allowed to print" when using a python script
Posted by: montypython76 - Jun-12-2017, 03:25 PM - Forum: General Coding Help - Replies (1)

Hi there,

I have an issue printing a textfile with a python script. The script is simple:

[python]import os

os.system('lp "testdatei.txt"')[/python..... More

Print this item

  Pulling and comparing CSV data
Posted by: b0bnchuck - Jun-12-2017, 02:14 PM - Forum: General Coding Help - Replies (3)

Need a script that will take a CSV file inputted by user (in the form of filepath with filename), another directory path containing files inputted by ..... More

Print this item

  trying an online challenge
Posted by: tozqo - Jun-12-2017, 11:38 AM - Forum: Homework - Replies (8)

I recently started learning Python. I have watched several YouTube vids, read some documentation, and experimented on my own. I'm currently trying to ..... More

Print this item

  given 2 base 20 numbers write a program to subtract second from the first and return
Posted by: dp_tisha - Jun-12-2017, 05:37 AM - Forum: Homework - Replies (2)

Assume a base 20 number system which uses symbols 0-9 to represent values zero to nine and charectera A-J to represent values ten to nineteenth.

As..... More

Print this item

  More than or less than
Posted by: Splodge_123 - Jun-11-2017, 07:31 PM - Forum: Homework - Replies (2)

Hi,


I am relatively new to python and was wondering if someone could tell me what the python syntax is for 'more than' and 'less than'. I have tr..... More

Print this item

  Plotting Graph
Posted by: jacky19971997 - Jun-11-2017, 02:54 PM - Forum: Data Science - No Replies

Hello,

I'm trying to plot data which i receive from a serial com. It plots the data in a figure in 3 graphs.
I'm using the drawnow, but i can't fi..... More

Print this item

  Repeating a block of code
Posted by: owdcoder - Jun-11-2017, 02:52 PM - Forum: General Coding Help - Replies (8)

Is there a command which will repeat a block of code a set number of time. eg 10.times do:

my code here

Print this item

  Sqlite permissions problem.
Posted by: feat7 - Jun-11-2017, 02:10 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello there!
I just started writing in python. I am facing some issue regarding permissions to SQLite.
This is my repo [inline]github.com/feat7/medi..... More

Print this item

  Use Select_analysis in a loop
Posted by: babakkasraie - Jun-11-2017, 10:32 AM - Forum: General Coding Help - Replies (4)

How can I use select_analysis in a loop?
I need to select polygons one by one and create separate shapefiles from them.
I tried the following code..... More

Print this item

  Selected radio button in push button in Tkinter
Posted by: prashantfunde91 - Jun-11-2017, 08:15 AM - Forum: GUI - Replies (1)

my question here

my code here
Hello everyone i am learning about Python GUI stuff,

I have to use 4 radio buttons and a push bu..... More

Print this item

  how to enter a pause in the middle of a file
Posted by: sylas - Jun-11-2017, 06:14 AM - Forum: General Coding Help - Replies (2)

Hi all. With C++ I stop running for a pause with cin.get(), I tell to the user "Press ENTER to continue". What is the equivalent with python ??

[py..... More

Print this item

  split a grid into its tiles with tried codes
Posted by: babakkasraie - Jun-11-2017, 04:35 AM - Forum: General Coding Help - Replies (2)

Hello

I have a grid shapefile that contains 10 polygon squares.

I need to select each tile (which is a row in the attribute table) and make a s..... More

Print this item

  Back end issues
Posted by: brianmluo - Jun-11-2017, 03:05 AM - Forum: Homework - Replies (3)

Im doing a front and back end project which will be run on apache 2.4.7
So far however, my backend, when requested by the front end, returns an error..... More

Print this item

  len(bridge_knight) = 94 characters...
Posted by: RodNintendeaux - Jun-10-2017, 08:58 PM - Forum: General Coding Help - Replies (5)

bridge_knight = "I seek the bravest and the finest knights in the land who will join me in my court at Camelot."
When I run len(brid..... More

Print this item

  "my_value".index() inquiry...
Posted by: RodNintendeaux - Jun-10-2017, 06:48 PM - Forum: General Coding Help - Replies (6)

So I am learning this .index() thingy and know how to use it for a single character in a string, but I am running into errors trying to attempt to ind..... More

Print this item

  Not sure what I'm supposed to be doing here.
Posted by: ukr_nate - Jun-10-2017, 04:39 PM - Forum: Homework - Replies (5)

Howdy. I'm taking a class on Python in college, and I've come across a problem where I don't know what I'm supposed to be trying to do. I understand t..... More

Print this item

  Else statement
Posted by: snafu - Jun-10-2017, 04:01 PM - Forum: General Coding Help - Replies (2)

I'm new to python and i'm trying to code for the first. I'm trying to follow the Else statement following this youtube video:
https : //www  .youtube...... More

Print this item

  Is there a better way
Posted by: Able98 - Jun-10-2017, 03:36 PM - Forum: General Coding Help - Replies (2)

Is there a better way of doing this?

f = open(somename.dat)
print ("{0}" .format(f.name) + ".txt")
output is "somename.dat..... More

Print this item

  Data csv file into different text files with Python
Posted by: Bambi - Jun-10-2017, 03:27 PM - Forum: General Coding Help - Replies (1)

I'm a beginner in programming, but for a Dutch text categorization experiment I want to turn every instance (row) of a csv file into separate .txt fil..... More

Print this item

  install cups on python3
Posted by: gray - Jun-10-2017, 08:24 AM - Forum: GUI - Replies (2)

hello friends
i installed cups...i wanted to install it on python3 but it was installed on python2
i used this link for downloading cups: [u..... More

Print this item

  accessing postgresql
Posted by: Skaperen - Jun-10-2017, 05:13 AM - Forum: News and Discussions - Replies (8)

if you use postgresql from python: what is your favorite way to access postgresql in python?

i am looking to see which is more popular here.

the..... More

Print this item

  How to get data instead of memory addresses
Posted by: KBingo - Jun-10-2017, 03:05 AM - Forum: General Coding Help - Replies (3)

I'm trying to extract and display data from an API.  I'm using a purpose-built wrapper that utilizes SQLAlchemy, which I have installed.  But instead ..... More

Print this item

  How to display memory PDF in wxpython
Posted by: Larz60+ - Jun-10-2017, 12:03 AM - Forum: GUI - Replies (1)

To view a pdf file with wx.lib.pdfviewer.viewer.pdfViewer, you use:

   pdfV.viewer.LoadFile(r'a path to a .pdf file')
that wo..... More

Print this item

  Good ID3 module?
Posted by: Ofnuts - Jun-09-2017, 09:46 PM - Forum: News and Discussions - Replies (1)

I'm going to mass-tweak the ID3 tags in my MP3 collection. Search ID3 on PyPI elicits too many answers, I don't want to try them all :)

Has anyone ..... More

Print this item

  python console executes a file that PyCharm cannot execute
Posted by: sylas - Jun-09-2017, 04:25 PM - Forum: General Coding Help - Replies (6)

Hi all. Here at first the file that works well with python console......................................................................................... More

Print this item

  realtime database update in django
Posted by: x64 - Jun-09-2017, 03:15 PM - Forum: Web Scraping & Web Development - Replies (2)

please help me if anyone know the process how can i update my webpage realtime when update my database. We need to page refresh to see the latest data..... More

Print this item

  ignored exception
Posted by: Skaperen - Jun-09-2017, 05:32 AM - Forum: General Coding Help - Replies (6)

i sometimes get this message when i don't want the exception to be ignored:

[output]Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='..... More

Print this item

  Fibonacci sequence
Posted by: logic - Jun-08-2017, 10:01 PM - Forum: Homework - Replies (3)

Create a program that generates an output file containing a user defined amount of the fibanacci sequence.

Print this item

  PySerial
Posted by: Soichiro - Jun-08-2017, 05:37 PM - Forum: General Coding Help - Replies (1)

Hello everyone,
I am opening this thread because I need to retrieve numeric data from a serial port RS232.

This is what I would like to accomplish..... More

Print this item

  Remove extra lines from .csv file in comparison with another
Posted by: pedteles - Jun-08-2017, 02:58 PM - Forum: General Coding Help - Replies (1)

Dear all,

First of all thanks for your help, I am really very new at this so I don't even know if I'll be able to do it.

I have two .csv files c..... More

Print this item

  Removing data in a plot
Posted by: ulrich48155 - Jun-08-2017, 02:25 PM - Forum: Homework - Replies (3)

For a project I needed to calculate and display a 10fold cross-validation on a time-series. After plotting my results look like this:

http://imgur...... More

Print this item

  range and xrange
Posted by: amrita - Jun-08-2017, 10:01 AM - Forum: General Coding Help - Replies (9)

In Python, which of the following descriptions about range() and xrange() is NOT true?

In Python 2, when it is needed to generate a quite large seq..... More

Print this item

  Warning password insecure - Mysql backup with Python
Posted by: HyiikO - Jun-08-2017, 08:24 AM - Forum: General Coding Help - Replies (4)

I made this little script with Python to create a backup of a table from my database:

[python]import subprocess
sql_cmd = 'mysql -B -uUser -p passwor..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  List[] in Python needs so... Yesterday, 13:32 Codingdesigner12 DeaD_EyE Game Developm...
  Web scraping confusion Yesterday, 11:05 keifin AlluminumFoil Web Scraping ...
  Problem Converting Tradin... Yesterday, 07:29 kralxs wallneradam General Codin...
  2D-Cube-Tic-Tac-Toe Yesterday, 07:25 freethrownucleus barrelmarble Game Developm...
  [PyQt] PyQT5 Thread crash... 06-26, 20:17 Suresh Axel_Erfurt GUI
  Unable to install pygame ... 06-26, 08:09 garthE Thatedge Game Developm...
  can't use pyrepl: bad mag... 06-26, 05:53 eliastw85 Plyth News and Disc...
  Setting AST node lineno c... 06-24, 14:10 voidtrance voidtrance General Codin...
  [WxPython] [SOLVED] Let u... 06-24, 14:04 Winfried deanhystad GUI
  color names 06-24, 08:10 jimrinaldo DeaD_EyE General Codin...
  Python Install Mager Help 06-24, 04:43 bowens1983 DeaD_EyE News and Disc...
Most views
  The best Prog... 572353
  Tutorial Requ... 485035
  Web Scraping ... 436890
  Newbie with P... 379719
  Thread remain... 351240
Most reputation
buran 581
snippsat 507
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 450
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12067
buran 8173
snippsat 7340
deanhystad 6840
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
as1221 3
Newest members
TheJeffah Yesterday
ChauHaiCim9904 Yesterday
barrelmarble Yesterday
wallneradam Yesterday
spokedge Yesterday

User Panel Messages

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