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 741 online users.
» 0 Member(s) | 738 Guest(s)
Bing, Google, Yandex

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

 
Photo can't install yfinance
Posted by: db042190 - Jun-11-2023, 12:08 AM - Forum: General Coding Help - Replies (4)

Hi , I'm trying to get involved with a product that uses python. I tried everything imaginable as shown below in the command prompt images after down..... More


Attached Files

Thumbnail(s)
       
Print this item

Sad IMC Calculator but with a list of patients
Posted by: Booba - Jun-10-2023, 06:36 PM - Forum: Homework - Replies (1)

I created a BMI and MB calculator and everything is working fine! But now, I would like to apply this calculator to a list a patient and show result f..... More

Print this item

Question some logic help
Posted by: droidus - Jun-10-2023, 05:34 PM - Forum: General Coding Help - Replies (5)

I have a UPS, and once in a while, the driver crashes for some unknown reason. It needs to be (re)started using this command: upsdrvctl start. I've ..... More

Print this item

  Fixed colum width for rowLabels i Matplotlib
Posted by: pandabay - Jun-10-2023, 03:40 PM - Forum: General Coding Help - No Replies

Is there a way to set a min-width or in general width value to the row label cells (r1, r2) in the following code?

[python]import numpy as np
impo..... More

Print this item

  I am trying to scrape data to broadcast it on Telegram
Posted by: BarryBoos - Jun-10-2023, 06:34 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi all, I am one day old in Python development. I am using AI which already got me much further than I have ever expected to get. I got the bot to wor..... More

Print this item

  boto3 - Error - TypeError: string indices must be integers
Posted by: kpatil - Jun-09-2023, 05:07 PM - Forum: General Coding Help - Replies (7)

Hello,

Can someone help me how to fix the error i am getting here . Thanks

error is
Traceback (most recent call last):
File "/root/temp0/server",..... More

Print this item

  HOW TO USE C# GENERATED DLL
Posted by: davide_vergnani - Jun-09-2023, 12:52 PM - Forum: General Coding Help - Replies (2)

Hi,
I developed a C# CLI application with my own functionality , and I have created a .dll with several class to implements the comunications beetwee..... More

Print this item

  Add multiple vertical rectangles to a chart in plotly?
Posted by: devansing - Jun-08-2023, 10:58 PM - Forum: Data Science - Replies (2)

I'm struggling to figure out how to create multiple vertical rectangles that span entire plots using plotly.

I'm assuming this is possible using ad..... More


Attached Files

.csv   sample_data.csv (Size: 1.69 KB / Downloads: 2)
Print this item

Question Cannot import easysnmp: ImportError: libnetsnmp.so.30
Posted by: Calab - Jun-08-2023, 08:18 PM - Forum: General Coding Help - Replies (4)

I'm trying to use easysnmp in a virtual environment, but get an error when I import it:

[output](venv) snorton@app7 /fastapi/sv $ python3
Python 3..... More

Print this item

  Comparing List values to get indexes
Posted by: Edward_ - Jun-08-2023, 03:11 PM - Forum: General Coding Help - Replies (7)

I'm trying to compare a short temporary list of values to a master list, to obtain the index number (of short list items) and set two variable values ..... More

Print this item

  Python won 't do decimals
Posted by: SomebodySmart - Jun-08-2023, 10:30 AM - Forum: General Coding Help - Replies (5)

It took me a lot of tries before I was able to figure out the problem, and I was stunned. When building my genealogy website, I display 100 entries pe..... More

Print this item

  Pywinauto typing in the wrong field
Posted by: EGameiro - Jun-07-2023, 10:00 PM - Forum: General Coding Help - No Replies

I'd appreciate any comments on this issue.

I'm using PywinAuto to automate a DeskTop application. And I'm executing this command to fill out a fiel..... More

Print this item

  Save image from outlook email
Posted by: cubangt - Jun-07-2023, 06:43 PM - Forum: General Coding Help - Replies (1)

So i have the following code that works great, updates my excel file and saves the file as expected.. BUT because we are merely updating the one excel..... More

Print this item

  Langchain
Posted by: standenman - Jun-07-2023, 06:02 PM - Forum: Data Science - Replies (2)

I am trying to use langchain to query a pdf document with chatgpt. [python]import os
import openai
from langchain.document_loaders import PyPDFLoad..... More

Print this item

  xml indent SubElements (wrapping) with multiple strings
Posted by: ctrldan - Jun-07-2023, 02:09 PM - Forum: General Coding Help - Replies (2)

(I updated the code with comments)
Hi everyone, I am creating an xml file with python using xml.etree.ElementTree. In input I have a docx, where the..... More


Attached Files

.py   xml3.py (Size: 5.05 KB / Downloads: 218)
.docx   TEST.docx (Size: 13.12 KB / Downloads: 198)
.py   xml3_commented.py (Size: 7.6 KB / Downloads: 187)
Print this item

  Calling a function (which accesses a library) from another file
Posted by: mouse9095 - Jun-07-2023, 04:04 AM - Forum: General Coding Help - Replies (4)

Hello,

I am a new Python user and am trying to create some functions I can use for my own convenience. For now, I am trying to keep these in a sep..... More

Print this item

  Scrape table from multiple pages
Posted by: Nhattanktnn - Jun-07-2023, 12:51 AM - Forum: Web Scraping & Web Development - Replies (1)

Hi,
Please help me scrape table from multiple pages in this url: https://s.cafef.vn/lich-su-kien.chn
Many thanks!

Print this item

  Automate Word snippets
Posted by: PHbench - Jun-06-2023, 06:59 PM - Forum: General Coding Help - No Replies

I want to use MS Word to write paragraphs/snippets/parts and store them with all the word formatting. I later would want to merge them into one Word d..... More

Print this item

  Pygame in 90 Minutes - For Beginners syntax issues
Posted by: GoldenHarvey - Jun-06-2023, 06:21 PM - Forum: Game Development - Replies (6)

I am watching and copying the methods of how to make a game on Pygame via the video "Pygame in 90 Minutes - For Beginners" by Tech with Tim.

I wro..... More

Print this item

  How i can use categories with folder?
Posted by: AnonymerAlias - Jun-06-2023, 03:17 PM - Forum: General Coding Help - Replies (2)

Hello,

I want to know how can I import a subfolder?

I have tried with:
from test.test2 import file

but this isn't works.

Best regards

Print this item

  [SOLVED] Why is this asyncio task blocking?
Posted by: SecureCoop - Jun-06-2023, 02:21 PM - Forum: General Coding Help - Replies (1)

This is my first time working with asyncio and I can't understand why this task is blocking. Everything is awaited that should be awaited. Please help..... More

Print this item

  Help with pyinstaller "No module named"
Posted by: korenron - Jun-06-2023, 12:35 PM - Forum: General Coding Help - Replies (9)

Hello,
I'm trying to create a EXE file from my (Working) python code.

When I try to run the exe file I get the error:
[python]Traceback (most re..... More

Print this item

  pyarrow error when importing pandas
Posted by: sravva - Jun-06-2023, 11:20 AM - Forum: General Coding Help - Replies (1)

I am trying to import pandas but I keep getting an error relating to pyarrow. It worked fine before, but started giving me the error once I installed/..... More


Attached Files

Thumbnail(s)
   
Print this item

  Set permnission with makedirs
Posted by: SpongeB0B - Jun-06-2023, 11:17 AM - Forum: General Coding Help - Replies (7)

Hi everyone,

I would like to set the permission when using

from os import makedirs
I would like to have (for a directory) ..... More

Print this item

Lightbulb Review for my Fibonacci sequence, please. (´。• ω •。`)
Posted by: Carmazum - Jun-06-2023, 03:26 AM - Forum: Code Review - Replies (6)

Salutations, Pythonistas! python
I hope you are all well and that your families and friends are doing well. ヽ(・∀・)ノ

I have developed a simpl..... More

Print this item

  Why am I getting this error?
Posted by: the_jl_zone - Jun-05-2023, 11:06 PM - Forum: General Coding Help - Replies (3)

I'm trying to learn how to use Python classes using this one as an example:

[python]
class ExampleClass:
... def __init__(self,example_parame..... More

Print this item

  how to return a reference to an object?
Posted by: Skaperen - Jun-05-2023, 11:00 PM - Forum: General Coding Help - Replies (8)

i have a collection of object references in a dict inside a function. i want to have a function that can use give arguments, find the object, and ret..... More

Print this item

  PowerShell & Python
Posted by: deep_logic - Jun-05-2023, 09:29 PM - Forum: General Coding Help - Replies (2)

Hi all,
I’m trying to run simple python scripts with PowerShell. I can run my scripts in .cmd without a hitch. The path looks proper. I opened PowerS..... More

Print this item

  what stand-alone python-aware open-source editors are around?
Posted by: Skaperen - Jun-05-2023, 01:57 AM - Forum: News and Discussions - Replies (14)

what stand-alone python-aware open-source editors are around? by stand-alone i mean not a part of any development kit or package. by python-aware i ..... More

Print this item

  Use IDLE to compose and test only
Posted by: SomebodySmart - Jun-04-2023, 11:56 AM - Forum: News and Discussions - Replies (1)

Just for the benefit of the ones who don't realize it:

I use IDLE and it is an excellent way to perfect and de-bug code. It is a good way to test p..... More

Print this item

  can webflow be used as a front end?
Posted by: LandonJPGinn - Jun-04-2023, 07:01 AM - Forum: Web Scraping & Web Development - Replies (3)

Hello,
I am looking to try and develop a webapp but I am new to branching outside of python.
Ive done a number of tutorials when it comes to flask..... More

Print this item

  pipenv, is it still useful?
Posted by: LandonJPGinn - Jun-04-2023, 06:55 AM - Forum: General Coding Help - Replies (3)

Hello,
new to the forum but long time python user.
I got myself into the habit of using pipenv a lot, but I always run into issues when it comes..... More

Print this item

  entry widget
Posted by: DPaul - Jun-04-2023, 05:48 AM - Forum: GUI - Replies (5)

Hi, a cosmetic question.
I have an app with some entry boxes, nothing special.
[python]entryKl = Entry(frame1, font=myFont,bg='lightblue')
entryKl.pac..... More

Print this item

  variables in f-string
Posted by: Skaperen - Jun-04-2023, 01:09 AM - Forum: News and Discussions - Replies (3)

is it OK to set variables in an f-string? i need to call an expensive (e.g. slow) function to get a value that is needed in 3 places in an f-string a..... More

Print this item

  Do you feel the Mojo
Posted by: snippsat - Jun-03-2023, 11:25 PM - Forum: News and Discussions - Replies (1)

Mojo 🔥 — a new programming language
So a interesting approach,and with a performance boost that can be large...... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  class Blockage not projec... â–¼ Yesterday, 16:32 Azdaghost deanhystad General Codin...
  Import vs from x import â–¼ Yesterday, 16:09 Calab snippsat General Codin...
  Trouble with Average Calc... â–¼ Yesterday, 07:38 autodecay Pate General Codin...
  tracking version during r... â–¼ Yesterday, 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... 564136
  Tutorial Requ... 451212
  Web Scraping ... 429117
  Newbie with P... 363925
  Thread remain... 336409
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 Today
Shailesh Yesterday
jackdennis272 Yesterday
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