bugBo-Keep - Bugs: bug #45946, python setup.py test gives...

 
 

bug #45946: python setup.py test gives multiple AttributeError: 'NoneType' object has no attribute 'get_instance'

Submitter:  Larry Evans <cppljevans>
Submitted:  Sat 12 Sep 2015 07:05:12 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  markjenkins
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 13 Sep 2015 04:50:21 AM UTC, comment #1: 

Hi Larry,

It's nice to hear you're interested in BoKeep.

I don't think there is anything wrong with how you have done your installation given the number of test cases that do work. All the test cases that fail are related to the GnuCash backend plugin.

I think the problem is that we at ParIT have not kept BoKeep up to date with the latest releases of GnuCash and GNU/Linux distribution releases that are packaging GnuCash and the python bindings.

This isn't to say we've abandoned BoKeep -- we still use it to run our Manitoba payroll at ParIT every two weeks. Updating BoKeep to run with the latest GnuCash and in particular the versions of GnuCash shipped by distro releases is on our TODO list -- we want to be able to run BoKeep on top of a current stack as well.

Unfortunately we're slammed with our other work right now and can't get to this until at least mid-November. You may have to ping me again in mid-November to bring my attention back to this.

Fixing this will probably require changes to the gnucash_backend plugin to change how it interacts with the GnuCash python bindings in order to be compatible with current versions.

You might find that BoKeep is still interesting to play with if you use one of the other backend plugins we have. At present, the other backends are not very practical like the GnuCash one is, but by using one of the other back-ends you can at least play with the front-ends (distinct user interfaces for narrow types of data entry).

Are any of our existing front-end plugins of interest, or are you perhaps thinking of building your own? Given that the rest of the test suite passes, there's a good chance you could immediately dig in to the front-end plugin side of BoKeep.

Mark Jenkins <markjenkins>
Group administrator
Sat 12 Sep 2015 07:05:12 PM UTC, original submission:  

My OS is:

$ uname -a
Linux lje-OptiPlex-9020 3.13.0-63-generic #103-Ubuntu SMP Fri Aug 14 21:42:59 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

I downloaded today:

http://nongnu.askapache.com//bokeep/bokeep-1.2.1.tar.gz

Unzipped that and followed instructions in:

/home/evansl/dwnlds/bokeep/bokeep-1.2.1/README_install_GNU_slash_Linux.txt

ending with:

evansl@lje-OptiPlex-9020:~/dwnlds/bokeep/bokeep-1.2.1$ python setup.py test

The last few lines of the output of that was:

  File "/home/evansl/dwnlds/bokeep/bokeep-1.2.1/src/bokeep/backend_plugins/gnucash_backend.py", line 102, in account_from_path
    if account.get_instance() == None:
AttributeError: 'NoneType' object has no attribute 'get_instance'

----------------------------------------------------------------------
Ran 295 tests in 255.518s

FAILED (errors=22)
evansl@lje-OptiPlex-9020:~/dwnlds/bokeep/bokeep-1.2.1$


Should I do something to correct this?

-regards
Larry

BTW, I've attached a more complete record of what was
done.


Larry Evans <cppljevans>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #34864:  work.log added by cppljevans (71KiB - text/x-log)
file #34865:  download.log added by cppljevans (376B - text/x-log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by markjenkins (Posted a comment)
  • -email is unavailable- added by cppljevans (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-09-13 markjenkins Assigned toNone markjenkins
    2015-09-12 cppljevans Attached File- Added work.log, #34864
        Attached File- Added download.log, #34865

    Back to the top

    Powered by Savane 3.13-461b.
    Corresponding source code