scoofy / wxStocks

wxStocks: Write your own screens, ranking functions, and even high level analysis algorithms to help you review portfolio. Newest release allow SEC XBRL data and more or import your own data by writing your own custom importers. wxStocks is currently in python 3 with a ZODB database.
198 stars 54 forks source link

ubuntu 14.04 Install issue #2

Closed kncshw closed 6 years ago

kncshw commented 7 years ago

Hi scoofy,

I got the following issue when installing:

Startup may take a few moments... File: wxStocks_db_functions.py Line 156:

Loading GLOBAL_STOCK_DICT: this may take a couple of minutes.If this is your first time opening wxStocks, please ignore the following exception, otherwise, your previously saved data may have been deleted.

File: wxStocks_db_functions.py Line 166: [Errno 2] No such file or directory: 'wxStocks_data/all_stocks_dict.pk'

File: wxStocks_db_functions.py Line 186: Loading GLOBAL_ATTRIBUTE_SET If this is your first time opening wxStocks, please ignore the following exception, otherwise, your previously saved data may have been deleted. File: wxStocks_db_functions.py Line 194: [Errno 2] No such file or directory: 'wxStocks_data/all_attributes_set.pk' File: wxStocks_db_functions.py Line 54: Loading GLOBAL_TICKER_LIST File: wxStocks_db_functions.py Line 58: [Errno 2] No such file or directory: 'wxStocks_data/ticker.pk' File: wxStocks_db_functions.py Line 503: config.ENCRYPTION_POSSIBLE False File: wxStocks_db_functions.py Line 510: attempting to load 0 possible portfolios File: wxStocks_db_functions.py Line 207: Loading GLOBAL_STOCK_SCREEN_DICT File: wxStocks_db_functions.py Line 211: [Errno 2] No such file or directory: 'wxStocks_data/screen_dict.pk' File: wxStocks_db_functions.py Line 257: Loading SCREEN_NAME_AND_TIME_CREATED_TUPLE_LIST File: wxStocks_db_functions.py Line 261: [Errno 2] No such file or directory: 'wxStocks_data/screen_names_and_times_tuple_list.pk' Traceback (most recent call last): File "wxStocks.py", line 92, in main() File "wxStocks.py", line 90, in main gui.MainFrame().Show() File "/home/kaini/fintech/wxStocks/wxStocks_modules/wxStocks_gui.py", line 50, in init self.welcome_page = WelcomePage(self.notebook) File "/home/kaini/fintech/wxStocks/wxStocks_modules/wxStocks_gui.py", line 239, in init self.encryption_hardness_field.SetHint("default = 8") AttributeError: 'TextCtrl' object has no attribute 'SetHint'

It appears that wx installed by ubuntu apt-get is not compatible. Any known solution on Ubuntu/Debian?

scoofy commented 7 years ago

Interesting indeed. I've had it working fine on debian mint before and it works fine...

So... here's the thing... "Set Hint" is completely arbitrary. You can simply comment out any line that has a "Set Hint" function call. The are really just for show.

As far is fixing it for Ubuntu... I just got back from the bar, and i'm currently very busy with getting my apartment rented, but i could definitely get back to you about fixing it properly in like... i'd say June 5th or so... here are the docs for phoenix: https://wxpython.org/Phoenix/docs/html/wx.TextEntry.html#wx.TextEntry.SetHint

it's a really strange error, i'll definitely look into it later.

scoofy commented 7 years ago

Ahh... it looks like i may need to change that TextCtrl to a TextEntry

kncshw commented 7 years ago

Thank you for the quick comment! I will try to comment the line and let you know the outcome!

scoofy commented 6 years ago

With the new version, this should no longer be relevant. I've moved all the database stuff over to ZODB!!!