PyInstaller and error: 'support/loader/run'
I've a script of Python 2.6.6 under Ubuntu 10.10 and i would pass it to XP like exe. My script use wxPython and read some files jpg that are in the same directory of the script. Before to use Pyinstaller 1.4, i did: cd /source/linux python Make.py make But "make" returned this error that i didn't understand: gcc -pthread -I/usr/include -I/usr/include/python2.6 -I../common -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -DHAVE_WARNINGS -c getpath.c -o getpath.o getpath.c:40: fatal error: osdefs.h: File o directory non esistente compilation terminated. make: *** [getpath.o] Errore 1 Anyway, after this, i did also: python Config.py Then: python makespec.py -F -w MioScript.py python Build.py (il file ottenuto dal passaggio precedente) After Build.py, pyinstaller return this error: checking Analysis checking PYZ checking PKG checking EXE building because outEXE2.toc missing or bad building EXE from outEXE2.toc Traceback (most recent call last): File "Build.py", line 1160, in main(args[0], configfilename=opts.configfile) File "Build.py", line 1148, in main build(specfile) File "Build.py", line , in build execfile(spec) File "quiz/quiz.spec", line 14, in console=1 ) File "Build.py", line 663, in __init__ self.__postinit__() File "Build.py", line 196, in __postinit__ self.assemble() File "Build.py", line 748, in assemble self.copy(exe, outf) File "Build.py", line 764, in copy inf = open(fnm, 'rb') IOError: [Errno 2] No such file or directory: 'support/loader/run' Any ideas? Thank you very very much!! Alessandro Ghelfi -- http://mail.python.org/mailman/listinfo/python-list
sqlite3 and UTF-8
I try to connect a database sqlite by sqlite3, but return an error. >>> rowset = cur.fetchall() Traceback (most recent call last): File "", line 1, in rowset = cur.fetchall() OperationalError: Could not decode to UTF-8 column 'DATO' with text 'Document n°10' What's happend? thank you -- http://mail.python.org/mailman/listinfo/python-list
kinterbasdb error connection
(i'm under Ubuntu 10.10 amd64 and python 2.6 and kinterbasdb 3.2 ) I try to connect my database of firebird 2.5 by kinterbasdb. But python return this error : >>> c = kinterbasdb.connect(dsn="/media/VINACCIA.FDB",user="user",password="password",charset="UTF-8") Traceback (most recent call last): File "", line 1, in c = kinterbasdb.connect(dsn="/media/VINACCIA.FDB",user="user",password="password",charset="UTF-8") File "/usr/lib/pymodules/python2.6/kinterbasdb/__init__.py", line 435, in connect return Connection(*args, **keywords_args) File "/usr/lib/pymodules/python2.6/kinterbasdb/__init__.py", line 612, in __init__ b.dsn, b.dpb, b.dialect, timeout OperationalError: (-902, 'isc_attach_database: \n I/O error during "open" operation for file "/media/VINACCIA.FDB"\n Error while trying to open file\n Permission denied') By terminal of Ubuntu this is the permission of database: $ls -l /media/VINACCIA.FDB -rw-r--r-- 1 grappale grappale 1720320 2010-12-06 17:33 /media/VINACCIA.FDB Where am i wrong? Please. Thank you! -- http://mail.python.org/mailman/listinfo/python-list
Re: sqlite3 and UTF-8
i try this : actual_encoding = ... # whatever def decode(s): return s.decode(actual_encoding) db = sqlite3.connect(...) db.text_factory = decode but now the error is : >>> rowset = cur.fetchall() Traceback (most recent call last): File "", line 1, in rowset = cur.fetchall() File "", line 2, in decode return s.decode(enc) File "/usr/lib/python2.6/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 33: invalid start byte -- http://mail.python.org/mailman/listinfo/python-list
Re: kinterbasdb error connection
On 09/12/2010 15:17, Uwe Grauer wrote: On 12/07/2010 04:35 PM, Ale Ghelfi wrote: (i'm under Ubuntu 10.10 amd64 and python 2.6 and kinterbasdb 3.2 ) I try to connect my database of firebird 2.5 by kinterbasdb. But python return this error : You are not using the current kinterbasdb version. See: http://firebirdsql.org/index.php?op=devel&sub=python Uwe kinterbasdb 3.2.3 is the Really current version for Ubuntu 10.10 AMD64. Kinterbasdb 3.3.0 exists only for ubuntu 10.10 i386 I've check in the repository. -- http://mail.python.org/mailman/listinfo/python-list