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,468
» Latest member: AymanNassar
» Forum threads: 38,578
» Forum posts: 174,808

Full Statistics

Online Users
There are currently 732 online users.
» 0 Member(s) | 725 Guest(s)
Bing, Yandex, Google, Apple, Baidu, Mojeek

Latest Threads
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 183
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 133
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,317
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 103
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 370
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,178
Retired and Learning Pyth...
Forum: Code sharing
Last Post: BarbaraGonzalez
May-14-2025, 09:04 AM
» Replies: 1
» Views: 364
Pip help
Forum: General Coding Help
Last Post: Larz60+
May-14-2025, 05:57 AM
» Replies: 4
» Views: 425
Paste text with caret alr...
Forum: General Coding Help
Last Post: armorerratic
May-14-2025, 01:12 AM
» Replies: 2
» Views: 988
Library Management System
Forum: Homework
Last Post: deanhystad
May-13-2025, 01:56 AM
» Replies: 1
» Views: 227

 
  Cannot import Langchain and openai.
Posted by: standenman - May-21-2023, 09:39 PM - Forum: Data Science - Replies (2)

I have a python virtual environment set up. I have installed langchain and openai. The cmd command "(MedSpacyVenv) C:\Users\stand\MedSpacyVenv>pip f..... More

Print this item

  My own Lan system
Posted by: Phidias618 - May-21-2023, 08:47 PM - Forum: Code Review - Replies (2)

Hey, I recently create a game, who need a comunication between 2 player and I came out with this, I just wan't to know if this code is not too terribl..... More

Print this item

  Get the value of arcsine(x) in a manner that I can understand.
Posted by: Pedroski55 - May-21-2023, 12:15 PM - Forum: General Coding Help - Replies (4)

I was never good at maths!

Now, I want to get the value of arcsine(y), given any particular sine(x) = y

I can plot sine(x), and, as I understand..... More

Print this item

  Output 'None'
Posted by: liketocode - May-21-2023, 11:27 AM - Forum: Web Scraping & Web Development - Replies (3)

Hello

I have a problem with this site so i would like to know what im doing wrong. It works for another sites.
I'm practicing simple web scraping..... More

Print this item

  PyPI new user and new project registrations temporarily suspended.
Posted by: rob101 - May-20-2023, 09:28 PM - Forum: News and Discussions - Replies (2)

An interesting News Flash:

Incident Report for Python Infrastructure

[quote]
New user and new project name registrati..... More

Print this item

Sad I'm stuck with the reinforcement learning function in my Code
Posted by: OskiLori - May-20-2023, 07:31 PM - Forum: General Coding Help - Replies (2)

Hello everybody! I've got a problem with my code for my "VoiceAssistent", the normal code with speak function works well and makes everything right bu..... More

Print this item

  Centering and adding a push button to a grid window, TKinter
Posted by: Edward_ - May-20-2023, 04:04 PM - Forum: GUI - Replies (15)

This May be really simple, but I'm not finding enough details to help as I'm just learning TKinter.

I have a simple grid sourced by a Python list, ..... More

Print this item

  Validating and modifying a Spinbox
Posted by: pfdjhfuys - May-20-2023, 03:24 PM - Forum: GUI - Replies (2)

Below is a code snippet of a program that uses the SpinBox control. I want to the control to allow numbers between 1 and 100 as set in from_ ..... More

Print this item

Question image manipulation (cropping and MetaData)
Posted by: SpongeB0B - May-20-2023, 03:19 PM - Forum: General Coding Help - Replies (4)

Hi everyone,

I'm looking for a lightweight python tool(s)/package to manipulate images.

Actually I just need

Print this item

Question [solved] Classes, assign an attributes to a class not to instances..
Posted by: SpongeB0B - May-20-2023, 09:12 AM - Forum: General Coding Help - Replies (4)

Hi everyone,

I would like to create a class with a default dictionary attribute.
and when being Instantiated I would like to add (or not) some ite..... More

Print this item

  How to optimize analog gauge reader?
Posted by: kadink - May-19-2023, 08:58 PM - Forum: Data Science - No Replies

Hi there,

I am writing a program that reads an analog gauge with a webcam and returns the value that the gauge needle points at. (Disclaimer: most ..... More

Print this item

  Why do I have to repeat items in list slices in order to make this work?
Posted by: Pythonica - May-19-2023, 03:59 PM - Forum: General Coding Help - Replies (7)

Hello everyone, I was testing out making a f strings with parts of a list, and after experimenting a lot, I figured out how to make it work but I am c..... More

Print this item

  running the code and seeing the GUI
Posted by: chriswrcg - May-19-2023, 03:04 PM - Forum: GUI - Replies (1)

I am creating a code with pysimplegui and need to see if it is running. I am following along with a youtube tut but when he tests the code He see's t..... More

Print this item

  pyscript index error while calling input from html form
Posted by: pyscript_dude - May-19-2023, 02:53 PM - Forum: General Coding Help - Replies (2)

Hi,
I am trying to embed a python script into an html page via pyscript. I want to call the input from an html form. In python script, if I use
[pyt..... More

Print this item

  Making a question answering chatbot based on the files I upload into python.
Posted by: Joejones - May-19-2023, 02:24 PM - Forum: General Coding Help - Replies (1)

I am using the coding below to get answers from files I upload. The problem is when I run the code it says this "Ask a question based on the text file..... More

Print this item

  convert result to hex ascii
Posted by: Jusufs - May-19-2023, 10:42 AM - Forum: General Coding Help - Replies (6)

Hi.
How to convert in Python3 sets of unsigned integer 16 bits to ASCII equivalent like picture please ?
Input is a 16bit unsigned int witch represe..... More


Attached Files

Thumbnail(s)
   
Print this item

  Beginner: Code not work when longer list
Posted by: raiviscoding - May-19-2023, 08:00 AM - Forum: General Coding Help - Replies (2)

Hello,

I been watching videos from python for everyone and there was this code.

[python]
numlist = list()
while True:
inp = input("Enter a numbe..... More

Print this item

Question Select multiple selection/box at once on frontend.
Posted by: SpongeB0B - May-19-2023, 07:42 AM - Forum: Web Scraping & Web Development - No Replies

Hi everyone,

I would like on a webpage, to be able to select/tick multiple "box/items" at once, by drawing a selection rectangle over them. ( Like ..... More

Print this item

  script to calculate data in csv-files
Posted by: ledgreve - May-19-2023, 07:24 AM - Forum: General Coding Help - No Replies

Hello everyone,

I have a bunch of csv-files (one per corpus) containing annotated data in multiple columns. I annotated aspects and sentiment. The ..... More

Print this item

  an object i would like to have
Posted by: Skaperen - May-18-2023, 07:18 PM - Forum: News and Discussions - Replies (3)

i would like to have an object that operates like a set but iterates its contents in sorted order.

Print this item

  Invalid command error with Entry object
Posted by: eliqm - May-18-2023, 07:00 PM - Forum: GUI - Replies (8)

Hello, I begin in python programmation and i have some problems. I tried to make a handman game with tkinter GUI but I encountered some errors that I ..... More


Attached Files

Thumbnail(s)
               
Print this item

  AttributeError
Posted by: Vidya - May-18-2023, 02:54 PM - Forum: General Coding Help - Replies (2)

HI,

Im new to python im trying to run the project but showing
[error]
class vector(collections.Sequence):
AttributeError: module 'collectio..... More


Attached Files

.py   base.py (Size: 13.17 KB / Downloads: 236)
Print this item

  tkinter AttributeError: 'GUI' object has no attribute
Posted by: pfdjhfuys - May-18-2023, 12:53 PM - Forum: GUI - Replies (3)

Hi,

When I click the button I expect the entry to be populated. Instead I get the error "[b]AttributeError: 'GUI' object has no attribute 'genPass..... More

Print this item

  rename file
Posted by: RolanRoll - May-17-2023, 08:21 PM - Forum: General Coding Help - No Replies

Hi help me please to do this exhausting action I must to rename each manifest files name in each folder (manifest.safe) to be recognized for image pro..... More


Attached Files

Thumbnail(s)
   
Print this item

  How to run detectron2, as python embedded code in C++, on GPU?
Posted by: hassaniqbal931 - May-17-2023, 05:59 PM - Forum: General Coding Help - Replies (3)

I want to run detectron2 prediction as a Python Code embedded in a WebRTC C++ code. I am usi..... More

Print this item

  No desired output for code.
Posted by: James349 - May-17-2023, 03:21 PM - Forum: Homework - Replies (1)

Hello, I am working on a tic-tac-toe project for python for a 7 by 7 grid and I am supposed to define a specific depth and use alpha-beta pruning for ..... More

Print this item

  SQL FTS 5
Posted by: DPaul - May-17-2023, 06:12 AM - Forum: Bar - Replies (14)

Hi,
After OCR, I am left with texts that contain data.
I analyse these texts with python and put the relevant data into records that are inserted into..... More

Print this item

  Visual Studio for Python
Posted by: 357mag - May-16-2023, 10:06 PM - Forum: News and Discussions - Replies (4)

Just wondering what IDE you guys are using? I'm using WingWare which appears quite good. I was wondering if any of you are using Visual Studio for Pyt..... More

Print this item

  Visual Studio Code
Posted by: NewPi - May-16-2023, 09:52 PM - Forum: General Coding Help - Replies (3)

Hey,

I use Visual Studio Code and the Python extension.
When I hover over "random.choices(...)" it shows, that choices is a variable.

I don't u..... More

Print this item

  Supervised learning, tree based model - problems splitting data
Posted by: Pixel - May-16-2023, 05:25 PM - Forum: Data Science - No Replies

I am currently using a tree based model for self training purposes and there is one area of code I get stuck. I used One-hot code to extract addition..... More

Print this item

  Trying to install bdfr from github
Posted by: visionz199 - May-16-2023, 04:50 PM - Forum: General Coding Help - Replies (2)

For the past few hours I have been trying to install bdfr (https://github.com/aliparlakci/bulk-down...for-reddit) from github, but I can't find a ..... More

Print this item

  Translation
Posted by: AliceCu - May-16-2023, 04:39 PM - Forum: General Coding Help - Replies (2)

I don't understand why I have the result in English. I need to translate it in Russian
[python]from deep_translator import GoogleTranslator
import r..... More

Print this item

  TypeRoor reading json
Posted by: GreenLynx - May-16-2023, 08:54 AM - Forum: General Coding Help - Replies (3)

Hi,
I’m trying to read a json url however I’ve got this error:
“TypeError: list indices must be integers or slices, not str”

This is de json url:..... More

Print this item

  Plotting by Time, error
Posted by: mansoorahs - May-16-2023, 04:05 AM - Forum: General Coding Help - Replies (1)

Hi

Observing following error while plotting the series by time


[error]TypeError: float() argument must be a string or a real number, not 'date..... More

Print this item

  Excel Automation using Openpyxl
Posted by: pradyumnajpn - May-16-2023, 02:02 AM - Forum: General Coding Help - Replies (1)

Hi Experts,

Very new to python specially excel automation. Please suggest
I ve an excel template having a header and a sample data. Now depending ..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  class Blockage not projec... 05-15, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import 05-15, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... 05-15, 07:38 autodecay Pate General Codin...
  tracking version during r... 05-15, 00:25 Skaperen Skaperen News and Disc...
  Return a string or byte o... 05-14, 17:21 Calab snippsat General Codin...
  problems with netcdf if I... 05-14, 16:02 Blaubart Blaubart General Codin...
  Retired and Learning Pyth... 05-14, 09:04 breacsealgaire BarbaraGonzalez Code sharing
  Pip help 05-14, 05:57 meditek Larz60+ General Codin...
  Paste text with caret alr... 05-14, 01:12 Wehaveall armorerratic General Codin...
  Library Management System 05-13, 01:56 annajoy deanhystad Homework
  smbus.SMBus i2c code whic... 05-12, 15:51 NewbyTyro NewbyTyro General Codin...
Most views
  The best Prog... 564387
  Tutorial Requ... 452399
  Web Scraping ... 429360
  Newbie with P... 364456
  Thread remain... 336905
Most reputation
buran 580
snippsat 506
Larz60+ 452
Gribouillis 362
deanhystad 327
Most replies
  New Users Int... 449
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12050
buran 8169
snippsat 7326
deanhystad 6827
metulburr 5151
Top referrers
Googlepro 22
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
AymanNassar Yesterday
Shailesh 05-15
jackdennis272 05-15
JeanChristophe 05-14
EZEKIELGRAPHICSMEDIA 05-14

User Panel Messages

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