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,498
» Latest member: OLanePulse
» Forum threads: 38,593
» Forum posts: 174,874

Full Statistics

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

Latest Threads
Dichaelmag
Forum: General Coding Help
Last Post: OLanePulse
32 minutes ago
» Replies: 0
» Views: 15
Simple webbot for testing
Forum: Jobs
Last Post: Arush
2 hours ago
» Replies: 1
» Views: 1,005
Using moviepy fails due t...
Forum: General Coding Help
Last Post: sheepog
2 hours ago
» Replies: 2
» Views: 166
Nested Dictionaries, good...
Forum: General Coding Help
Last Post: snippsat
2 hours ago
» Replies: 5
» Views: 347
Script broke with Python ...
Forum: Code sharing
Last Post: Arush
3 hours ago
» Replies: 5
» Views: 6,213
Mathematica code vs Pytho...
Forum: General Coding Help
Last Post: Arush
3 hours ago
» Replies: 1
» Views: 868
Looking for ideas
Forum: Bar
Last Post: Arush
3 hours ago
» Replies: 3
» Views: 546
Pillow _getexif for pytho...
Forum: General Coding Help
Last Post: StephenTuh
10 hours ago
» Replies: 3
» Views: 29,164
[SOLVED] Open file, and i...
Forum: General Coding Help
Last Post: Winfried
Today, 07:56 AM
» Replies: 7
» Views: 383
EarnestPef
Forum: General Coding Help
Last Post: Lhanelycle
Yesterday, 09:18 PM
» Replies: 0
» Views: 102

 
  Web scraping for search results
Posted by: JOE - May-14-2022, 06:32 AM - Forum: Web Scraping & Web Development - Replies (7)

Hi , I was trying to extract search results but has the error "AttributeError: 'list' object has no attribute 'text'[/output]"

Please suggest.

[..... More


Attached Files

Thumbnail(s)
   
Print this item

  sum() list from SQLAlchemy output
Posted by: Personne - May-13-2022, 10:51 PM - Forum: General Coding Help - Replies (5)

Hello guys,

I'm sure it is simple. Have a SQLAlchemy query such as:
[python]qp = db.session.query(UInventory, func.sum(UInventory.quantity).label('to..... More

Print this item

  Invalid syntax
Posted by: Slome - May-13-2022, 08:12 PM - Forum: Homework - Replies (2)

When i run this,


import csv

def main():
with open("battle_royale.csv") as csvfile:
readCSV = csv.reader(csvfile, delimiter=',')
..... More


Attached Files

Thumbnail(s)
   
Print this item

  ATM machine demo with Python and Django
Posted by: Drone4four - May-13-2022, 07:49 PM - Forum: Web Scraping & Web Development - Replies (1)

This is a long post. The most important information is at the top and gradually progresses to less and less relevant information. So you don’t have to..... More

Print this item

  How to crop a video to 9:16?
Posted by: yschrs - May-13-2022, 07:34 PM - Forum: General Coding Help - Replies (3)

Hello everyone,

I am looking to crop my video that has a standard aspect ratio (1920x 1080) to a 9:16 aspect ratio (1080 x 1920).

I saw that the..... More

Print this item

  How to fix this?
Posted by: DERO - May-13-2022, 06:43 PM - Forum: Homework - No Replies

Hi.
So, my question is:
When I ran the below code all values change to custom(as it should be), except for the last phrase. I wonder if anyone has a..... More

Print this item

  How to fix this?
Posted by: DERO - May-13-2022, 06:43 PM - Forum: Homework - Replies (1)

Hi.
So, my question is:
When I ran the below code all values change to custom(as it should be), except for the last phrase. I wonder if anyone has a..... More

Print this item

  Convert a string to a function
Posted by: mikepy - May-13-2022, 05:30 PM - Forum: General Coding Help - Replies (8)

Hello, is there a possibility or library to convert the following string to a function?

[code]func_str = '''def test(event, x, y, flags, data):
..... More

Print this item

  Check if a value is present in each group
Posted by: Menthix - May-13-2022, 03:42 PM - Forum: General Coding Help - Replies (8)

Hi,

I have a dataframe with two columns : an 'ID' column and a column 'V1' with different values between 1 and 3.
I'd like to mark each ID with 1..... More


Attached Files

Thumbnail(s)
   
Print this item

  Replace elements of array with elements from another array based on a third array
Posted by: Cola_Reb - May-13-2022, 01:00 PM - Forum: General Coding Help - Replies (6)

I hope I can explain my current problem in a understandable way (besides from the possible confusing title Rolleyes):

I need to replace some el..... More

Print this item

  Your p“Timeout !!!!” when I enter a known good IP address when running port scanner
Posted by: James2000k - May-13-2022, 08:55 AM - Forum: Networking - Replies (8)

Can anyone offer some assistance because i am working on this port scanner and it seems to run fine but when i sent it to another person they said the..... More

Print this item

  Tetris samples for teaching Python
Posted by: relent95 - May-13-2022, 07:40 AM - Forum: Code sharing - No Replies

I created two tetris implementations to teach Python to my sons.
Any suggestions for simplifying the logic or improving the readability are welcome...... More

Print this item

  [Solved]Help Getting Started on Scene Swapping
Posted by: Extra - May-12-2022, 11:26 PM - Forum: GUI - Replies (10)

Hello,

I have yet another question, but this one entails replacing the current screen/window with a new one when it is called.

I'm trying to ha..... More

Print this item

  Python to exe-Does it do Pip installs?
Posted by: Extra - May-12-2022, 08:12 PM - Forum: News and Discussions - Replies (1)

Hello,

I'm have a python script that currently uses PyQt5 for the GUI, and I'm wondering if I wanted to make it an exe file down the road, will it ..... More

Print this item

  [Solved]Help Passing Variables
Posted by: Extra - May-12-2022, 08:01 PM - Forum: GUI - Replies (4)

Hello,

I'm wondering how I can pass my userInputName and userInputPassword to my validate function.
I thought this was the correct way of doing ..... More

Print this item

  Split excel file and write output at specific row and set sheet position
Posted by: DSCA - May-12-2022, 07:29 PM - Forum: Data Science - No Replies

Hi All,

I have a Masterfile which I split with the help of codes. Below is the code I use for splitting the excel file based on a column.

[pyth..... More

Print this item

  Save settings
Posted by: frohr - May-12-2022, 06:50 PM - Forum: General Coding Help - Replies (3)

Hi,
I want to ask you how to save options. I have main window with charts and calculations. When I click Settings button, second window is open.

T..... More

Print this item

  Converting '1a2b3c' string to Dictionary
Posted by: PythonNoobLvl1 - May-12-2022, 05:39 PM - Forum: General Coding Help - Replies (6)

Hello, I'm currently in school for computer science, graduating next year and I've been browsing some of the leetcode problems. I was a bit dishearten..... More

Print this item

  force a program to exit ?
Posted by: Armandito - May-12-2022, 12:22 PM - Forum: General Coding Help - Replies (3)

Hello everyone!

Here is my problem: I use a Python program that communicates with a device. Sometimes (for no apparent reason) it loses connection w..... More

Print this item

  Right way to implement interfaces
Posted by: yossiy123 - May-12-2022, 08:07 AM - Forum: General Coding Help - Replies (1)

Hi all!

There is a right way to implement interfaces?
I read about ABC but I heard it going to be deprecated so I want to know if there is other w..... More

Print this item

  [ElementTree] Insert big block of HTML?
Posted by: Winfried - May-12-2022, 07:08 AM - Forum: General Coding Help - No Replies

Hello,

I have only shallow experience with XML parsers — although I'm currently dealing with HTML.

Unless I missed it, neither lxml nor ElementTree ..... More

Print this item

  [Solved]Help storing in user input from line edit
Posted by: Extra - May-12-2022, 12:32 AM - Forum: GUI - Replies (2)

Hello,

I have a Line Edit in my PyQt5 GUI and I'm wondering how I can take the input the user types in and store it into a python variable once the..... More

Print this item

  [Solved] Help with an DLL import error
Posted by: Extra - May-11-2022, 10:41 PM - Forum: GUI - Replies (4)

Hello,

I have a quick script that should let me view the GUI.
But when I run it I get this error:
[error]
from PyQt6.QtWidgets import QAppli..... More

Print this item

  [Solved]Converting .ui to .py
Posted by: Extra - May-11-2022, 09:03 PM - Forum: GUI - Replies (4)

Hello,

I used QT Designer (This one here: QT Designer Link) and I'm wondering how to c..... More

Print this item

  Link scripts from a different folder
Posted by: Extra - May-11-2022, 08:00 PM - Forum: General Coding Help - Replies (3)

Hello,

I have a folder called "Inventory system" and within the "Inventory System" folder I have 2 subfolders: "Databases" and "Functions"

The ..... More

Print this item

  Encryption program
Posted by: andrei - May-11-2022, 07:56 PM - Forum: Code sharing - Replies (1)

Hello all, I seem to be having a issue while I am decoding the following program ( encryption type ) no issue encoding it , can anybody provide some i..... More


Attached Files

.py   encoding09.py (Size: 2.11 KB / Downloads: 2)
.py   decoding01.py (Size: 2.37 KB / Downloads: 1)
Print this item

  check if element is in a list in a dictionary value
Posted by: ambrozote - May-11-2022, 04:02 PM - Forum: General Coding Help - Replies (4)

how can I check if an element is in a list in a dictionary value? for instance

how can I get this code to output "Found it"

a = "Doors"

dict ..... More

Print this item

  Loop through list of ip-addresses [SOLVED]
Posted by: AlphaInc - May-11-2022, 01:31 PM - Forum: General Coding Help - Replies (7)

Hello everybody,

I want to use a python script to check if certain ips are still online and if not, i want the system to shut down.
Therefore I ha..... More

Print this item

  what have you learned recently?
Posted by: Skaperen - May-10-2022, 10:02 PM - Forum: Bar - Replies (15)

what have you learned recently that impacts your programming in Python or anything else you regularly do?

Print this item

  Model ID error
Posted by: sshree43 - May-10-2022, 07:53 PM - Forum: General Coding Help - No Replies

Hi Expert,

I am trying to use model id for form recognizer py script. Here is my code . currently I am using endpoint url and api key and data is g..... More

Print this item

  Trying to use 2 values from excel in my script but getting error..
Posted by: cubangt - May-10-2022, 07:14 PM - Forum: General Coding Help - Replies (3)

I have a script which reads in a text/csv files and im saving a filtered version as a new file, can be seen in my last post about deleting after a cer..... More

Print this item

  How to use Thread() ?
Posted by: Frankduc - May-10-2022, 05:42 PM - Forum: General Coding Help - Replies (7)

Hello,

By any luck someone could tell me how i could fix my thread problem.

In the while loop at the begging there is a thread. Its link to a functi..... More

Print this item

  How to find link to video file from URL
Posted by: Pavel_47 - May-10-2022, 02:33 PM - Forum: Web Scraping & Web Development - Replies (38)

Hello,

There is Add-on in FireFox (Video DownloadHelper) that allows to find link to video.
For example on this page ..... More

Print this item

  Can't install FireDM tool
Posted by: Pavel_47 - May-10-2022, 01:35 PM - Forum: Web Scraping & Web Development - Replies (4)

Hello,
Cannot install FireDM tool (downloading videos).
I used pip install FireDM as suggested here:
FireDM 2[url=https://python-forum.io/thread-37190.html]..... More


Attached Files

.txt   pip_install_log.txt (Size: 6.94 KB / Downloads: 315)
Print this item

  Acceleration to velocity
Posted by: frohr - May-10-2022, 11:10 AM - Forum: Data Science - Replies (1)

Hi,
I want to ask you if I have correct calculation of velocity fom acceleration. It is for vibration analysis.
I have ADXL1005 and I acquire data t..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  Dichaelmag 32 minutes ago OLanePulse OLanePulse General Codin...
  Simple webbot for testing 2 hours ago narcpl69 Arush Jobs
  Using moviepy fails due t... 2 hours ago sheepog sheepog General Codin...
  Nested Dictionaries, good... 2 hours ago Curbie snippsat General Codin...
  Script broke with Python ... 3 hours ago aspecteleven Arush Code sharing
  Mathematica code vs Pytho... 3 hours ago MiloChocolatito Arush General Codin...
  Looking for ideas 3 hours ago Azdaghost Arush Bar
  Pillow _getexif for pytho... 10 hours ago Larz60+ StephenTuh General Codin...
  [SOLVED] Open file, and i... Today, 07:56 Winfried Winfried General Codin...
  EarnestPef Yesterday, 21:18 Lhanelycle Lhanelycle General Codin...
  Error without reason Yesterday, 18:18 Azdaghost deanhystad General Codin...
Most views
  The best Prog... 569846
  Tutorial Requ... 474871
  Web Scraping ... 434542
  Newbie with P... 375033
  Thread remain... 346946
Most reputation
buran 581
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+ 12054
buran 8172
snippsat 7329
deanhystad 6831
metulburr 5151
Top referrers
Googlepro 23
python 6
metulburr 6
NonEntity 5
buran 3
Newest members
OLanePulse Today
Stephenchers Today
cricketids Today
xham09 Today
porm09 Today

User Panel Messages

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