AttributeError: Dialog instance has no attribute 'set_background_title' #711

Closed
opened 2014-08-30 16:53:10 +02:00 by atoponce · 6 comments
atoponce commented 2014-08-30 16:53:10 +02:00 (Migrated from github.com)

When running the curses interface, I get the following Traceback when hitting the [Enter] key under the "Your Identities" tab to create a new address:

Loading existing config files from /home/aaron/.config/PyBitmessage/
An Exception occurred within isOurOperatingSystemLimitedToHavingVeryFewHalfOpenConnections: invalid version number '#1 SMP Debian 3.14.2-1 (2014-04-28)'
Running with curses
Loading inbox messages...
Loading sent messages...
Loading address book...
Traceback (most recent call last):
  File "./src/bitmessagemain.py", line 272, in <module>
    mainprogram.start()
  File "./src/bitmessagemain.py", line 243, in start
    bitmessagecurses.runwrapper()
  File "/home/aaron/src/bitmessage/src/bitmessagecurses/__init__.py", line 984, in runwrapper
    curses.wrapper(run)
  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/home/aaron/src/bitmessage/src/bitmessagecurses/__init__.py", line 1030, in run
    handlech(stdscr.getch(), stdscr)
  File "/home/aaron/src/bitmessage/src/bitmessagecurses/__init__.py", line 383, in handlech
    d.set_background_title("Your Identities Dialog Box")
AttributeError: Dialog instance has no attribute 'set_background_title'

Information about my operating system:

$ cat /etc/issue
Debian GNU/Linux jessie/sid \n \l
$ uname -a
Linux pinyin 3.14-1-amd64 #1 SMP Debian 3.14.2-1 (2014-04-28) x86_64 GNU/Linux
$ dpkg -l python
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                 Version         Architecture    Description
+++-====================-===============-===============-=============================================
ii  python               2.7.8-1         amd64           interactive high-level object-oriented langua
$ dpkg -l python-dialog
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                 Version         Architecture    Description
+++-====================-===============-===============-=============================================
ii  python-dialog        2.7-1           all             Python module for making simple Text/Console-
When running the curses interface, I get the following Traceback when hitting the [Enter] key under the "Your Identities" tab to create a new address: ``` Loading existing config files from /home/aaron/.config/PyBitmessage/ An Exception occurred within isOurOperatingSystemLimitedToHavingVeryFewHalfOpenConnections: invalid version number '#1 SMP Debian 3.14.2-1 (2014-04-28)' Running with curses Loading inbox messages... Loading sent messages... Loading address book... Traceback (most recent call last): File "./src/bitmessagemain.py", line 272, in <module> mainprogram.start() File "./src/bitmessagemain.py", line 243, in start bitmessagecurses.runwrapper() File "/home/aaron/src/bitmessage/src/bitmessagecurses/__init__.py", line 984, in runwrapper curses.wrapper(run) File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper return func(stdscr, *args, **kwds) File "/home/aaron/src/bitmessage/src/bitmessagecurses/__init__.py", line 1030, in run handlech(stdscr.getch(), stdscr) File "/home/aaron/src/bitmessage/src/bitmessagecurses/__init__.py", line 383, in handlech d.set_background_title("Your Identities Dialog Box") AttributeError: Dialog instance has no attribute 'set_background_title' ``` Information about my operating system: ``` $ cat /etc/issue Debian GNU/Linux jessie/sid \n \l $ uname -a Linux pinyin 3.14-1-amd64 #1 SMP Debian 3.14.2-1 (2014-04-28) x86_64 GNU/Linux $ dpkg -l python Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-====================-===============-===============-============================================= ii python 2.7.8-1 amd64 interactive high-level object-oriented langua $ dpkg -l python-dialog Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-====================-===============-===============-============================================= ii python-dialog 2.7-1 all Python module for making simple Text/Console- ```
upwhere commented 2014-08-30 17:21:01 +02:00 (Migrated from github.com)

I am expericencing the exact same problem.

~>: pacman -Qi python2
Name           : python2
Version        : 2.7.8-1
Description    : A high-level scripting language
Architecture   : x86_64
[…]
Build Date     : Tue 01 Jul 2014 17:42:53 UTC
[…]

This happens both in uxterm as in urxvt, my WM is the 'awesome' WM where windows may lack some kind of title bar or something that may be causing this problem.

I am expericencing the exact same problem. ``` ~>: pacman -Qi python2 Name : python2 Version : 2.7.8-1 Description : A high-level scripting language Architecture : x86_64 […] Build Date : Tue 01 Jul 2014 17:42:53 UTC […] ``` This happens both in `uxterm` as in `urxvt`, my WM is [the 'awesome' WM](https://awesome.naquadah.org) where windows may lack some kind of title bar or something that may be causing this problem.
atoponce commented 2014-08-30 18:01:45 +02:00 (Migrated from github.com)

If the terminal emulator is critical, I am attempting to run it behind tmux(1). I have not tested other terminals.

If the terminal emulator is critical, I am attempting to run it behind tmux(1). I have not tested other terminals.
atoponce commented 2014-11-20 15:02:32 +01:00 (Migrated from github.com)

Update. Removing "python-dialog" from Debian and installing "python2-pythondialog" from pip(1) gives a new error:

$ ./src/bitmessagemain.py -c
Loading existing config files from /home/aaron/.config/PyBitmessage/
An Exception occurred within isOurOperatingSystemLimitedToHavingVeryFewHalfOpenConnections: invalid version number '#1 SMP Debian 3.16.7-2 (2014-11-06)'
Running with curses
Loading inbox messages...
Loading sent messages...
Loading address book...
Traceback (most recent call last):
  File "./src/bitmessagemain.py", line 272, in <module>
    mainprogram.start()
  File "./src/bitmessagemain.py", line 243, in start
    bitmessagecurses.runwrapper()
  File "/home/aaron/src/bitmessage/src/bitmessagecurses/__init__.py", line 984, in runwrapper
    curses.wrapper(run)
  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/home/aaron/src/bitmessage/src/bitmessagecurses/__init__.py", line 1030, in run
    handlech(stdscr.getch(), stdscr)
  File "/home/aaron/src/bitmessage/src/bitmessagecurses/__init__.py", line 264, in handlech
    r, t = d.menu("Do what with \""+inbox[inboxcur][5]+"\" from \""+inbox[inboxcur][3]+"\"?",
IndexError: list index out of range
Update. Removing "python-dialog" from Debian and installing "python2-pythondialog" from pip(1) gives a new error: ``` $ ./src/bitmessagemain.py -c Loading existing config files from /home/aaron/.config/PyBitmessage/ An Exception occurred within isOurOperatingSystemLimitedToHavingVeryFewHalfOpenConnections: invalid version number '#1 SMP Debian 3.16.7-2 (2014-11-06)' Running with curses Loading inbox messages... Loading sent messages... Loading address book... Traceback (most recent call last): File "./src/bitmessagemain.py", line 272, in <module> mainprogram.start() File "./src/bitmessagemain.py", line 243, in start bitmessagecurses.runwrapper() File "/home/aaron/src/bitmessage/src/bitmessagecurses/__init__.py", line 984, in runwrapper curses.wrapper(run) File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper return func(stdscr, *args, **kwds) File "/home/aaron/src/bitmessage/src/bitmessagecurses/__init__.py", line 1030, in run handlech(stdscr.getch(), stdscr) File "/home/aaron/src/bitmessage/src/bitmessagecurses/__init__.py", line 264, in handlech r, t = d.menu("Do what with \""+inbox[inboxcur][5]+"\" from \""+inbox[inboxcur][3]+"\"?", IndexError: list index out of range ```
PeterSurda commented 2015-10-18 13:10:16 +02:00 (Migrated from github.com)

I was unable to get the curses interface running at all.

I was unable to get the curses interface running at all.
PeterSurda commented 2016-06-28 19:29:25 +02:00 (Migrated from github.com)

I got another question regarding curses, so I looked at it. Once I got around some of the most problematic problems that require a newer version of pythondialog, I see that it's in an unfinished state and barely works at all. I will probably scrap it, and instead add SMTP/IMAP interface so that you can integrate it with a terminal email client like mutt. That will give you a better user experience, more flexibility and is a better use of my time.

I got another question regarding curses, so I looked at it. Once I got around some of the most problematic problems that require a newer version of pythondialog, I see that it's in an unfinished state and barely works at all. I will probably scrap it, and instead add SMTP/IMAP interface so that you can integrate it with a terminal email client like mutt. That will give you a better user experience, more flexibility and is a better use of my time.
PeterSurda commented 2016-06-29 18:15:22 +02:00 (Migrated from github.com)

I forgot, during the mailchuck updates, I added a cli for the API, you can use that instead, at least that works fine:

python src/bitmessagecli.py

Don't forget to turn on API access and daemon mode.

I forgot, during the mailchuck updates, I added a cli for the API, you can use that instead, at least that works fine: ``` python src/bitmessagecli.py ``` Don't forget to turn on API access and daemon mode.
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Bitmessage/PyBitmessage-2024-11-30#711
No description provided.