Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Reading Data from JSON
Post: Reading Data from JSON

Hello looking to see if anyone could help me out here. Ive been trying to figure this out but seem to keep getting stuck. Im not very advance in python however im learning new things each day and time...
tpolim008 General Coding Help 2 1,071 Sep-27-2022, 02:58 AM
    Thread: Comparing dates
Post: RE: Comparing dates

(May-03-2020, 01:24 AM)snippsat Wrote: When you shall compare dates you need eg string str(row[2] to be a datetime object. Here i quick demo,and i use Pendulum because it's great and build on top of...
tpolim008 Data Science 5 2,903 May-03-2020, 01:32 AM
    Thread: Comparing dates
Post: RE: Comparing dates

(May-01-2020, 05:37 PM)Larz60+ Wrote: see: https://pymotw.com/3/datetime/#date-arithmetic for example Thank you however I’m not sure these examples help much. I know how to use for the most part dat...
tpolim008 Data Science 5 2,903 May-02-2020, 04:32 PM
    Thread: Comparing dates
Post: Comparing dates

Hello, I am not sure that this is being placed into the right area of the forum so for that if I am wrong sorry. For starters Im new to getting into python and still learning as I am very very green a...
tpolim008 Data Science 5 2,903 May-01-2020, 02:26 PM
    Thread: SMTPlib help
Post: RE: SMTPlib help

(Apr-27-2020, 11:08 PM)Larz60+ Wrote: it looks as though your connection is not working. there are probably other exceptions that aren't being shown. change your exception routine to: except Except...
tpolim008 General Coding Help 4 3,788 Apr-27-2020, 11:11 PM
    Thread: SMTPlib help
Post: RE: SMTPlib help

(Apr-27-2020, 10:56 PM)Larz60+ Wrote: Please post the complete, unaltered error traceback. It contains valuable information, showing what leads up to the actual error. Hello please Here is the error...
tpolim008 General Coding Help 4 3,788 Apr-27-2020, 11:01 PM
    Thread: SMTPlib help
Post: SMTPlib help

Hello, I'm stuck at this point and looking for some help. I am trying to get the text file that my script creates, then email that out as an attached file. I keep getting an error "ERROR (421, b'4.3....
tpolim008 General Coding Help 4 3,788 Apr-27-2020, 07:07 PM
    Thread: Error 13 permission
Post: RE: Error 13 permission

(Apr-09-2020, 06:18 PM)ibreeden Wrote: (Apr-09-2020, 05:49 PM)tpolim008 Wrote: The folder in which Im putting the output text into has a permissions of 7777 so anyone can read and write to itI thi...
tpolim008 General Coding Help 2 3,463 Apr-09-2020, 06:22 PM
    Thread: Error 13 permission
Post: Error 13 permission

Hello, Im slowly getting into the game of python and learning its much strict than other languages. Im running into an issue with my script Im working on where when I try to write the file im gettin...
tpolim008 General Coding Help 2 3,463 Apr-09-2020, 05:49 PM
    Thread: Print/write to file function
Post: RE: Print/write to file function

(Apr-01-2020, 04:57 PM)deanhystad Wrote: Ooops! I missed sys.stdout = open(filename.strftime("%d %B %Y")+".txt", "w"). Even has a file extension. Hmmm, oh well. So what isn't working? Is the fi...
tpolim008 General Coding Help 4 2,750 Apr-01-2020, 07:59 PM
    Thread: Print/write to file function
Post: RE: Print/write to file function

(Apr-01-2020, 03:43 PM)deanhystad Wrote: To use sys.stdout you need to import the sys package, but you have no need to call sys.stdout.close(). Next google "Python print to file" and you will learn...
tpolim008 General Coding Help 4 2,750 Apr-01-2020, 04:23 PM
    Thread: Print/write to file function
Post: Print/write to file function

Hello All can someone help me with the below code. Ive been working to try and get the output printed to a file with the datetime but each route Ive tried I seem to get an error can anyone point out w...
tpolim008 General Coding Help 4 2,750 Apr-01-2020, 03:33 PM
    Thread: Print date, Time and output to file
Post: RE: Print date, Time and output to file

(Mar-26-2020, 03:14 PM)ndc85430 Wrote: For reading and writing files, see e.g. section 7 of the tutorial: https://docs.python.org/3/tutorial/input...ting-files. As far as emailing goes, if you have ...
tpolim008 General Coding Help 3 2,322 Mar-26-2020, 06:29 PM
    Thread: Print date, Time and output to file
Post: Print date, Time and output to file

Hello, I am very green to python and currently wrote a code to look at a DB, look at the row for a date-time of the last backup. I'm now trying to figure out how to print the data to text file, print ...
tpolim008 General Coding Help 3 2,322 Mar-26-2020, 03:13 PM

User Panel Messages

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