Python language: pollyReports not found

PollyReports was not found? See below.

#**** code start ****
import os
import ntpath as path

try:
        import sys
        #3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
        print(sys.version)
except ImportError as error:
        # Output expected ImportErrors.
        print(error.message)
except Exception as exception:
        # Output unexpected Exceptions.
        print(exception.message)

#********** this is the error ***************************
try:
        from PollyReports import *
        #from reportlab.pdfgen.canvas import Canvas
       
except ImportError as error:
        # Output expected ImportErrors.
        #No module named 'PollyReports'    (????)
        print(error)
except Exception as exception:
        # Output unexpected Exceptions.
        print(exception)
#********************************************************        

if os.path.exists(PollyReports):  #??   
        os.path(PollyReports)

You may want to add the language you are using to the title of the thread, to make it easier for people
to see from the title if they can help you

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

I added ‘python’ to title.