Bonjour,
j'ai un programme python que je voudrai distribuer et je voudrai que le code ne soit pas accessible/visible par la personne utilisant le programme. Je voudrai aussi que la personne n'est rien de particulier à faire avant de pouvoir utiliser le programme. J'ai donc pensé à pyinstaller.
Ma première question est : ceci va-t-il bien répondre à mes attentes ?
Ensuite, j'ai un souci à l'installation de pyinstaller. Je suis sous ubuntu (64 bits). Je suis le manuel mais quand j'exécute Configure.py, ça plante.
Voila ce que cela me renvoie :
jenny:~/logiciel/pyinstaller-1.3$ python Configure.py
I: computing EXE_dependencies
E: cannot find linux-vdso.so.1 in path (needed by /usr/bin/python2.6)
I: Finding TCL/TK...
Syntax error in /home/jenny/logiciel/pyinstaller-1.3/optparse.py
('invalid syntax', ('/home/jenny/logiciel/pyinstaller-1.3/optparse.py', 6, 257, '"""\r\noptparse -- forward-compatibility wrapper for use with Python 2.2.x and\r\nearlier. If you import from \'optparse\' rather than \'optik\', your code\r\nwill work on base Python 2.3 (and later), or on earlier Pythons with\r\nOptik 1.4.1 or later installed.\r\n"""\r\n'))
Traceback (most recent call last):
File "Configure.py", line 78, in <module>
a.analyze_r('Tkinter')
File "/home/jenny/logiciel/pyinstaller-1.3/mf.py", line 299, in analyze_r
newnms = self.analyze_one(name, nm, imptyp)
File "/home/jenny/logiciel/pyinstaller-1.3/mf.py", line 333, in analyze_one
mod = self.doimport(nm, ctx, fqname)
File "/home/jenny/logiciel/pyinstaller-1.3/mf.py", line 400, in doimport
mod = director.getmod(nm)
File "/home/jenny/logiciel/pyinstaller-1.3/mf.py", line 216, in getmod
mod = owner.getmod(nm)
File "/home/jenny/logiciel/pyinstaller-1.3/mf.py", line 71, in getmod
co = compile(open(py[0], 'r').read()+'\n', py[0], 'exec')
File "/home/jenny/logiciel/pyinstaller-1.3/optparse.py", line 6
"""
^
SyntaxError: invalid syntax
Quelqu'un a une idée d'où vient le souci svp ?
merci d'avance pour votre aide
Jenny
Partager