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'

Submitted by:  Larry Evans <cppljevans>
Submitted on:  Sat 12 Sep 2015 07:05:12 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: Mark Jenkins <markjenkins>
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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
  • -unavailable- added by markjenkins (Posted a comment)
  • -unavailable- added by cppljevans (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 13 Sep 2015 04:50:21 AM UTCmarkjenkinsAssigned toNone=>markjenkins
    Sat 12 Sep 2015 07:05:12 PM UTCcppljevansAttached File-=>Added work.log, #34864
      Attached File-=>Added download.log, #34865

    Back to the top


    Powered by Savane 3.1-cleanup1