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,982
» Latest member: miriamwilliam
» Forum threads: 38,733
» Forum posts: 175,565

Full Statistics

Online Users
There are currently 35 online users.
» 0 Member(s) | 33 Guest(s)
Google, Bing

Latest Threads
Parse Markdown / get the ...
Forum: General Coding Help
Last Post: SpongeB0B
3 hours ago
» Replies: 0
» Views: 54
Error: cannot mix str wit...
Forum: General Coding Help
Last Post: Joliekeva
9 hours ago
» Replies: 4
» Views: 2,011
Integer Factorization Too...
Forum: Code sharing
Last Post: buran
Yesterday, 07:43 AM
» Replies: 2
» Views: 420
My goal to be hired worki...
Forum: News and Discussions
Last Post: GnomeSweetGnome
Yesterday, 12:21 AM
» Replies: 2
» Views: 1,054
Unable to resolve FileNot...
Forum: General Coding Help
Last Post: noisefloor
Sep-29-2025, 05:45 PM
» Replies: 6
» Views: 1,119
Comparing 2 100GB Drives/...
Forum: General Coding Help
Last Post: snippsat
Sep-29-2025, 12:59 PM
» Replies: 8
» Views: 782
Select Python comment (#)...
Forum: General Coding Help
Last Post: tester_V
Sep-28-2025, 06:39 PM
» Replies: 7
» Views: 3,081
what does % stand for in ...
Forum: General Coding Help
Last Post: Gribouillis
Sep-27-2025, 06:49 PM
» Replies: 4
» Views: 2,528
My First App
Forum: Code Review
Last Post: carlbidwell
Sep-27-2025, 10:53 AM
» Replies: 8
» Views: 9,104
how to export a dictionar...
Forum: GUI
Last Post: noisefloor
Sep-26-2025, 05:13 PM
» Replies: 4
» Views: 1,567

 
  A question about subprocess taking input from command line and returning output!
Posted by: Aurimas - May-10-2019, 04:36 PM - Forum: General Coding Help - Replies (8)

Dear Python forum members,

The script I have written below (the_script.py) works fine with this terminal command at MAC OS Mojave Python 2.7:
[quo..... More

Print this item

  No module named 'Pillow'
Posted by: MrMajorThorburn - May-10-2019, 01:27 PM - Forum: General Coding Help - Replies (4)

I get the message ModuleNotFoundError: No module named 'Pillow'
I get the following from pip show Pillow
Name: Pillow
Version: 5.4.1
Summary: Pyth..... More

Print this item

  additional argument missing
Posted by: mcgrim - May-10-2019, 12:20 PM - Forum: Data Science - Replies (1)

I am trying to find the argument of a complex number.
However, the arg function I implemented is giving me the following error:

[error]
runfile('..... More

Print this item

  Cherrypy - no response to requests
Posted by: kryszen2 - May-10-2019, 12:17 PM - Forum: Web Scraping & Web Development - Replies (6)

Hello.
I have problem with deploying cherrypy on Centos7.
I've worked with cherrypy on Windows (json, postgresql etc.) for few years now without a..... More

Print this item

  Avoiding empty line in writing process csv file
Posted by: go127a - May-10-2019, 12:06 PM - Forum: General Coding Help - Replies (4)

Hallo, I have done some calculation on csv file. However, the output csv, after writing process added one empty line at the end of results.

My ques..... More

Print this item

  A context to exit deeply nested loops
Posted by: Gribouillis - May-10-2019, 12:04 PM - Forum: Code sharing - Replies (3)

The break statement doesn't allow to exit several nested loops. It is a simple exercise to develop a block() context to do so. Here is ..... More

Print this item

  Is there a way to create multiple linux users using python?
Posted by: Jannejannesson - May-10-2019, 10:59 AM - Forum: Homework - Replies (1)

Hey guys, I've got an assignment where I need to create a python script that creates [b]multiple linux users with existing usernames and passwords [/b..... More

Print this item

  Installing Python and pointing it to required libraries
Posted by: hooiberg - May-10-2019, 10:12 AM - Forum: General Coding Help - Replies (2)

Hello, more experienced people.

I am responsible for installing software on our CentOS cluster. Several users have requested a new Python version b..... More

Print this item

  bytes-like object is required, not 'str
Posted by: anna - May-10-2019, 10:00 AM - Forum: General Coding Help - Replies (2)

Hi All,

I am fetching all devices from SQL server, checking there reachability, if devices are not in specific IPNetwork, writing to file. again o..... More

Print this item

  real & imag part
Posted by: mcgrim - May-10-2019, 09:52 AM - Forum: Data Science - Replies (5)

this code is supposed to contain methods for complex numbers

[python]
from scipy import *
import numpy as np
from numpy import array
from scipy..... More

Print this item

  parsing logical expression with pyparsing
Posted by: palo173 - May-10-2019, 09:47 AM - Forum: General Coding Help - Replies (2)

I try to create JSON from logical expression as input from user.


[python]
#input from user (for example)
string = "Apple == 5 & (Plum == 7 | Pe..... More

Print this item

Exclamation Get syntax error. Dont understand why
Posted by: beLIEve - May-10-2019, 08:52 AM - Forum: General Coding Help - Replies (21)

Hello!
I am looking for luck Wall

I have whole idea how should work my game but i stuck with simple things Confused
Try to learn but i..... More

Print this item

  Duplicate output when calling a custom function from the same file?
Posted by: road2knowledge - May-10-2019, 07:38 AM - Forum: General Coding Help - Replies (2)

Hi folks,

I'm new to programming and python, and I don't understand why if you call a custom function from the same file it's defined in, you get dup..... More

Print this item

  undup
Posted by: Skaperen - May-10-2019, 06:56 AM - Forum: General Coding Help - Replies (5)

i'm looking for a function to take a sequence that might have duplicates and return one of the same type with no more than one of each item. i only n..... More

Print this item

  Fun Task: Python 3.7.2
Posted by: CozyDarkness - May-10-2019, 06:55 AM - Forum: Homework - Replies (1)

Create a script that reads in the attached emp.txt file and outputs a file with the net pay of each employee. Incorporate the overtime and net pay rul..... More

Print this item

  Text file data to meaningful .csv conversion
Posted by: shrutika - May-10-2019, 05:40 AM - Forum: News and Discussions - Replies (1)

Is there any python lib available to convert a text file with any format of data ( like data have key/value pairs and not fixed delimiters) into csv f..... More

Print this item

  program
Posted by: cm53 - May-09-2019, 10:23 PM - Forum: Homework - Replies (2)

definitely need help solving this program. It is due tonight at 11:59 and i am completely lost. Any and all help for answers please. Must be in python..... More

Print this item

  How to plot implicit functions (with two variables) in scipy python using matplotlib?
Posted by: Jay_Nerella - May-09-2019, 09:48 PM - Forum: General Coding Help - Replies (1)

I have a function with two independent variables x & y and three parameters a,b & c. I done optimization of parameters using least_squares. Now I want..... More

Print this item

  Call a varaible from class in the parent class
Posted by: Clement_2000 - May-09-2019, 09:21 PM - Forum: General Coding Help - Replies (1)

Hi experts.
I'm making a modular interface containing tabs with different tools.
These tools are for now :

Print this item

  Simple inter-process communication: Switching from Perl to Python
Posted by: Pappy - May-09-2019, 08:40 PM - Forum: General Coding Help - Replies (1)

[font=Arial, Helvetica, sans-serif]My go-to scripting language for quite some time has been perl.

However, I have been keenly interested in Python ..... More

Print this item

  Cannot Install python-3.7.3-macosx10.6.pkg
Posted by: steve_314 - May-09-2019, 08:25 PM - Forum: General Coding Help - Replies (6)

I cannot install the latest version of Python (python-3.7.3-macosx10.6.pkg) on Mac OS 10.6.8. The installer throws the following error:

The operat..... More

Print this item

  Animation using matplotlib query
Posted by: JohnDoe - May-09-2019, 08:07 PM - Forum: General Coding Help - No Replies

I am trying to animate a plot of two distinct points (blue and orange points) moving about the complex unit circle using Python's Matplotlib library (..... More

Print this item

  Practicing using a "flag": please point in right direction
Posted by: magsloo - May-09-2019, 07:58 PM - Forum: General Coding Help - Replies (5)

I'm currently going through the Python Crash Course and I'm on Chapter 7. I'm attempting to use an active variable to control how long the loop runs. ..... More

Print this item

  raise error
Posted by: mcgrim - May-09-2019, 07:55 PM - Forum: Homework - Replies (4)

I am testing the function __truediv__ in this code, I am specifically interested in the

raise ValueError
command.

Is supposed to..... More

Print this item

  Looping a function
Posted by: wendysling - May-09-2019, 07:14 PM - Forum: General Coding Help - Replies (3)

Hello,

I am trying to run a function that creates additional columns in a data frame in case the column is missing.

The columns are for months...... More

Print this item

  Pycharm Import statement
Posted by: sunilramakumar - May-09-2019, 06:01 PM - Forum: General Coding Help - Replies (1)

Hello -
Hoping this is the right forum.
I installed pycharm and started using it. I am running into an error when using the import statement. Can y..... More

Print this item

  Please help coding
Posted by: aankrose - May-09-2019, 05:57 PM - Forum: General Coding Help - Replies (4)

If given input in INPUT=9 , I would like to get below output

[output]
123456789
.1234567
..12345
...123
....1
...123
..12345
.1234567
1234..... More

Print this item

  getting Entry text
Posted by: Stauricus - May-09-2019, 04:24 PM - Forum: GUI - Replies (4)

hello everybody. first post here Smile

i'm having trouble to get the text value inside an Entry box. So, i created this small example that show..... More

Print this item

  Tkinter window pop up again when i click button
Posted by: Orimura_Sandy - May-09-2019, 04:24 PM - Forum: GUI - Replies (1)

Hi guys, im new at python and new at programming code.
i got confused when run a little program that i created on.
so it pop up again when i click "..... More

Print this item

  Play Audio While continuing Gameplay
Posted by: apealunited - May-09-2019, 02:25 PM - Forum: Game Development - Replies (2)

I am new to game development.

I am making Snake game as my first game project. I want to play audio when snake eats food.

I tried doing using t..... More

Print this item

  trying to locate a working grpc to install
Posted by: MrMajorThorburn - May-09-2019, 01:48 PM - Forum: General Coding Help - Replies (6)

I am trying to find a working grpc to install.
The command I tried and result was
>py -m pip install grpc
Collecting grpc
Using cached https://f..... More

Print this item

  WHY? General Python Programming question moved to GUI.
Posted by: Webtest - May-09-2019, 01:10 PM - Forum: Board - Replies (3)

Esteemed Administrators and Moderators:

I just posted a very generic Python Programming question which was immediately moved to the "..... More

Print this item

  HOW TO: Use Globals In Module ???
Posted by: Webtest - May-09-2019, 12:45 PM - Forum: GUI - Replies (3)

Esteemed Forum Participants and Lurkers:
Platform: Linux Mint 18.3 Mate 64-bit, Python 3.5.2 & Idle3
I am working on a Python 3..... More

Print this item

  Still struggling with np.where...
Posted by: pberrett - May-09-2019, 12:06 PM - Forum: General Coding Help - Replies (1)

Hello everyone

Despite some help on this forum I am still struggling with np.where

Can someone help solve my problem?

I have a numpy array d..... More

Print this item

  Reading in MYSQL data as integer type
Posted by: Daveinthebigcity - May-09-2019, 11:49 AM - Forum: General Coding Help - Replies (2)

Hi,
I'm using mysql.connector to query my databases but I'm having trouble with the data type returned.
in my query result I'm just looking for a co..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Parse Markdown / get the ... 3 hours ago SpongeB0B SpongeB0B General Codin...
  Error: cannot mix str wit... 9 hours ago ngregistrations Joliekeva General Codin...
  Integer Factorization Too... Yesterday, 07:43 fosuwxb buran Code sharing
  My goal to be hired worki... Yesterday, 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...
  what does % stand for in ... 09-27, 18:49 arbiel Gribouillis General Codin...
  My First App 09-27, 10:53 BCopeland64 carlbidwell Code Review
  [Tkinter] how to export a... 09-26, 17:13 RonR noisefloor GUI
  Is the interpreter that c... 09-26, 13:17 helendamdam noisefloor General Codin...
Most views
  The best Prog... 577444
  Tutorial Requ... 500951
  Web Scraping ... 441076
  Newbie with P... 385142
  New Users Int... 369695
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+ 12091
buran 8178
snippsat 7370
deanhystad 6897
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
miriamwilliam Today
Davidkiplimo Today
Joliekeva Today
silversimon2 Yesterday
alissapena8 Yesterday

User Panel Messages

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