Thread: bug plpython compile error for win32
plpython can not complie source contain \r\n characters. I made plpython function to use pgAdmin. but I could not run this function. plpython module could not compiled this function because this function's source code had \r\n characters. So, I removed \r, then I could use this function. Please fix this error. OS: windows xp PostgreSQL: PostgreSQL 8.0.0rc2 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.3.1 (mingw special 20030804-1)
Korea PostgreSQL Users' Group wrote: >plpython can not complie source contain \r\n characters. > >I made plpython function to use pgAdmin. but I could not run this function. > >plpython module could not compiled this function because this function's source code had \r\n characters. > >So, I removed \r, then I could use this function. > >Please fix this error. > >OS: windows xp >PostgreSQL: PostgreSQL 8.0.0rc2 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.3.1 (mingw special 20030804-1) > > > > Without delving at all deeply this looks like a python error - surely on Windows the interpreter should expect \r\n line endings. cheers andrew