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,479
» Latest member: livecricket
» Forum threads: 38,579
» Forum posts: 174,812

Full Statistics

Online Users
There are currently 698 online users.
» 0 Member(s) | 690 Guest(s)
Bing, Google, Mojeek, Yandex, Facebook

Latest Threads
How to attach images to a...
Forum: Board
Last Post: sethmike9
7 hours ago
» Replies: 6
» Views: 8,862
How To Attach data Files
Forum: Board
Last Post: sethmike9
7 hours ago
» Replies: 3
» Views: 4,132
Text frame
Forum: Homework
Last Post: Pedroski55
Yesterday, 07:39 PM
» Replies: 2
» Views: 352
Python automation: Sendin...
Forum: General Coding Help
Last Post: olips784
Yesterday, 06:28 PM
» Replies: 0
» Views: 129
class Blockage not projec...
Forum: General Coding Help
Last Post: deanhystad
May-15-2025, 04:32 PM
» Replies: 1
» Views: 266
Import vs from x import
Forum: General Coding Help
Last Post: snippsat
May-15-2025, 04:09 PM
» Replies: 1
» Views: 206
Trouble with Average Calc...
Forum: General Coding Help
Last Post: Pate
May-15-2025, 07:38 AM
» Replies: 4
» Views: 1,381
tracking version during r...
Forum: News and Discussions
Last Post: Skaperen
May-15-2025, 12:25 AM
» Replies: 0
» Views: 151
Return a string or byte o...
Forum: General Coding Help
Last Post: snippsat
May-14-2025, 05:21 PM
» Replies: 5
» Views: 476
problems with netcdf if I...
Forum: General Coding Help
Last Post: Blaubart
May-14-2025, 04:02 PM
» Replies: 16
» Views: 1,322

 
  How to convert .trc/.txt file into excel using python
Posted by: ebola - Jan-15-2023, 09:46 PM - Forum: Homework - Replies (3)

I want to convert .trc file (image 1) into excel(image 2). Once it is converted to excel I want a command prompt to open up asking 'Select the model t..... More


Attached Files

Thumbnail(s)
           
Print this item

  Pygame Snake Game Help Please
Posted by: Beginnerprogrammer6 - Jan-15-2023, 09:45 PM - Forum: Homework - No Replies

My computer science assignment is creating a snake game using pygame and I have to use images for my sprites. I don't know how to move the images of t..... More

Print this item

  how do I fix an index error?
Posted by: MehHz2526 - Jan-15-2023, 08:01 PM - Forum: Homework - Replies (1)

I know what an index error is, but all my variables are numbered correctly from 0 to 5 but I still have an index error. I think that the main problem ..... More

Print this item

  Syntax error? I don't see it
Posted by: KenHorse - Jan-15-2023, 06:35 PM - Forum: General Coding Help - Replies (4)

Python 3.9.2

I keep getting a syntax error and for the life of me, I don't see it:

[quote]root@piZERO:~/bin# ./npwAgent.py
File "/root/bin/np..... More

Print this item

  Is there a way to determine if a radio button has been selected?
Posted by: TWB - Jan-15-2023, 04:11 PM - Forum: GUI - Replies (5)

Hello, as Im now to Python any help is appreciated
My goal is to determine if a radio button has been selected, to help troubleshoot I have created a..... More

Print this item

  Weird behaviour using if statement in python 3.10.8
Posted by: mikepy - Jan-15-2023, 02:57 PM - Forum: General Coding Help - Replies (23)

Hello, can someone explain me this wired behavior? At the if statement which you can see in the screenshot, despite if 1==2 (for test only) is false, ..... More

Print this item

  try catch not working?
Posted by: korenron - Jan-15-2023, 01:29 PM - Forum: General Coding Help - Replies (2)

Hello,
I have this code for checking modem connection

[python]import os
import sys
import time
import datetime
import requests
import thread..... More

Print this item

  compare and find the nearest element ?
Posted by: mr_gentle_sausage - Jan-14-2023, 09:32 PM - Forum: General Coding Help - Replies (4)

hello,
I need a little help, I have a list (element has 2 elements(X and Y)), and I need to find, in this list, which element is the nearest of my mo..... More

Print this item

  Where's my .py file?
Posted by: hansemso - Jan-13-2023, 10:40 PM - Forum: General Coding Help - Replies (1)

Hi. Newbie here. I installed pycharm, got the sympy extension. I made a file called "Newton's_Method_2" and put it in a pythonProject1 folder I mad..... More

Print this item

  Question about Creating an Automated Process in Python
Posted by: Supratik1234 - Jan-13-2023, 08:29 PM - Forum: General Coding Help - No Replies

Hi everyone, I am very new to Python so I don't know a lot about coding whatsoever but I am a part of a research group involved in ab initio md. For t..... More


Attached Files

.py   OHNWCHEM.py (Size: 1.49 KB / Downloads: 201)
Print this item

  self.pos().x() and self.pos().x() always return -3,-30 on PyQT5
Posted by: DrakeSoft - Jan-13-2023, 02:31 PM - Forum: GUI - Replies (3)

Hi,

I am using the code below to experiment with window size and psoition.
I notice that irrespective of where I move the window self.pos().x() an..... More

Print this item

  excel lookups
Posted by: Deephect - Jan-13-2023, 12:46 PM - Forum: General Coding Help - No Replies

I have two excel sheets in the same book, each row contains a lookup value from sheet2.
Sheet2 contains lookups and all lookup values, Sheet1 contai..... More

Print this item

  Python SSL web page scraping
Posted by: Vadanane - Jan-13-2023, 09:34 AM - Forum: General Coding Help - Replies (1)

I'm using Python 2.7 with BeautifulSoup to scrape web pages, but I keep running across protocol errors that don't make much sense to me. This only occ..... More

Print this item

  launching executables
Posted by: DPaul - Jan-13-2023, 07:31 AM - Forum: General Coding Help - Replies (6)

Hi,
I have an executable. Users click on it (or an icon) and do research.
One user however starts inadvertently many instances of the exe,
and one ..... More

Print this item

  super lightweight (only 35 lines) dependency injection (ioc) support for Python
Posted by: kenttong - Jan-13-2023, 04:30 AM - Forum: Code sharing - Replies (5)

Hi,

A super simple and risk-free way to do dependency injection (ioc) in Python. The entire code base is only 35 lines (empty lines included). No n..... More

Print this item

  Newbie here. Create an array from file data?
Posted by: Rayj00 - Jan-13-2023, 12:37 AM - Forum: Homework - Replies (2)

I'm brand new with python. I have a file with integers like this:

2 5 8 12 20
3 12 15 18 29
etc,
etc,
etc,
.
.
etc.

I need to get them ..... More

Print this item

  "Name is not defined" when running a class
Posted by: lil_e - Jan-12-2023, 11:10 PM - Forum: General Coding Help - Replies (6)

Hi. I'm a beginner trying to figure out why my code won't work. I'm pretty sure it's a minor detail, but I tried several time, but cannot find out why..... More

Print this item

  Positive integral solutions for Linear Diophantine Equation
Posted by: august - Jan-12-2023, 10:09 PM - Forum: General Coding Help - Replies (4)

Hello All,

Say I want to find all POSITIVE INTEGRAL solutions for a,b for this linear equation:
a + 2b = 5 and the solutions ..... More

Print this item

  [split] Explain the python code in this definition
Posted by: Led_Zeppelin - Jan-12-2023, 09:07 PM - Forum: General Coding Help - Replies (1)

I have a vector of real numbers. They are the feature importance in a machine learning experiment. One importance for each sensor.

Obviously, they ..... More

Print this item

  [split] Explain the python code in this definition
Posted by: Led_Zeppelin - Jan-12-2023, 08:54 PM - Forum: Board - Replies (2)

I am sorry to bother anyone for this, but I am stuck. I have to make a new post. I do not remember how to do it.

I have not used the forum since la..... More

Print this item

  Sprites just randomly appear and dissapear in my pygame.sprite.GoupeSingle
Posted by: trueShadoWrr - Jan-12-2023, 08:28 PM - Forum: Game Development - Replies (2)

I am programming my first "real" game in pygame and now I ran into a Problem.

So I am trying to program the mainmenu of a game and it is already wo..... More

Print this item

  Python VS Code: using print command twice but not getting output from terminal
Posted by: kdx264 - Jan-12-2023, 07:33 PM - Forum: General Coding Help - Replies (4)

Hi, I have autism and am brand new to Python. I am trying to output these two print statements I wrote in my code to see the sum of a, b, and c as wel..... More


Attached Files

Thumbnail(s)
   
Print this item

  C Extension module
Posted by: lamer - Jan-12-2023, 02:41 PM - Forum: General Coding Help - Replies (1)

Hello I wrote simple c extension module and assembled it with visual studio everything works
When i try to assemble it with mingw i am getting issue ..... More

Print this item

  How to work with list
Posted by: kafka_trial - Jan-12-2023, 11:24 AM - Forum: General Coding Help - Replies (8)

Hi all,
I am new to Python. I am doing an application. the application takes 20 names of individuals then prompts user to input out of 20 individual..... More

Print this item

  cannot update PIP
Posted by: tester_V - Jan-12-2023, 04:03 AM - Forum: General Coding Help - Replies (1)

Good evening!
I tried to search the forum for 'failing to upgrade PIP', but found nothing, probably searching in the wrong place...
Got a new work c..... More

Print this item

  How to use the re library to remove irrelevant words?
Posted by: noahe - Jan-11-2023, 10:38 PM - Forum: Homework - Replies (3)

Hi, I'm currently making a python code which includes the creation of a wordcloud. The problem is that there are some words that are irrelevant with t..... More

Print this item

  How to get back a subdirectory in URL with Django
Posted by: jao - Jan-11-2023, 10:28 PM - Forum: Web Scraping & Web Development - Replies (1)

Hello, I'm currently learning Django and i've come up with a difficulty. I have a login app, where the user logs in and registers, their url is localh..... More


Attached Files

Thumbnail(s)
   
Print this item

  First Day using Python. NEED Simple Math CODE HELP!
Posted by: Jesseluke - Jan-11-2023, 08:23 PM - Forum: Homework - Replies (4)

can someone help me with a simple *for yous* lines of code..

I need to input a number of no more then 10 or 11 digits. say 01234567890

then n..... More

Print this item

  x and y must have same first dimension, but have shapes (1,) and (50,)
Posted by: asja2010 - Jan-11-2023, 03:00 PM - Forum: General Coding Help - Replies (5)

Hey there python community, after successfully plotting a graph, when it comes to plotting the frontier of it, I get this message:
[python]ValueError..... More

Print this item

  Using one child class method in another child class
Posted by: garynewport - Jan-11-2023, 12:03 PM - Forum: General Coding Help - Replies (5)

I have two child classes; GraphSelect and GraphCreate.

Both are children of the main, parent, class, [inline]App[..... More

Print this item

  Pyinstaller
Posted by: mksundaram - Jan-11-2023, 10:23 AM - Forum: General Coding Help - Replies (1)

Pyinstaller throws an error: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/_MEIBtYb0G/frozendict/VERSION'
[48290] Failed to execute s..... More

Print this item

  Decode string ?
Posted by: JohnnyCoffee - Jan-11-2023, 12:07 AM - Forum: General Coding Help - Replies (1)

Simulating a direct http request in the browser address bar for the module (wsgiref), with the following url:

( OvO ) - Http Request :

[python]..... More

Print this item

  How to use global value or local value
Posted by: sabuzaki - Jan-10-2023, 08:55 PM - Forum: General Coding Help - Replies (4)

Hello,

I'm looking something similar like inheritance from an object (not a class). Example we have code:

[python]
class bridge():
va..... More

Print this item

  PyQt5, QtSql: connection to database does not work
Posted by: gradlon93 - Jan-10-2023, 08:18 PM - Forum: GUI - Replies (4)

Good evening,

I am not sure whether this is the right section, since my question is not about the GUI part of PyQt, but database (QtSql).

I am try..... More


Attached Files

Thumbnail(s)
   
Print this item

  numpy.ufunc - Arguments missunderstand
Posted by: MarioBruza - Jan-10-2023, 07:06 PM - Forum: Data Science - No Replies

Delete a post please. (msg for a moderator).

Print this item

Forum stats
Latest posts
Topic Date, time  Author Last Sender Forum
  How to attach images to a... 7 hours ago CynthiaMoore sethmike9 Board
  How To Attach data Files 7 hours ago Talch sethmike9 Board
  Text frame Yesterday, 19:39 dnabtuh Pedroski55 Homework
  Python automation: Sendin... Yesterday, 18:28 olips784 olips784 General Codin...
  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
Most views
  The best Prog... 565537
  Tutorial Requ... 457024
  Web Scraping ... 430451
  Newbie with P... 366731
  Thread remain... 338943
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
livecricket Today
reactnativeexpert Today
sethmike9 Today
Juh_07 Today
Jolex7 Today

User Panel Messages

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