| <type 'exceptions.IOError'> | Python 2.7.13: /usr/bin/python Mon Oct 27 05:10:01 2025 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /usr/lib/cgi-bin/Slides in |
| 13 cgitb.enable() |
| 14 |
| 15 slides=Slides() |
| => 16 slides.Run() |
| 17 |
| slides = <Slides.Slides instance>, slides.Run = <bound method Slides.Run of <Slides.Slides instance>> |
| /usr/local/Python/HTML/__init__.py in Run(self=<Slides.Slides instance>) |
| 215 html=[] |
| 216 html=html+self.HTML_Header() |
| => 217 html=html+self.HTML_Body() |
| 218 html=html+self.HTML_Tailer() |
| 219 |
| html = ['<!DOCTYPE html>', '<HTML>', ['<HEAD>', [['<TITLE>', 'SmtC: Show me the Code!', '</TITLE>'], '<META content="text/html; charset=utf-8" http-equiv="Content-type">', '<META content="Prof. Dr. Ole Peter Smith, IME/UFG" name="Autor">', '<LINK href="/Slides.css" rel="stylesheet">', '<LINK href="/W3.css" rel="stylesheet">', '<LINK href="/fontawesome-free-5.3.1-web/css/all.css" rel="stylesheet">', ['<SCRIPT src="/Slides.js">', '', '</SCRIPT>'], ['<SCRIPT src="/Karru.js">', '', '</SCRIPT>'], ['<SCRIPT>', 'MathJax = {', ' tex: {', r" inlineMath: [ ['$', '$'], ['[;',';]'], ['\\(', '\\)'] ] ", ' },', ' svg: {', " fontCache: 'global'", ' }', '};', '</SCRIPT>'], ['<SCRIPT id="MathJax-script" src="https://cdn.jsd...mathjax@3/es5/tex-svg.js" type="text/javascript">', '</SCRIPT>'], ['<SCRIPT src="/Slides.js">', '', '</SCRIPT>'], ['<SCRIPT src="/Karru.js">', '', '</SCRIPT>']], '</HEAD>']], self = <Slides.Slides instance>, self.HTML_Body = <bound method Slides.HTML_Body of <Slides.Slides instance>> |
| /usr/local/Python/HTML/Body.py in HTML_Body(self=<Slides.Slides instance>) |
| 7 html=[] |
| 8 html=html+[ self.XML_Tag_Start("BODY") ] |
| => 9 html=html+[ self.HTML_Body_Matrix() ] |
| 10 html=html+[ self.XML_Tag_End("BODY") ] |
| 11 |
| html = ['<BODY>'], self = <Slides.Slides instance>, self.HTML_Body_Matrix = <bound method Slides.HTML_Body_Matrix of <Slides.Slides instance>> |
| /usr/local/Python/HTML/Body.py in HTML_Body_Matrix(self=<Slides.Slides instance>) |
| 27 rhtml=[] |
| 28 for cellmethods in self.Body_Matrix: |
| => 29 rhtml=rhtml+[ self.HTML_Body_Row(n) ] |
| 30 n+=1 |
| 31 |
| rhtml = [['<TR class="Body_Top">', [['<TD class="Body_Top Body_Left">', ['<IMG src="/icons/ufg.png">'], '</TD>'], ['<TD class="Body_Top Body_Center">', [['<DIV class="H1">', 'SmtC: Show me the Code', '</DIV>'], ['<DIV class="H2">', 'Ole Peter Smith', '</DIV>'], ['<DIV class="H3">', 'Instituto de Matemática e Estatística', '</DIV>'], ['<DIV class="H4">', 'Universidade Federal de Goiás', '</DIV>'], ['<DIV class="H5">', 'http://www.olesmith.com.br', '</DIV>']], '</TD>'], ['<TD class="Body_Top Body_Right">', ['<IMG src="/icons/ufg.png">'], '</TD>']], '</TR>']], self = <Slides.Slides instance>, self.HTML_Body_Row = <bound method Slides.HTML_Body_Row of <Slides.Slides instance>>, n = 1 |
| /usr/local/Python/HTML/Body.py in HTML_Body_Row(self=<Slides.Slides instance>, n=1) |
| 53 rhtml=[] |
| 54 for cellmethod in self.Body_Matrix[ n ]: |
| => 55 rhtml=rhtml+[ self.HTML_Body_Row_Cell(n,m) ] |
| 56 |
| 57 m+=1 |
| rhtml = [['<TD class="Body_Middle Body_Left">', ['<UL>', [['<LI>', '<A class="leftmenu" href="?Path=#" title="Show me the Code">SmtC</A>', '</LI>'], ['<LI>', '<A class="leftmenu" href="?Path=2_Palestras#" title="">Palestras</A>', '</LI>'], ['<LI>', '<A class="leftmenu" href="?Path=2_Palestras/2020#" title="Ano de 2020">2020</A>', '</LI>'], ['<LI>', r'<A class="leftmenu" href="?Path=2_Palestras/2020...ativa: $\LaTeX$ & Friends">$\LaTeX$ & Friends</A>', '</LI>']], '</UL>', '<BR>', [r'<A class="leftmenu" href="?Path=2_Palestras/2020..._Friends/04#" title="$\LaTeX$ IV">$\LaTeX$ IV</A>'], ['<UL style="list-style-type:square">', [['<LI>', '<A class="leftmenu" href="?Path=2_Palestras/2020..._Friends/04/01_Beamer#" title="Beamer">Beamer</A>', '</LI>'], ['<LI>', '<A class="leftmenu" href="?Path=2_Palestras/2020...put#" title="Input & Include">Input & Include</A>', '</LI>'], ['<LI>', [...], [...], '</LI>'], ['<LI>', '<A class="leftmenu" href="?Path=2_Palestras/2020...nment#" title="Newenvironment">Newenvironment</A>', '</LI>'], ['<LI>', '<A class="leftmenu" href="?Path=2_Palestras/2020...s/04/05_Poster#" title="Poster, Model">Poster</A>', '</LI>']], '</UL>'], ['<DIV class="Phrase">', 'Liberdade \xc3\xa9 um prato facil de comer.<BR>', 'Mas deficil de digerir<BR>', ['<DIV class="Author">', 'Jean-Jaques Rousseau', '</DIV>'], '</DIV>']], '</TD>']], self = <Slides.Slides instance>, self.HTML_Body_Row_Cell = <bound method Slides.HTML_Body_Row_Cell of <Slides.Slides instance>>, n = 1, m = 1 |
| /usr/local/Python/HTML/Body.py in HTML_Body_Row_Cell(self=<Slides.Slides instance>, n=1, m=1) |
| 70 if ( hasattr(self,cellmethod) ): |
| 71 method=getattr(self,cellmethod) |
| => 72 cellcontent=method() |
| 73 |
| 74 args={ |
| cellcontent = 'HTML_Middle_Center: undef', method = <bound method Slides.HTML_Middle_Center of <Slides.Slides instance>> |
| /usr/local/Python/HTML/Body.py in HTML_Middle_Center(self=<Slides.Slides instance>) |
| 139 |
| 140 def HTML_Middle_Center(self): |
| => 141 return self.HTML_Central_Screen() |
| 142 |
| 143 ##! |
| self = <Slides.Slides instance>, self.HTML_Central_Screen = <bound method Slides.HTML_Central_Screen of <Slides.Slides instance>> |
| /usr/local/Python/Slides/__init__.py in HTML_Central_Screen(self=<Slides.Slides instance>) |
| 190 |
| 191 html=[] |
| => 192 html=html+self.Slide_Cell(paths) |
| 193 |
| 194 html=self.HTML_Parse_Html(html,paths) |
| html = [], self = <Slides.Slides instance>, self.Slide_Cell = <bound method Slides.Slide_Cell of <Slides.Slides instance>>, paths = ['2_Palestras', '2020', '01_Latex_Friends', '04', '03_Command'] |
| /usr/local/Python/Slides/Slide/Cell/__init__.py in Slide_Cell(self=<Slides.Slides instance>, paths=['2_Palestras', '2020', '01_Latex_Friends', '04', '03_Command']) |
| 47 )+self.Slide_Cell_Contents_Parse( |
| 48 paths, |
| => 49 self.Slide_Contents_Get(paths) |
| 50 ) |
| 51 |
| self = <Slides.Slides instance>, self.Slide_Contents_Get = <bound method Slides.Slide_Contents_Get of <Slides.Slides instance>>, paths = ['2_Palestras', '2020', '01_Latex_Friends', '04', '03_Command'] |
| /usr/local/Python/Slides/Slide/Cell/__init__.py in Slide_Cell_Contents_Parse(self=<Slides.Slides instance>, paths=['2_Palestras', '2020', '01_Latex_Friends', '04', '03_Command'], contents=['<H1>Defining new commands</H1>', '', '@List [a-z].html g', '', '', '@Code Main.tex', ''], options={}) |
| 184 |
| 185 elif ( re.search('\s*@(List|Items)',contents[n], re.IGNORECASE) ): |
| => 186 contents[n]=self.Slide_Cell_List_Insert(contents[n],paths) |
| 187 |
| 188 elif ( re.search('\s*@Latex',contents[n], re.IGNORECASE) ): |
| contents = ['<H1>Defining new commands</H1>', '', '@List [a-z].html g', '', '', '@Code Main.tex', ''], n = 2, self = <Slides.Slides instance>, self.Slide_Cell_List_Insert = <bound method Slides.Slide_Cell_List_Insert of <Slides.Slides instance>>, paths = ['2_Palestras', '2020', '01_Latex_Friends', '04', '03_Command'] |
| /usr/local/Python/Slides/Slide/Cell/List.py in Slide_Cell_List_Insert(self=<Slides.Slides instance>, content='@List [a-z].html g', paths=['2_Palestras', '2020', '01_Latex_Friends', '04', '03_Command']) |
| 54 paths+[ |
| 55 rspec, |
| => 56 os.path.basename(fname) |
| 57 ] |
| 58 ) |
| global os = <module 'os' from '/usr/lib/python2.7/os.pyc'>, os.path = <module 'posixpath' from '/usr/lib/python2.7/posixpath.pyc'>, os.path.basename = <function basename>, fname = '/usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/a.html' |
| /usr/local/Python/Slides/Slide/Cell/__init__.py in Slide_Cell_Contents_Parse(self=<Slides.Slides instance>, paths=['2_Palestras', '2020', '01_Latex_Friends', '04', '03_Command'], contents=[r'@Code \def\Exclamation{Please always enjoy!}', ''], options={'id': '2_Palestras_2020_01_Latex_Friends_04_03_Command__a.html'}) |
| 174 |
| 175 elif ( re.search('\s*@Code\s+',contents[n], re.IGNORECASE) ): |
| => 176 contents[n]=self.Slide_Cell_Code_Insert(contents[n],paths) |
| 177 |
| 178 elif ( re.search('\s*@Exec\s+',contents[n], re.IGNORECASE) ): |
| contents = [r'@Code \def\Exclamation{Please always enjoy!}', ''], n = 0, self = <Slides.Slides instance>, self.Slide_Cell_Code_Insert = <bound method Slides.Slide_Cell_Code_Insert of <Slides.Slides instance>>, paths = ['2_Palestras', '2020', '01_Latex_Friends', '04', '03_Command'] |
| /usr/local/Python/Slides/Slide/Cell/Code/__init__.py in Slide_Cell_Code_Insert(self=<Slides.Slides instance>, content=[['<CODE CLASS="Code">', r'\def\Exclamation{Please always enjoy!}', '</CODE>'], '<BR>', ['<DIV id="">', 'Showing: /usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/:', '</DIV>']], paths=['2_Palestras', '2020', '01_Latex_Friends', '04', '03_Command'], options={}) |
| 276 content, |
| 277 src_file, |
| => 278 paths |
| 279 ) |
| 280 |
| paths = ['2_Palestras', '2020', '01_Latex_Friends', '04', '03_Command'] |
| /usr/local/Python/Slides/Slide/Cell/Code/__init__.py in Slide_Cell_Code_File(self=<Slides.Slides instance>, content=[['<CODE CLASS="Code">', r'\def\Exclamation{Please always enjoy!}', '</CODE>'], '<BR>', ['<DIV id="">', 'Showing: /usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/:', '</DIV>']], scriptfile='/usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/', paths=['2_Palestras', '2020', '01_Latex_Friends', '04', '03_Command'], args=[], options={}) |
| 346 ] |
| 347 |
| => 348 content=self.Slide_Cell_Code_Lines_Read(scriptfile,rscriptfile) |
| 349 |
| 350 rargs=[] |
| content = [['<CODE CLASS="Code">', r'\def\Exclamation{Please always enjoy!}', '</CODE>'], '<BR>', ['<DIV id="">', 'Showing: /usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/:', '</DIV>']], self = <Slides.Slides instance>, self.Slide_Cell_Code_Lines_Read = <bound method Slides.Slide_Cell_Code_Lines_Read of <Slides.Slides instance>>, scriptfile = '/usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/', rscriptfile = '/usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/' |
| /usr/local/Python/Slides/Slide/Cell/Code/__init__.py in Slide_Cell_Code_Lines_Read(self=<Slides.Slides instance>, scriptfile='/usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/', rscriptfile='/usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/') |
| 44 |
| 45 def Slide_Cell_Code_Lines_Read(self,scriptfile,rscriptfile): |
| => 46 contents=self.File_Read_Lines(rscriptfile) |
| 47 |
| 48 #Leading empty lines |
| contents undefined, self = <Slides.Slides instance>, self.File_Read_Lines = <bound method Slides.File_Read_Lines of <Slides.Slides instance>>, rscriptfile = '/usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/' |
| /usr/local/Python/File/__init__.py in File_Read_Lines(self=<Slides.Slides instance>, fname='/usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/') |
| 90 |
| 91 def File_Read_Lines(self,fname): |
| => 92 lines=self.File_Read(fname) |
| 93 |
| 94 return lines.split("\n") |
| lines undefined, self = <Slides.Slides instance>, self.File_Read = <bound method Slides.File_Read of <Slides.Slides instance>>, fname = '/usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/' |
| /usr/local/Python/File/__init__.py in File_Read(self=<Slides.Slides instance>, fname='/usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/') |
| 71 lines="" |
| 72 if (self.File_Exists(fname)): |
| => 73 f=open(fname,"r" ) |
| 74 lines=f.read() |
| 75 |
| f undefined, builtin open = <built-in function open>, fname = '/usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/' |
<type 'exceptions.IOError'>: [Errno 21] Is a directory: '/usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/'
args =
(21, 'Is a directory')
errno =
21
filename =
'/usr/local/Slides/2_Palestras/2020/01_Latex_Friends/04/03_Command/'
message =
''
strerror =
'Is a directory'