Python Forum
Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 18,721
» Latest member: Gichardaxora
» Forum threads: 37,439
» Forum posts: 170,104

Full Statistics

Online Users
There are currently 379 online users.
» 1 Member(s) | 371 Guest(s)
Facebook, Baidu, Bing, Google, Yandex, Apple, DeaD_EyE

Latest Threads
How to generate double ar...
Forum: Homework
Last Post: Safinazsalem
3 hours ago
» Replies: 2
» Views: 119
How can we attach sample ...
Forum: Board
Last Post: lillydalson
5 hours ago
» Replies: 3
» Views: 2,786
Legacy database
Forum: Bar
Last Post: DPaul
6 hours ago
» Replies: 2
» Views: 86
Calculating Average with ...
Forum: General Coding Help
Last Post: snippsat
6 hours ago
» Replies: 7
» Views: 382
Error on first Python lau...
Forum: General Coding Help
Last Post: snippsat
7 hours ago
» Replies: 2
» Views: 103
choosing keyword argument...
Forum: News and Discussions
Last Post: Gribouillis
8 hours ago
» Replies: 1
» Views: 80
can a number preceed a li...
Forum: News and Discussions
Last Post: Gribouillis
8 hours ago
» Replies: 1
» Views: 64
converting an int to byte...
Forum: News and Discussions
Last Post: Skaperen
Yesterday, 11:38 PM
» Replies: 5
» Views: 1,224
How can you prevent Qt fr...
Forum: GUI
Last Post: deanhystad
Yesterday, 08:09 PM
» Replies: 2
» Views: 111
How to make a double loop...
Forum: Data Science
Last Post: Safinazsalem
Yesterday, 10:12 AM
» Replies: 0
» Views: 106

 
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: 94)
.docx   TEST.docx (Size: 13.12 KB / Downloads: 87)
.py   xml3_commented.py (Size: 7.6 KB / Downloads: 88)
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
  How to generate double ar... 3 hours ago Safinazsalem Safinazsalem Homework
  How can we attach sample ... 5 hours ago eveabion lillydalson Board
  Legacy database 6 hours ago DPaul DPaul Bar
  Calculating Average with ... 6 hours ago mikasa snippsat General Codin...
  Error on first Python lau... 7 hours ago garryp4 snippsat General Codin...
  choosing keyword argument... 8 hours ago Skaperen Gribouillis News and Disc...
  can a number preceed a li... 8 hours ago Skaperen Gribouillis News and Disc...
  converting an int to byte... Yesterday, 23:38 Skaperen Skaperen News and Disc...
  [PyQt] How can you preven... Yesterday, 20:09 Batucada deanhystad GUI
  How to make a double loop... Yesterday, 10:12 Safinazsalem Safinazsalem Data Science
  Keep getting "SyntaxError... Yesterday, 07:39 Pedroski55 Larz60+ General Codin...
Most views
  The best Prog... 435283
  Web Scraping ... 321649
  Tutorial Requ... 311263
  Newbie with P... 263589
  Thread remain... 248286
Most reputation
buran 582
snippsat 499
Larz60+ 452
Gribouillis 330
deanhystad 312
Most replies
  New Users Int... 431
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 11877
buran 8090
snippsat 7099
deanhystad 6234
metulburr 5150
Top referrers
Googlepro 20
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
Gichardaxora Yesterday
Francisasype Yesterday
garryp4 Yesterday
Batucada Yesterday
Safinazsalem Yesterday

User Panel Messages

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