14,259 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for Hanginium65

I wrote a Python script that included the python-swiftclient module to connect to the OpenStack Object Storage and upload some files to the OpenStack Object Storage container It works great if I upload a file that ends with the extension .gz however, I’m getting an error regarding the ‘TarFile’ object …

Member Avatar for Salem
2
53
Member Avatar for Audun

Hi I downloaded Tkinter Designer, but there´s no exe there. I´ve used Thonny as a "compiler" for running scripts, and I used it to "make" a a simple program, but I don´t know how to save as an exe, and I don´t know how I would put these files into …

Member Avatar for Reverend Jim
1
21
Member Avatar for Audun

Hi I want to make use of GitHub-programs, and so I downloaded a bunch of Python-tools. When I run this command in "Python 3.12", which looks like CMD to me, I get a syntax error. "To create a virtual environment, Python supplies a built in venv module which provides the …

Member Avatar for Reverend Jim
1
40
Member Avatar for SEO_935

AI-powered code reviews are bringing about a revolution in the way developers collaborate, enabling more efficient, accurate, and thorough evaluations of code prior to its integration into the central project repository. This transformation is made possible by leveraging machine learning and artificial intelligence to automate and enhance different facets of …

0
33
Member Avatar for Tom_45

I am trying to extract three values from the td tags in an html downloaded file. <tr align="right"><td>236</td><td>Roy</td><td>Allyson</td> <tr align="right"><td>237</td><td>Marvin</td><td>Pamela</td> <tr align="right"><td>238</td><td>Micah</td><td>Kristine</td> <tr align="right"><td>239</td><td>Collin</td><td>Raquel</td> I am using the pattern match = re.findall(r'<td.?>([\d+])([.?])*<\/td>', file) The file is created with a read() statement. The output should look like (236, "Roy", "Allyson") (237, …

Member Avatar for Tom_45
1
81
Member Avatar for Tom_45

I am trying to extract three values from the td tags in an html downloaded file. <tr align="right"><td>236</td><td>Roy</td><td>Allyson</td> <tr align="right"><td>237</td><td>Marvin</td><td>Pamela</td> <tr align="right"><td>238</td><td>Micah</td><td>Kristine</td> <tr align="right"><td>239</td><td>Collin</td><td>Raquel</td> I am using the pattern match = re.findall(r'<td.*?>([\d+])([.*?])*<\/td>', file) The file is created with a read() statement. The output should look like (236, "Roy", "Allyson") (237, …

Member Avatar for Tom_45
1
85
Member Avatar for Tom_45

I am working on an exercise from Google's Python class dealing with popular baby names. I have the program running properly when using only one filename, but when I try to use the wildcard to get all files with baby####.html files I get differing errors every time I run the …

Member Avatar for Tom_45
2
45
Member Avatar for amrutraj

I am building a crawler+parser in Python. It has to be run for, like 20 hours. How can I modify the code such that the code execution pauses (before next urllib2.urlopen) when the internet is disconnected, and AUTOMATICALLY resumes with the same variable values, when the internet connection is back …

Member Avatar for musawir_2
0
254
Member Avatar for cored0mp

I'll admit that I have an opinion about this. Is the point of professional coding to write creative software or to write software that adheres closely to standards?

Member Avatar for cored0mp
0
92
Member Avatar for cored0mp

I had some fun this weekend having a go at pdfkit with mixed results. Can anyone nominate a candidate for best PDF writing?

Member Avatar for cored0mp
0
28
Member Avatar for cored0mp

Hey Gang! OK today I am having trouble with my transaction processing application implemented in python/MySQL. Here is some "working" testing code. import psycopg2 from psycopg2 import Error import binascii from binascii import unhexlify import mysql.connector as mysql sql='''CREATE PROCEDURE testprocedure(OUT tacos INT) BEGIN show tables; SET tacos := 1 …

Member Avatar for Dani
1
26
Member Avatar for FarrisFahad
Member Avatar for Dani
2
39
Member Avatar for cored0mp

I'm working on an application, certainly not my first. Some aspects of my coding background are quite informal, for example I have only a rudimentary understanding of source code repositories. Take library formation, for example? I'm reasonably proud that my source is of sufficient quality and organization to pass an …

Member Avatar for Dani
2
104
Member Avatar for cored0mp

How do I create a table in postgres that's associated with a specific database? Obviously from the command line one can do Create table tablename (); But how do I make sure that the table is associated with the correct database? CREATE table dbname.tablename(); is giving me the error: ERROR: …

Member Avatar for Dani
1
123
Member Avatar for Artin_1

I've just finished reading Eric Matthes' Python Crash Course. A book which I found great to learn Python within a short time. The learning process wasn't really hard for me as I was already familiar with programming in other languages. Now I'm done with it and I've just started learning …

Member Avatar for Reverend Jim
0
100
Member Avatar for raj_41

If any of you have hands-on experience in developing texting platforms or have insights into the considerations involved, I would greatly appreciate your input. Factors such as real-time capabilities, scalability, integration with messaging protocols, and compatibility across devices are of utmost importance.

Member Avatar for Sajid_21
0
209
Member Avatar for NAFISUL

Hi, I am a non computing graduate. Have basic HTML knowledge gather using freecodecamp. I am transitting from marketing industry to IT (programming) industry. I have enrolled in a masters in UK which will start in just one month. But I am not sure If i will be able to …

Member Avatar for jkon
0
124
Member Avatar for Mindmade
Member Avatar for Reverend Jim
-2
284
Member Avatar for Mindmade

Hi guyz, What is the main purpose of alpha and beta testing? From your own personal experience. Why is Beta Testing is very much important in mobile app development?

Member Avatar for Gulshan_6
-2
43
Member Avatar for fluids_

I am trying to make a drawing board in pygame but I want to be able to change the opacity using RGBA but it doesn't seem to be working, my code below: import pygame as pg import sys, os from pygame.locals import * pg.init() draw = 0 color = 0 …

Member Avatar for Reverend Jim
0
116
Member Avatar for lma2lke8
Member Avatar for Reverend Jim

I came across this item while programming something that should have been very simple. VLC Media Player will save the last viewed position in a media file (assuming you have the resume option enabled). It maintains two lists, file names, and offset times. The file names are encoded such that …

Member Avatar for rproffitt
0
44
Member Avatar for Mindmade
Member Avatar for Reverend Jim
-2
48
Member Avatar for ashishhhroe

I am trying to run a python code but it's showing attribute error- my_string = "Hello, world!" my_string.reverse() Output for the above code: Traceback (most recent call last): File "c:\Users\name\OneDrive\Desktop\demo.py", line 2, in <module> my_string.reverse() ^^^^^^^^^^^^^^^^^ AttributeError: 'str' object has no attribute 'reverse' Could you please help me solve this? …

Member Avatar for Reverend Jim
0
25
Member Avatar for biplabjackie

I have excel sheet where all pivotcharts are combined by slicers. i want to copy individual pivot charts from the excel sheet to a word document by image to placeholder Thank you in advance I have tried with win32 & openpyxl but error message came Object attribute charts is not …

Member Avatar for AndreRet
1
45
Member Avatar for Gulshan_6

Hello this is Gulshan Negi Well, I am writing a program for making hangman game in python but it shows some error at the time of its execution. Here is my source code: import random def select_word(): words_in_computer_memory = ['magazine','stars','computer','python','organisation'] word = random.choice(words_in_computer_memory) return word def is_gussed(word, guessed_letter_list): count=0 for …

Member Avatar for AndreRet
1
147
Member Avatar for JessicaW33

Hello everyone, I'm currently exploring blockchain development and would like to learn how to implement a simple blockchain in a programming language of my choice. I understand the basic concepts of a blockchain, but I'm curious about the specific steps and code required to create one. Could anyone please share …

Member Avatar for tarun Nagar
0
155
Member Avatar for Mindmade

Is it good to start your programming career with Python IDE & Editors? If it's is true, Then why it is?

Member Avatar for AndreRet
-2
89
Member Avatar for Mindmade
Member Avatar for Reverend Jim
-1
408
Member Avatar for veomall

I am beginner python developer. I'm excited to be part of this brilliant community of talented individuals who share a love for coding and problem-solving. Let's collaborate, learn, and create amazing solutions together. Here's to our success!

Member Avatar for AndreRet
0
71

The End.