Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

start-up crash #41

Closed
ffunenga opened this issue Oct 2, 2012 · 3 comments
Closed

start-up crash #41

ffunenga opened this issue Oct 2, 2012 · 3 comments

Comments

@ffunenga
Copy link

ffunenga commented Oct 2, 2012

This is the error I get:

ffunenga@asus:~/documents/others/electrum$ electrum
Install zbar package to enable QR scans
Connected to electrum.novit.ro:50001
Traceback (most recent call last):
File "/usr/local/bin/electrum", line 191, in
found = gui.restore_or_create()
File "/usr/local/lib/python2.7/dist-packages/electrum/gui_lite.py", line 105, in restore_or_create
return qt_gui_object.restore_or_create()
File "/usr/local/lib/python2.7/dist-packages/electrum/gui_qt.py", line 1513, in restore_or_create
if not ElectrumWindow.network_dialog( wallet, parent=None ): return False
File "/usr/local/lib/python2.7/dist-packages/electrum/gui_qt.py", line 1406, in network_dialog
proxy_mode.setCurrentIndex(proxy_mode.findText(str(interface.proxy["mode"]).upper()))
TypeError: 'NoneType' object has no attribute 'getitem'

I've got ubuntu 12.04 in a 64bits machine. I can send more info if needed

uname -a:
Linux asus 3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Filipe Funenga
Lisbon PT

@ghost
Copy link

ghost commented Oct 2, 2012

This is caused by a config file not having the default proxy options. But it should have them if my changes were fully brought in. I think that some mistake was made in recent merging of my proxy and other changes. I don't know what was done but I'm thinking I have to check everything again to make sure my final pull requests are what are actually in master branch now. It's starting to sound like everything wasn't pulled in fully. I'll have a look now and report back.

@ghost
Copy link

ghost commented Oct 2, 2012

Actually the correct simple_config is present. The start up crash is caused by the last commit that thomasv just did (f3ff9b5). He has altered the cmd line options logic such that by default a options.proxy value of None is set if no cmd line is given. But None causes the crash since the code was designed to bypass cmd line options by using any default set in the config file. The default value for no cmd line option should be "none" not None. This is because the proxy mode is checked against a list of modes for showing in the Network dialog. My code actually did function fine for cases when no cmd line option is passed. It used whatever value was set in config file but allowed a cmd line option to over ride temporarily. Now the cmd line code checks if an option is set but defaults to None which means any config file setting is never picked up by options and passed into the interface startup. I believe my code worked fine before this change. Thx.

@ecdsa
Copy link
Member

ecdsa commented Oct 14, 2012

I believe this is fixed now. I refactored all the config files this week.

@ecdsa ecdsa closed this as completed Oct 14, 2012
ch4ot1c added a commit to ch4ot1c/electrum that referenced this issue May 1, 2018
marceloneil pushed a commit to marceloneil/electrum that referenced this issue Mar 28, 2019
… new change

address

- This ignores the user's "use change address" setting (if they have it
  off we use change addresses anyway).  Ths setting must be ignored
  as not using new unique change addresses violates the whole point of
  CashShuffle.
- Unique address is generated and reserved for wallet use and it
  shouldn't interfere with the shuffle threads' blocks of addresses.
Toporin pushed a commit to Toporin/electrum-satochip that referenced this issue Feb 16, 2021
UdjinM6 pushed a commit to UdjinM6/electrum-dash that referenced this issue Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants