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,263
» Latest member: aanthonymaaleyo3938
» Forum threads: 38,787
» Forum posts: 175,849

Full Statistics

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

Latest Threads
How to make ball stay wit...
Forum: General Coding Help
Last Post: deanhystad
9 hours ago
» Replies: 2
» Views: 85
PermissionError: [Errno 1...
Forum: GUI
Last Post: deanhystad
10 hours ago
» Replies: 1
» Views: 52
Graph Interpolate Difficu...
Forum: General Coding Help
Last Post: deanhystad
11 hours ago
» Replies: 1
» Views: 52
sorting a lisr of file pa...
Forum: News and Discussions
Last Post: DeaD_EyE
Yesterday, 01:00 PM
» Replies: 5
» Views: 311
conditional nested loops
Forum: News and Discussions
Last Post: Skaperen
Nov-14-2025, 11:31 PM
» Replies: 0
» Views: 44
PyQt6 QWidgets and system...
Forum: GUI
Last Post: stevecoh1
Nov-14-2025, 06:38 PM
» Replies: 0
» Views: 69
[solved] re.split issue
Forum: General Coding Help
Last Post: deanhystad
Nov-14-2025, 06:02 PM
» Replies: 10
» Views: 260
Please guide me to comple...
Forum: General Coding Help
Last Post: Larz60+
Nov-14-2025, 03:33 PM
» Replies: 3
» Views: 136
New to python and coding
Forum: Homework
Last Post: jefsummers
Nov-13-2025, 07:58 PM
» Replies: 6
» Views: 235
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Nov-13-2025, 11:52 AM
» Replies: 6
» Views: 419

 
  ModuleNotFoundError when application is not installed via setup.py
Posted by: bytebutcher - Jan-07-2021, 05:22 PM - Forum: General Coding Help - Replies (3)

Hi there,

i've packaged my program and uploaded it to pypi. When installed via pip everything works flawlessly. However, when cloning the repositor..... More

Print this item

  rotating an array
Posted by: djwilson0495 - Jan-07-2021, 05:01 PM - Forum: General Coding Help - Replies (3)

I'm trying to write a code to rotate an array by a given value. Here's my code:

[python]
A = [4,6,8,9,1]
K = 2

def rotate_array(A,K):
for..... More

Print this item

  Python Request Errors
Posted by: PythonNoob1998 - Jan-07-2021, 02:37 PM - Forum: General Coding Help - Replies (7)

Hi, so I am trying to run this script -

[python]

import requests, json

# Enter your API key here
api_key = "2eacaa2c66e011c77935d17f0b7a72ed"

# ..... More

Print this item

  All pipe instances are busy
Posted by: GrahamL - Jan-07-2021, 12:05 PM - Forum: Networking - Replies (1)

Hi
I am trying to use pipes to communicate between 2 python apps
On the server side I create a named pipe
[python]
self.server_pipe = win3..... More

Print this item

  Trouble uninstalling/reinstalling python 3.9.1
Posted by: jnbutler1815 - Jan-07-2021, 11:59 AM - Forum: News and Discussions - Replies (6)

I have completely uninstalled python 3.9.0 and 3.9.1 from my windows 10 computer. But when I try to reinstall 3.9.1 it gives me the dialog that says M..... More

Print this item

Question Stock market data in LibreOffice Calc
Posted by: Pitone - Jan-07-2021, 11:24 AM - Forum: Data Science - Replies (4)

Hi everyone,

I am new to the world of Python. I have seen that Python is also widely used in finance, so I would like to ask you if with this langu..... More

Print this item

  Domain Name Including Word Python
Posted by: Rajbir - Jan-07-2021, 10:52 AM - Forum: News and Discussions - Replies (2)

Hi Experts

I want to purchase a domain name

Will any of the name is illegal's to use.

Will python group can take some legal action against me if..... More

Print this item

  Help with if vs elif
Posted by: print_hello_world - Jan-07-2021, 06:09 AM - Forum: General Coding Help - Replies (5)

Hello World,

I am going through this book 'Automate the Boring Stuff with Python' and came across the secret number game example (example here: htt..... More

Print this item

  How to append multiple <class 'str'> into a single List
Posted by: ahmedwaqas92 - Jan-07-2021, 05:20 AM - Forum: General Coding Help - Replies (2)

I have a variable called "link_list" that prints out multiple game-id URLs which I, using pythonic means, procured from a sports website. The terminal..... More

Print this item

  Super basic tkinter arduino issue
Posted by: Kurta - Jan-07-2021, 04:14 AM - Forum: GUI - Replies (3)

Hi
doing a basic read and display exercise.

Does anyone know how to do a basic print data from arduino onto
Tkinter with python?

(i dont!! ..... More

Print this item

  python setup.py install error
Posted by: blackclover - Jan-07-2021, 02:25 AM - Forum: General Coding Help - Replies (2)

Hi,

while trying to install a python program (Trelby) on Alpine Linux, I get the following error message:

$ sudo python setup.py install
File..... More

Print this item

  Python Requests SSL
Posted by: Aussie - Jan-07-2021, 02:09 AM - Forum: General Coding Help - No Replies

Hi,
I have managed to get Auth working. However, using the SSL certificate is proving difficult.
Any ideas? verify ='C:/Users/Administrator/Desktop/..... More

Print this item

  Can't import anything
Posted by: thecoltster1 - Jan-07-2021, 12:16 AM - Forum: General Coding Help - Replies (4)

Hey guys I'm trying to get some basic modules to import into python 3.7. I've done the pip3 installs for keyboard and also pyautogui but when I try to..... More

Print this item

  IndexError: index 10 is out of bounds for axis 0 with size 1
Posted by: vahid89 - Jan-06-2021, 09:58 PM - Forum: General Coding Help - Replies (1)

Hello. I am posting for the first time on this site and I am asking my questions. I am implementing the following code and I will receive the error me..... More

Print this item

  Global vs. Local Variables
Posted by: Davy_Jones_XIV - Jan-06-2021, 09:18 PM - Forum: General Coding Help - Replies (4)

I know I will probably be flamed for this question, but after 12 hours of researching and trying, this is my last resort. I know it is probably someth..... More

Print this item

  Optimize a game of life (4 sec for python when 6 ms for C version !)
Posted by: fatango - Jan-06-2021, 09:13 PM - Forum: General Coding Help - No Replies

Hi,

I'm trying to optimize my game of life in Python but it takes 2 to 4 sec for one life cycle (without display) when it takes 6 ms with the versi..... More

Print this item

  How to run a pytest test for each item in a list
Posted by: arielma - Jan-06-2021, 08:22 PM - Forum: General Coding Help - No Replies

Hi,
I have the below pytest code as part of DSS. In general it's really simple: It gets list of scenarios:
..... More

Print this item

  Super flexibility in python, examples
Posted by: Kakha - Jan-06-2021, 07:34 PM - Forum: General Coding Help - Replies (10)

finds the maximum both in the text and in numbers from two related functions, it is really beautiful.
[python]
in1=str(input("1. insert text: "))
i..... More

Print this item

  Extracting information from .xlsx files
Posted by: hobbyist - Jan-06-2021, 07:17 PM - Forum: General Coding Help - No Replies

I need to extract the date from the timestamp which is in this format: 2016-07-11T10:40:09+00:00 How do I achieve this?
I need an excel file that I re..... More

Print this item

  How to call multiple functions sequentially
Posted by: Mayo - Jan-06-2021, 07:04 PM - Forum: General Coding Help - Replies (2)

Hello guys, I am trying to learn Python and I wonder if there is a better, more efficient solution to this.
[python]
def firstCalc():
a = 2+2..... More

Print this item

  Holding multiple scripts and system portability
Posted by: Tab_Quicker - Jan-06-2021, 06:04 PM - Forum: News and Discussions - No Replies

Hi

Ive been getting more into python development recently and I have two questions that sit above coding and are more about systems.

The first i..... More

Print this item

  How to delete existing label?
Posted by: Oshadha - Jan-06-2021, 05:00 PM - Forum: GUI - Replies (8)

Script,
[python]
from tkinter import *

main = Tk()
main.title("1. Unit & Dimentions")
#root.geometry("1600x800+0+0")

#Var Details
length = ..... More

Print this item

  Klein-Gordon equation in 2D (1 of space, 1 of time)
Posted by: tdub - Jan-06-2021, 04:11 PM - Forum: Homework - No Replies

Hello everyone,
I am in a MSc 1st year in physics and I have to realize a code in Python 3.8 on Spyder in order to solve the equation of Klein-Gordon..... More

Print this item

  Some errors
Posted by: CarnariusXx - Jan-06-2021, 04:08 PM - Forum: General Coding Help - Replies (2)

Hi, I've this code and I think that's correctly write but it show me some errors. I tried deal with this but without effects

[python]
import numpy..... More

Print this item

  TypeError: sum() missing 1 required positional argument: 'num2'
Posted by: Insen - Jan-06-2021, 02:25 PM - Forum: General Coding Help - Replies (3)

def super_func(**kwargs):
    print(sum(kwargs))

super_func(num1 =1, num2=2)
[error]TypeError ..... More

Print this item

  Suggestions: Datastructure Design
Posted by: wisdomofnimn - Jan-06-2021, 02:23 PM - Forum: News and Discussions - Replies (2)

I've been using python for 3-4 years (pseudo-)professionally, but one topic that I struggle with routinely is what I'd call Data Structures but I feel..... More

Print this item

  Images are storing in RAM and don't get garbage collected
Posted by: MaxRicik - Jan-06-2021, 02:15 PM - Forum: General Coding Help - Replies (4)

I have a random image picker, and images created by PIL are not garbage collected, even if I delete self.rand_img.image. I can collect it by destroyin..... More

Print this item

  Add a row to a dataframe or append whole dataframe.
Posted by: tsurubaso - Jan-06-2021, 02:12 PM - Forum: General Coding Help - Replies (1)

Hello to all,
Happy new year and good health!!


I am sure this is super simple, but I can't find the right way to do it.
I have a folder with some cs..... More

Print this item

  'urllib3' Module not found when import 'requests'
Posted by: spanz - Jan-06-2021, 01:58 PM - Forum: General Coding Help - Replies (5)

Hello guys :)
I'm using python 3.9 on linux(ParrotOS).
While practicing python, I installed and imported 'requests' module.
When I'm trying to use ..... More

Print this item

  Recommendations for ML libraries for time-series forecast
Posted by: AndreasPython - Jan-06-2021, 01:03 PM - Forum: Data Science - No Replies

Hi fellow data scientists,

I am new to ML and python and after some research I am looking for some hints or guidance:

I have 3 kinds of problems..... More

Print this item

  Random Passcode Generator function
Posted by: romeo777 - Jan-06-2021, 10:58 AM - Forum: Code sharing - Replies (2)

Hi, I just started learning to program a couple months ago, and I wrote this function to generate a Password to a desired length. Please tell me what ..... More

Print this item

  Remote File Transfer- Error
Posted by: wonderboy - Jan-06-2021, 10:46 AM - Forum: General Coding Help - Replies (1)

I want to upload a file from my server (linux machine) to my client machine(Windows 10), however when i try to do that I'm only able to transfer a bla..... More

Print this item

  Help with passwords program
Posted by: Vasilis - Jan-06-2021, 10:06 AM - Forum: General Coding Help - Replies (1)

Hello there!

I want to create a program that stores the password hashes. I must use one of the PH functions and store all the necessary information..... More

Print this item

  how to make a hotkey for text adventure game
Posted by: myn2018 - Jan-05-2021, 11:04 PM - Forum: General Coding Help - Replies (2)

So I'm trying to make this sort of "map" key for the player to press to change their location. But I don't want to manually put in the code for every ..... More

Print this item

  Help setting up dataframes
Posted by: yk303 - Jan-05-2021, 10:31 PM - Forum: Data Science - No Replies

Hello everyone,


I have setup dataframes before but I always struggle at the early stages. There is some key piece of information that I am missing a..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to make ball stay wit... 9 hours ago nathanael deanhystad General Codin...
  PermissionError: [Errno 1... 10 hours ago Tuurbo46 deanhystad GUI
  Graph Interpolate Difficu... 11 hours ago Tuurbo46 deanhystad General Codin...
  sorting a lisr of file pa... Yesterday, 13:00 Skaperen DeaD_EyE News and Disc...
  conditional nested loops 11-14, 23:31 Skaperen Skaperen News and Disc...
  PyQt6 QWidgets and system... 11-14, 18:38 stevecoh1 stevecoh1 GUI
  [solved] re.split issue 11-14, 18:02 paul18fr deanhystad General Codin...
  Please guide me to comple... 11-14, 15:33 pbkurd Larz60+ General Codin...
  New to python and coding 11-13, 19:58 lary_p jefsummers Homework
  Backward compatibility qu... 11-13, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
Most views
  The best Prog... 578998
  Tutorial Requ... 510715
  Web Scraping ... 442012
  Newbie with P... 386046
  New Users Int... 377333
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+ 12108
buran 8195
snippsat 7388
deanhystad 6913
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
aanthonymaaleyo3938 Today
chuhlowe Yesterday
SledgeNE Yesterday
nathanael 11-14
JamesFalkner 11-14

User Panel Messages

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