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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 20,256
» Latest member: TomTMH
» Forum threads: 38,782
» Forum posts: 175,832

Full Statistics

Online Users
There are currently 36 online users.
» 1 Member(s) | 32 Guest(s)
Bing, Google, Mojeek, mamta25

Latest Threads
[solved] re.split issue
Forum: General Coding Help
Last Post: Pedroski55
3 hours ago
» Replies: 7
» Views: 123
New to python and coding
Forum: Homework
Last Post: jefsummers
8 hours ago
» Replies: 6
» Views: 178
Please guide me to comple...
Forum: General Coding Help
Last Post: pbkurd
9 hours ago
» Replies: 0
» Views: 49
Backward compatibility qu...
Forum: News and Discussions
Last Post: noisefloor
Yesterday, 11:52 AM
» Replies: 6
» Views: 350
why is the image not show...
Forum: General Coding Help
Last Post: deanhystad
Nov-12-2025, 07:26 PM
» Replies: 2
» Views: 111
Help with Serial.write in...
Forum: General Coding Help
Last Post: Larz60+
Nov-12-2025, 10:11 AM
» Replies: 6
» Views: 241
I’m building a Python Dat...
Forum: GUI
Last Post: tsgiannis
Nov-11-2025, 09:52 AM
» Replies: 11
» Views: 379
[split] print two differe...
Forum: General Coding Help
Last Post: Gribouillis
Nov-10-2025, 05:37 AM
» Replies: 1
» Views: 147
Data Science
Forum: Data Science
Last Post: mamta25
Nov-10-2025, 05:27 AM
» Replies: 3
» Views: 2,642
Two arguments in input fu...
Forum: General Coding Help
Last Post: Pedroski55
Nov-09-2025, 12:56 AM
» Replies: 4
» Views: 246

 
  Concatenate str
Posted by: JohnnyCoffee - Apr-30-2021, 06:45 AM - Forum: General Coding Help - Replies (2)

I have a main class that returns the result of a secondary class. The problem is defined in the following message in the terminal:

TypeError: can o..... More

Print this item

  Need help with lxml.html and xpath
Posted by: spacedog - Apr-29-2021, 10:58 PM - Forum: General Coding Help - Replies (5)

I was using scrapy to create the needed xpath for a lot of elements to scrape. Now that we're using multithreading I moved off of scrapy and just usi..... More

Print this item

  Create buttons as many as there is data
Posted by: nestor - Apr-29-2021, 07:59 PM - Forum: GUI - No Replies

Hi, with this code I create a graphical interface with a button
[python]from kivymd.app import MDApp
from kivy.lang import Builder

KV = """
Scre..... More

Print this item

  Python OpenCV window not opening in fullscreen mode
Posted by: Zman350x - Apr-29-2021, 07:54 PM - Forum: General Coding Help - No Replies

I have some basic code to receive a camera stream as a numpy array and display it as a fullscreen window. I'm able to receive and display the camera, ..... More

Print this item

  Pausing and returning to function?
Posted by: wallgraffiti - Apr-29-2021, 05:08 PM - Forum: General Coding Help - Replies (1)

The basic idea I have is something like this, but with actual python builtins:
[python]
def somefunc():
print('Something')
pause
prin..... More

Print this item

  Help with CV2 pytesseract detcet numbers
Posted by: korenron - Apr-29-2021, 12:56 PM - Forum: General Coding Help - No Replies

hello ,
I want to run a code that detect numbers
I took very simple test case ,
use windows paint to write "12 345 67" in black , font 100 and ..... More

Print this item

  help on random methods
Posted by: jip31 - Apr-29-2021, 11:09 AM - Forum: General Coding Help - Replies (2)

Hi

I use the randint method which works fine

[python]
>>> import random
>>>
>>> def rand():
for i in range(6):
print(r..... More

Print this item

  Beginner question - Terminal
Posted by: Alex121 - Apr-29-2021, 10:43 AM - Forum: News and Discussions - Replies (8)

I downloaded the latest version of python on my Mac, and went to Terminal to check if everything's working.
When I type "python --version" I get the..... More

Print this item

  How to multiply tuple values in array?
Posted by: EngiPorem - Apr-29-2021, 09:36 AM - Forum: Homework - Replies (3)

Hi guys. I have stumbled on a issue where I can't multiply the elements in a tuple. Lets say we have [(x1, y1),(x2, y2)], I need the output like this:..... More

Print this item

  help with pytesseract.image_to_string(savedImage, config='--psm 11')iamge to string
Posted by: korenron - Apr-29-2021, 09:36 AM - Forum: General Coding Help - No Replies

i didn;t understand something in the

pytesseract.image_to_string(savedImage, config='--psm 11')
in the config
what does
[pytho..... More

Print this item

  help for use print in REPL
Posted by: jip31 - Apr-29-2021, 09:10 AM - Forum: General Coding Help - Replies (10)

Hi
I try to test this basic code in REPL

a = [1, 2, 3, 4, 5]
for x in range(len(a)):
    print a[x]
I don't succeed to d..... More

Print this item

  help for list printing
Posted by: jip31 - Apr-29-2021, 09:00 AM - Forum: General Coding Help - Replies (8)

Hi
Except if i am mistaken, the function below create an empty list and append random number in this list

[python]
def toto():
jp = []
..... More

Print this item

  tkinter control break a while loop
Posted by: samtal - Apr-29-2021, 08:26 AM - Forum: General Coding Help - No Replies

Hi
I have a basic simple Python 3.5 tkinter program on raspberry pi 3 that runs a stepper motor driven lift.
In the program I have a while loop that..... More

Print this item

  ModuleNotFoundError: No module named 'graph'
Posted by: Anldra12 - Apr-29-2021, 08:14 AM - Forum: General Coding Help - Replies (3)

Quote:Run the code as install to graph but python3.8 have not accept to install library for graph pip install graph what should to do.
[error..... More

Print this item

  Unable to use random.choice(list) in async method
Posted by: spacedog - Apr-29-2021, 06:17 AM - Forum: General Coding Help - Replies (4)

I need to pull a random proxy from a list in an async method but the code exits the method as soon as it hits the line of code:
[python]proxy = rando..... More

Print this item

  SimpleHTTPRequestHandler ( verses ) Files Python Processing
Posted by: JohnnyCoffee - Apr-29-2021, 02:47 AM - Forum: General Coding Help - No Replies

I am using the class (SimpleHTTPRequestHandler) to read directories and files (.html) that work perfectly well and are redenried naturally by the brow..... More

Print this item

  Two separate dataframes, two seperate programs
Posted by: stylingpat - Apr-28-2021, 12:45 PM - Forum: General Coding Help - Replies (2)

Hello, I am trying to get two programs to "talk" to each other. The information will be stored in a Pandas Dataframe. Is it possible to have them talk..... More

Print this item

  What does and do
Posted by: rsherry8 - Apr-28-2021, 11:25 AM - Forum: General Coding Help - Replies (3)

Please consider the following Python expression where a and b have integer values.

a and b

I claim that value of this expression is 0, if a ..... More

Print this item

  Can python open a hyperlink?
Posted by: 1stTimeCoding - Apr-28-2021, 08:14 AM - Forum: General Coding Help - Replies (3)

Hello all,

So I am new to Python and coding in general, and while I am still teaching myself some of the basics I was curious about this question. ..... More

Print this item

  Looking for data/info on a perticular data-proccesing problem.
Posted by: MvGulik - Apr-28-2021, 06:12 AM - Forum: General Coding Help - Replies (9)

Doing some, to me tricky, data processing. And I'm wondering if it might be related to some general (math, logic, science, ...) problem.
And if anyon..... More

Print this item

  Need help multi-threading scraping
Posted by: spacedog - Apr-28-2021, 05:09 AM - Forum: General Coding Help - Replies (2)

Using windows 10 pro, python 3.8.8.

I have a long list of URLs to loop through to scrape. Each URL has up to 100 pages to navigate through.

Thi..... More

Print this item

  dict+dict
Posted by: Skaperen - Apr-28-2021, 12:05 AM - Forum: News and Discussions - Replies (5)

if abc and xyz are dictionaries, i can do abc.update(xyz) and have a combined dictionary as a resul..... More

Print this item

Question problems with flask and celery
Posted by: Phantomsec - Apr-27-2021, 10:45 PM - Forum: Web Scraping & Web Development - Replies (2)

[python]def make_celery(app):
celery = Celery(
app.import_name,
backend=app.config['CELERY_RESULT_BACKEND'],
broker=ap..... More

Print this item

  problem with python
Posted by: raarkil - Apr-27-2021, 08:29 PM - Forum: GUI - Replies (22)

Hello all! I am new to linux but I like to program and I installed linux mint 20.1, but I got problem with pip, when I writing a code with some module..... More

Print this item

  It says there is no keras in jupyter notebook. it is wrong there is a keras install
Posted by: Led_Zeppelin - Apr-27-2021, 08:29 PM - Forum: General Coding Help - No Replies

When I run the following code, I get the error shown below.

[code]
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras i..... More

Print this item

  Need help in solving Oignon convex hull
Posted by: petermarsi - Apr-27-2021, 08:18 PM - Forum: Data Science - Replies (1)

Hello there,
I was working on a project for a while now and I don't get my code to work
The problem looks quite simple:

Given a set of points : [..... More

Print this item

  data between dates
Posted by: karontse - Apr-27-2021, 06:37 PM - Forum: General Coding Help - Replies (1)

I haver a CSV:

01/03/2018, banana
04/03/2018, maçã
05/04/2018, pêra
07/04/2018, uva
10/05/2018, laranja

How do I browse the file and get t..... More

Print this item

  Unable to unpack at line 184
Posted by: Nitil - Apr-27-2021, 06:34 PM - Forum: Homework - Replies (4)

Good day to all. Im new to the forums and want to excel in Python.

This a simple code for an RPG game with the above error in line 184. Would like ..... More

Print this item

  Accessing a data-phone tag from an href
Posted by: KatMac - Apr-27-2021, 05:28 PM - Forum: Web Scraping & Web Development - Replies (1)

I am working on a small project using Beautiful Soup.
How would I access the phone number of this :

[output]<a href="javascript:void(0)" class="m..... More

Print this item

  help on first function
Posted by: jip31 - Apr-27-2021, 04:12 PM - Forum: General Coding Help - Replies (6)

Hi
Is anybody can tell me why the function below dont works because if I just execute the for loop I have results
[python]
import random
>>> def rand(..... More

Print this item

  Rmarkdown opened by python code - errors
Posted by: Rav013 - Apr-27-2021, 03:13 PM - Forum: General Coding Help - No Replies

I have problem when opening R markdown with my python code (pycharm). I use rpy2.robjects and urllib packages. First one is to write code in R script ..... More

Print this item

  FREE jobs event with Creative Assembly, TT Games and more!
Posted by: WanderingOwl - Apr-27-2021, 02:32 PM - Forum: Jobs - No Replies

Games Jobs Live: South Coast & Brighton is happening on Wednesday 28th April: a FREE online livestream with gamedev studios who are currently hiring!..... More

Print this item

  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 error from Mysql call
Posted by: AkaAndrew123 - Apr-27-2021, 01:37 PM - Forum: General Coding Help - Replies (1)

Python3, Ubuntu 20.04

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92

When querying the MySQL database I receive this error, the code ..... More

Print this item

  2D Bin packing - brute force in python
Posted by: WBPYTHON - Apr-27-2021, 01:24 PM - Forum: Data Science - Replies (2)

Hi everyone,

Does anybody has written in python an optimized solution for brute forcing 2D-BIN packing ?

For instance I have a number of rectang..... More

Print this item

  Retrieve data from oscilloscope using pyserial on ubuntu
Posted by: jte350 - Apr-27-2021, 10:10 AM - Forum: General Coding Help - Replies (3)

Hi i am trying to retrieve data from an oscilloscope, it works well with windows using the provided software but i need to use it with ubuntu using th..... More

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  [solved] re.split issue 3 hours ago paul18fr Pedroski55 General Codin...
  New to python and coding 8 hours ago lary_p jefsummers Homework
  Please guide me to comple... 9 hours ago pbkurd pbkurd General Codin...
  Backward compatibility qu... Yesterday, 11:52 yutaozhou noisefloor News and Disc...
  why is the image not show... 11-12, 19:26 sarbogast deanhystad General Codin...
  Help with Serial.write in... 11-12, 10:11 racingsubby Larz60+ General Codin...
  [Tkinter] I’m building a ... 11-11, 09:52 tsgiannis tsgiannis GUI
  [split] print two differe... 11-10, 05:37 Reema Gribouillis General Codin...
  Data Science 11-10, 05:27 Oshadha mamta25 Data Science
  Two arguments in input fu... 11-09, 00:56 Alfredd Pedroski55 General Codin...
  [openpyxl] Set the lockin... 11-07, 11:59 BelleroDev Pedroski55 General Codin...
Most views
  The best Prog... 578935
  Tutorial Requ... 510271
  Web Scraping ... 441959
  Newbie with P... 385974
  New Users Int... 376886
Most reputation
buran 581
snippsat 511
Larz60+ 452
Gribouillis 362
deanhystad 328
Most replies
  New Users Int... 452
  [book] Variou... 188
  CKEditor / Ri... 100
  moving from t... 95
  Free keys and... 91
Top posters
Larz60+ 12107
buran 8195
snippsat 7388
deanhystad 6909
metulburr 5151
Top referrers
Googlepro 23
metulburr 6
python 6
NonEntity 5
buran 3
Newest members
TomTMH Yesterday
pbkurd Yesterday
Gichardaxora Yesterday
cc123 Yesterday
Jessicaadams Yesterday

User Panel Messages

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