Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Trouble with Name not being defined - don't know why?
Post: Trouble with Name not being defined - don't know w...

Hi Folks - I have the following code: #!/usr/bin/python # -*- coding: utf-8 -*- import requests import sys import json import datetime import smtplib import time from pprint import pprint from email...
simms7400 General Coding Help 1 1,422 Jul-01-2020, 12:58 AM
    Thread: if conditional not firing - unable to understand why
Post: RE: if conditional not firing - unable to understa...

(Oct-20-2018, 01:25 AM)stullis Wrote: I see indentation errors, which wouldn't cause your problem, but it does make me wonder if the code you've posted is indented identically. Could you please post...
simms7400 General Coding Help 7 3,378 Oct-20-2018, 10:11 AM
    Thread: if conditional not firing - unable to understand why
Post: RE: if conditional not firing - unable to understa...

Hi Folks - Yes I have printed the variables and all show correctly. That's the weird issue.
simms7400 General Coding Help 7 3,378 Oct-19-2018, 07:37 PM
    Thread: if conditional not firing - unable to understand why
Post: if conditional not firing - unable to understand w...

Hi Folks - I'm running into a weird issue where when I add two if conditionals, the portion of code following the second if conditional when true does not execute. For instance, this code works fine:...
simms7400 General Coding Help 7 3,378 Oct-19-2018, 06:29 PM
    Thread: KeyError issue - unable to find root cause
Post: RE: KeyError issue - unable to find root cause

Hi Folks - Just wanted to bring this to the top. I did some more testing and the sys argument is as follows: Quote:C:\ManageEngine\ServiceDesk\bin\..\integration\custom_schedule_reports\15301_csh.json...
simms7400 General Coding Help 13 10,312 Sep-03-2018, 11:46 PM
    Thread: KeyError issue - unable to find root cause
Post: RE: KeyError issue - unable to find root cause

This isn't printing: print(workorder_list)Am I doing it wrong?
simms7400 General Coding Help 13 10,312 Aug-30-2018, 08:33 PM
    Thread: KeyError issue - unable to find root cause
Post: RE: KeyError issue - unable to find root cause

Hi Buran - Not quite - I do not do anything manually. Within my ticketing system, there is a "Custom Schedule" module where it runs a query behinds the scenes (Sql query). Then the output of that (i...
simms7400 General Coding Help 13 10,312 Aug-30-2018, 08:20 PM
    Thread: KeyError issue - unable to find root cause
Post: RE: KeyError issue - unable to find root cause

HI Braun - Well the file can be downloaded as html, pdf or csv. However, whent he automation runs it, I'm not sure the technical name and in what format. I've attached a picture of what the file loo...
simms7400 General Coding Help 13 10,312 Aug-30-2018, 07:56 PM
    Thread: KeyError issue - unable to find root cause
Post: RE: KeyError issue - unable to find root cause

Hi THere - Will do - thank you! The function is listed inside by function.py file: # $Id$ #!/usr/bin/python # -*- coding: utf-8 -*- import smtplib from smtplib import SMTPException from os.path impo...
simms7400 General Coding Help 13 10,312 Aug-30-2018, 06:59 PM
    Thread: KeyError issue - unable to find root cause
Post: RE: KeyError issue - unable to find root cause

So i did print(req) and it's showing an invalid email address. Meaning the value for req is not a valid email address getting passed as 'emailid'. Is there a way to code in exceptions and ignore bad e...
simms7400 General Coding Help 13 10,312 Aug-30-2018, 06:19 PM
    Thread: KeyError issue - unable to find root cause
Post: RE: KeyError issue - unable to find root cause

(Aug-30-2018, 05:51 PM)j.crater Wrote: Hello, it's hard to tell what's wrong without knowing how your file looks like, or what read_file() does exactly. Nonetheless, you can try to put a print in yo...
simms7400 General Coding Help 13 10,312 Aug-30-2018, 06:07 PM
    Thread: KeyError issue - unable to find root cause
Post: KeyError issue - unable to find root cause

Hi Folks - I'm very new to python and I'm trying to muddle way through an issue I'm having but can't seem to figure it out. I have the following code: import requests import sys,os import datetime ...
simms7400 General Coding Help 13 10,312 Aug-30-2018, 05:36 PM

User Panel Messages

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