Hi,
First of all let me thank the developers of this great project for sharing
it with everybody.
I'm writing to this list because I found a little issue. I'm running a
program with lots of dependencies and all of them work except one on tcl
which actually shouldn't be there since matplotlib uses the pyqt4 backend...
Here are the steps to reproduce the problem:
I installed pyinstaller1.5.1 (python Configure.py) in a Windows 7 machine,
and then ran:
python Makespec.py path/to/main.py
python Build.py path/to/main.spec
but when I run main.exe on the same system without having python2.7
installed, it returns:
<<
Traceback (most recent call last):
File "<string>", line 259, in <module>
File "<string>", line 254, in main
File "<string>", line 45, in __init__
File "main\build\pyi.win32\main\
outPYZ1.pyz/matplotlib.pyplot", line 343, in f
igure
File
"main\build\pyi.win32\main\outPYZ1.pyz/matplotlib.backends.backend_tkagg"
, line 80, in new_figure_manager
File "main\build\pyi.win32\main\outPYZ1.pyz/Tkinter", line 1685, in
__init__
_tkinter.TclError: Can't find a usable init.tcl in the following
directories:
C:/Users/user/AppData/Local/Temp/lib/tcl8.5
C:/pyinstaller-1.5.1/main/lib/tc
l8.5 C:/pyinstaller-1.5.1/lib/tcl8.5 C:/pyinstaller-1.5.1/main/library
C:/pyinst
aller-1.5.1/library C:/pyinstaller-1.5.1/tcl8.5.2/library
C:/tcl8.5.2/library
This probably means that Tcl wasn't installed properly.
>>
(installing python2.7, which includes tcl, solves the issue but I would
like to run it on a system without neither python2.7 nor tcl installed)
I'm including matplotlib in main.py as follows:
<<
import sys
from PyQt4.QtCore import QString
from PyQt4.QtGui import QApplication,QMainWindow,QFileDialog
from ui_mainwindow import Ui_MainWindow
import numpy
import matplotlib
matplotlib.use("Qt4Agg")
from matplotlib import pyplot
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as
FigureCanvas
from matplotlib.ticker import FuncFormatter
import win32com.client as win32
import pythoncom
import source
>>
Any ideas on how to solve this? Did anybody come across this before?
Thanks in advance
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.