Сделал exe, и в от что в логах.
Щас покажу лог, а ниже что код что соответствует ошибкам:
Лог1:
Traceback (most recent call last):
File “logging\__init__.pyo”, line 842, in emit
File “logging\__init__.pyo”, line 719, in format
File “logging\__init__.pyo”, line 464, in format
File “logging\__init__.pyo”, line 328, in getMessage
TypeError: not all arguments converted during string formatting
Logged from file db_info.pyo, line 293
Код1:
except Exception, info: logging.error(u'list of connections not loaded: ', str(info))
Traceback (most recent call last):
File “DataQuality.py”, line 175, in ConnectDB
File “connections_manager.pyo”, line 60, in __init__
File “wx\_controls.pyo”, line 494, in __init__
TypeError: Sequence of strings expected.
Код2:
items = self.wc.take_cons() self.connections_choice = wx.Choice( self.m_panel2, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, items, 0 )
items = self.wc.take_cons() print type(items) print items print type(items[0])
<type ‘list’>Лог3:
('localhost')
<type ‘str’>
Traceback (most recent call last):
File “help.pyo”, line 142, in OnSelChanged
File “wx\html.pyo”, line 1004, in SetPage
File “encodings\cp1251.pyo”, line 15, in decode
UnicodeDecodeError: ‘charmap’ codec can't decode byte 0x98 in position 22: character maps to <undefined>
Код3:
def CreateHTMLCtrl(self, parent=None): if not parent: parent = self ctrl = wx.html.HtmlWindow(parent, -1, wx.DefaultPosition, wx.Size(400, 300)) return ctrl
self.html_page = self.CreateHTMLCtrl(self.m_panel3)
self.html_page.SetPage(connect2_text) # ругается на эту строчку
connect2_text = \ '<b>"Data Quality" -- Информация для соединения с базой данных</b>' \ '<div><br />' \ '<div>' \
При запуске из Aptana Studio - все ок, при запуске: python DataQuality.py – все ок.
Помогите пожалуйста. Или же подскажите, может есть менее косячный способ чтобы получить exe?
