question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: setCurrentIndex(self, int): argument 1 has unexpected type 'NoneType'

See original GitHub issue

Crash Report

This crash report was reported through the automatic crash reporting system 🤖

Traceback

  File "/Users/calin/tmp/ec/ec-slp/gui/qt/main_window.py", line 89, in onPress
    self.func()
  File "/Users/calin/tmp/ec/ec-slp/gui/qt/main_window.py", line 3092, in settings_dialog
    addr_format_combo.setCurrentIndex(self.config.get("addr_format"))

TypeError: setCurrentIndex(self, int): argument 1 has unexpected type 'NoneType'

Reporter

This issue was reported by 1 user(s):

Electron Cash Version Python Version Operating System Wallet Type Locale
3.4 3.5.5 (default, Mar 29 2018, 16:22:58)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] Darwin-17.7.0-x86_64-i386-64bit imported_privkey en_US

Additional Information

The reporting user(s) did not provide additional information.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
cculianucommented, Aug 21, 2018

This is the SLP wallet. I posted it to Dr. Venkman because I was having trouble reproducing it and it happened only once.

Steps to reproduce:

  1. Open deterministic wallet
  2. Click on settings
  3. See crash…

If you toggle the “Address format” icon, the exception goes away and never happens again.

I’m going to investigate this now as i have the code open in front of my eyes.

Otherwise this is safe to ignore…

0reactions
cculianucommented, Aug 21, 2018

I’m going to close this issue as i already fixed this on the SLP fork… and it’s noise from there.

I’ll post a PR issue referencing this issue to the crashhub github (if I can find it but I think bauerj is its master).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Argument 1 has unexpected type 'NoneType'? - Stack Overflow
I have a problem with my PyQt button action ...
Read more >
Float to int conversion in Qt and Python 3.10 on Fedora 35 beta.
TypeError : setFixedWidth(self, int): argument 1 has unexpected ... drawPixmap(self, QRect, QPixmap): argument 1 has unexpected type 'float'
Read more >
Qt and QtPy Edit window & argument 1 has unexpected type ...
I'm developing an application for my 3D printer. I only have basic knowledge in python(started three weeks ago for this purpose), ...
Read more >
issue · Issue #9934 · spyder-ide/spyder - GitHub
self.tabs.setCurrentIndex(index) TypeError: setCurrentIndex(self, int): argument 1 has unexpected type 'NoneType' ...
Read more >
PyQt5: TypeError: argument 1 has unexpected type 'NoneType'
在使用connect时,报TypeError: argument 1 has unexpected type 'NoneType'错误,解决办法:. 当用connect时,里面调用函数时,需要给他用lambda定义。
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found