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,556
» Latest member: comptonden1
» Forum threads: 38,665
» Forum posts: 175,210

Full Statistics

Online Users
There are currently 212 online users.
» 0 Member(s) | 203 Guest(s)
Bing, Apple, Google, Facebook, Yandex, Baidu, Mojeek, AOL

Latest Threads
Who is the best recovery ...
Forum: General Coding Help
Last Post: comptonden1
37 minutes ago
» Replies: 0
» Views: 5
Made my first Python prog...
Forum: Game Development
Last Post: Ricky1178
1 hour ago
» Replies: 8
» Views: 10,629
gpiozero buttons stop wor...
Forum: General Coding Help
Last Post: deanhystad
8 hours ago
» Replies: 5
» Views: 224
How to package code for d...
Forum: General Coding Help
Last Post: snippsat
Yesterday, 11:36 AM
» Replies: 2
» Views: 149
pip3 install certifi fail...
Forum: General Coding Help
Last Post: Pedroski55
Jul-15-2025, 08:52 AM
» Replies: 1
» Views: 103
My first python game : Ti...
Forum: Game Development
Last Post: walterliz
Jul-15-2025, 07:45 AM
» Replies: 8
» Views: 55,619
A penny doubled every day...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:35 AM
» Replies: 6
» Views: 748
Exercise on reading a chu...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:31 AM
» Replies: 3
» Views: 1,214
While loop is terminating...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:29 AM
» Replies: 3
» Views: 453
Custom Sorting List of Di...
Forum: Homework
Last Post: walterliz
Jul-15-2025, 07:28 AM
» Replies: 3
» Views: 242

 
  Python script running under windows over nssm.exe
Posted by: JaroslavZ - May-12-2023, 09:22 AM - Forum: General Coding Help - No Replies

I have a python script that runs inside this command:

subprocess.run([driver, '/print:printer=' + printer, filename])
If the sc..... More


Attached Files

.py   PrinterBridge.py (Size: 3.1 KB / Downloads: 213)
Print this item

  Trying to understand global variables
Posted by: 357mag - May-12-2023, 04:40 AM - Forum: General Coding Help - Replies (5)

Just learning about using a global variable. I have this going:
[python]
x = 4

def show_value():
print('Value of x: '+ str(x))
# x += 3..... More

Print this item

  [split] plt.style() in matplotlib causes error
Posted by: olufaruqu - May-11-2023, 04:45 PM - Forum: Data Science - Replies (4)

Dear Team

I tried running the below command on my anaconda prompt in one of a serial steps to install jupyter-matplotlib with a self paced video b..... More

Print this item

  Raspberry PI with DHT22 Sensors
Posted by: itpilot - May-11-2023, 09:41 AM - Forum: General Coding Help - Replies (6)

guys please can you help the noob

i have connected 6 x DHT22 Temperature and Humidity Sensors on my Raspberry PI 4

I am g..... More

Print this item

  Error coming
Posted by: PKT - May-11-2023, 09:06 AM - Forum: GUI - Replies (1)

Hi,

I am write program on python program & it is running perfectly.

Now i tried to create exe file using pyinstaller.

exe file created but no..... More

Print this item

  double keyed dictionaries
Posted by: Skaperen - May-11-2023, 02:53 AM - Forum: News and Discussions - Replies (2)

in many cases i need to go both ways in references held by a dictionary. i very often use the same one dictionary when i know the keys each way will ..... More

Print this item

  Master thesis research: A Python version update behavior survey
Posted by: AJB96 - May-10-2023, 04:56 PM - Forum: Bar - Replies (2)

Hi there!

I am currently writing my Master thesis research project related to Python.

The ultimate goal of the project is to explore and underst..... More

Print this item

  Failure in the Code to integrate via API Holded (accounting system) to Excel.
Posted by: maicolvela - May-10-2023, 01:08 PM - Forum: Web Scraping & Web Development - Replies (1)

My code fails and I can't find or fix the errors, could you help me please.

[python]import requests
import pandas as pd

# URL para obtener el a..... More

Print this item

  Understanding venv; How do I ensure my python script uses the environment every time?
Posted by: Calab - May-09-2023, 09:49 PM - Forum: General Coding Help - Replies (1)

I have several python scripts. Each script starts with a shebang line of #!/usr/local/bin/python3. To execute my scripts I simply enter ./scriptname.p..... More

Print this item

Thumbs Down I hate "List index out of range"
Posted by: Melen - May-09-2023, 09:44 PM - Forum: General Coding Help - Replies (20)

Hello!

I have a question, but please don't give me the answer. I'm just looking for some tips. I'm new to Python, and I'm posting here because I ca..... More

Print this item

  API Request / JSON
Posted by: illmattic - May-09-2023, 01:45 PM - Forum: Web Scraping & Web Development - Replies (3)

Hello,

I am having difficulty pulling data from an API which says that parameter content needs to be application/json. Here is the link to the the ..... More

Print this item

  html module in python 3.6.8
Posted by: suifra - May-09-2023, 07:24 AM - Forum: General Coding Help - Replies (9)

I am new to Python and stuck in an issue, have researched in stackoverflow but couldnt get an answer. The problem statement is as below.

Problem: I..... More

Print this item

  It seems you have to define functions at the top
Posted by: 357mag - May-09-2023, 04:17 AM - Forum: General Coding Help - Replies (7)

I wrote a program that defines two functions: one function squares an integer and the other function cubes it.

When I put the function definitions ..... More

Print this item

  Splitting PDF at Bookmark level 2
Posted by: standenman - May-08-2023, 07:20 PM - Forum: Data Science - Replies (10)

I am trying to split a pdf document at the second bookmark level Here is my code:

[python]import os
import PyPDF2

# Open the PDF file
input_p..... More

Print this item

  New to python/coding Need help on Understanding why this code isn't working. Thanks!
Posted by: mat3372 - May-08-2023, 08:51 AM - Forum: General Coding Help - Replies (8)

Hi all! I am new to python and coding in general. I am following along in a book and have come across code that the(interpreter/compiler **not sure wh..... More

Print this item

  Django images will not load
Posted by: pythonpaul32 - May-08-2023, 02:39 AM - Forum: Web Scraping & Web Development - Replies (3)

I am trying to make a hotel reservation app, but my images will not load. I am using Django and Bootstrap

I have my pictures in a media directory i..... More

Print this item

  why do we need dict.get() ?
Posted by: Skaperen - May-06-2023, 11:55 PM - Forum: News and Discussions - Replies (10)

dict instances have a .get() method that is similar to the .pop() they also have, except nothing is removed and the ..... More

Print this item

  Monitoring a Directory for new mkv and mp4 Files
Posted by: lastyle - May-06-2023, 11:42 PM - Forum: General Coding Help - Replies (3)

Hi all,

i wanted to code a Monitor that observes a Folder and it`s subfolders for new mkv and mp4 Files. But when i add a File to the Folder the Ro..... More

Print this item

  Organizing several similar classes with overlapping variables
Posted by: 6hearts - May-06-2023, 09:24 PM - Forum: General Coding Help - Replies (7)

I am struggling for weeks now how to structarize a bunch of classes that have several similarities.
Perhaps the best analogy would be a class represen..... More

Print this item

  Function to Select a Date
Posted by: standenman - May-06-2023, 07:11 PM - Forum: Data Science - Replies (2)

I am attempting to create a function that would load a set of medical records and determine what was the date of treatment. Any given page of a medic..... More

Print this item

  Output File ?
Posted by: Kessie1971 - May-06-2023, 03:04 PM - Forum: Homework - Replies (11)

Hello I try to find the top 10 albums in the chinook database 18

Print this item

  Selenium Webdriver Python — ERR_NO_SUPPORTED_PROXIES
Posted by: TimofeyKolpakov - May-06-2023, 02:11 PM - Forum: General Coding Help - No Replies

Hello everyone! I'm having an issue. When I run the code and the browser launches, the browser gives an error message saying "ERR_NO_SUPPORTED_PROXIES..... More

Print this item

  Pygmae big problems with gamescore and fps
Posted by: wired98 - May-05-2023, 10:26 PM - Forum: Game Development - Replies (5)

Hey im very new to python and programming at this moment space invaders(my first project)

I have made it in star wars theme with little death stars..... More

Print this item

  Please help me.
Posted by: SuchUmami - May-05-2023, 05:15 PM - Forum: General Coding Help - Replies (12)

Hi.

I have a piece of code that will get a lot of information. My problem is that I just want to use one piece of information out of the data. It l..... More

Print this item

  Adding libraries to embedded Python as a ZIP
Posted by: The_Oman - May-05-2023, 04:05 PM - Forum: General Coding Help - No Replies

Python 3.8.10 for Windows x64

We have been using the base embedded Python 3.8 with success. We now need to add some additional libraries to the ins..... More

Print this item

  what i am doing wrong ?(
Posted by: lbaskin3 - May-05-2023, 12:24 PM - Forum: Homework - Replies (3)

[python]print(r"""
Switching on the camera in the camel habitat...
___.-''''-.
/___ @ |
',,,,. | _.'''''''._
' | ..... More

Print this item

  Structuring a large class: privite vs public methods
Posted by: 6hearts - May-05-2023, 06:56 AM - Forum: General Coding Help - Replies (3)

I am developing a bigger project that includes some data structures as classes and various functions/operations that computes with the structure of mo..... More

Print this item

  Kivy App - Python3 script to Android app (opencv)
Posted by: jttolleson - May-04-2023, 08:18 PM - Forum: General Coding Help - Replies (7)

Hello all, i am Jayson...
I have really gotten into flask because of this forum and am also starting to make android apps with my scripts
in P4a w b..... More

Print this item

  Using BeautifulSoup: Getting only First Result. Also, trouble with nesting.
Posted by: polkadot - May-04-2023, 06:51 PM - Forum: Web Scraping & Web Development - Replies (1)

From this site https://azure.microsoft.com/en-us/products/ I'm trying to extract all products and product descriptions per category so that category/c..... More

Print this item

  How do I extract information from this dataset?
Posted by: SuchUmami - May-04-2023, 02:32 PM - Forum: General Coding Help - No Replies

I wrote this code which loops around to extract the moving averages for different currency pairs on timeframes:

[python]import krakenex
import pan..... More

Print this item

  Formatting float number output
Posted by: barryjo - May-04-2023, 01:39 PM - Forum: General Coding Help - Replies (2)

Is there a way to globally set the output of printed floats to 2 decimal places?
I would rather not have to use..print('{:010.4f}'.format(x)) for eac..... More

Print this item

  How do I change the location of the _ versions directory?
Posted by: Stas43 - May-04-2023, 07:52 AM - Forum: Web Scraping & Web Development - Replies (1)

(Sorry for google translator)
When working together Django + TinyMCE + django-filebrowser + grappelli +... image thumbnails are created in the [b]_ve..... More

Print this item

  [split] How to resolve version conflicts in Python?
Posted by: atonalwilson - May-04-2023, 05:11 AM - Forum: General Coding Help - Replies (1)

In the official Python client, every object of the RiakObject class has a siblings property that provides access to a list of an object’s sibling valu..... More

Print this item

  threading native_id returning same value for all threads
Posted by: billykid999 - May-04-2023, 02:54 AM - Forum: General Coding Help - Replies (2)

So I'm running some code and trying to thread it. I'm getting se same propery_id/ object_id for each thread when I run it, which to me says the same..... More

Print this item

  Confusion with Sunrise and Sunset Output
Posted by: nikocabs - May-03-2023, 06:28 PM - Forum: Homework - Replies (1)

hello. i am confused with my sunrise and sunset coding because i think the output is wrong. the output was sunrise was in 12 pm and the sunset was in ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Who is the best recovery ... 37 minutes ago comptonden1 comptonden1 General Codin...
  [PyGame] Made my first Py... 1 hour ago andrerocha1998 Ricky1178 Game Developm...
  gpiozero buttons stop wor... 8 hours ago duckredbeard deanhystad General Codin...
  How to package code for d... Yesterday, 11:36 mayukun snippsat General Codin...
  pip3 install certifi fail... 07-15, 08:52 rb9594 Pedroski55 General Codin...
  My first python game : Ti... 07-15, 07:45 ForsakenDusk walterliz Game Developm...
  A penny doubled every day... 07-15, 07:35 esoyboy walterliz Homework
  Exercise on reading a chu... 07-15, 07:31 Nit_Picker walterliz Homework
  While loop is terminating... 07-15, 07:29 jumpsworthnow walterliz Homework
  Custom Sorting List of Di... 07-15, 07:28 aryasinner walterliz Homework
  Unable to define function... 07-15, 07:26 gmonroe walterliz Homework
Most views
  The best Prog... 572714
  Tutorial Requ... 485780
  Web Scraping ... 437174
  Newbie with P... 380137
  Thread remain... 351393
Most reputation
buran 581
snippsat 507
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+ 12072
buran 8174
snippsat 7353
deanhystad 6860
metulburr 5151
Top referrers
Googlepro 24
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
comptonden1 Today
Gichardvop Yesterday
Ricky1178 Yesterday
Spacecat300300 Yesterday
Dawinch Yesterday

User Panel Messages

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