joesox / pswrdgen

Automatically exported from code.google.com/p/pswrdgen
0 stars 0 forks source link

Linux errors #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am running Gentoo with the 2.6.22 (standard) kernel.  I'm running Python
2.4.4-r4.  Both times, the script dies after the error.  Menu options 2, 3,
and 4 did not return an error when I changed the settings.

 $ python pswrdgen.py 
********************************************
*                 pswrdgen                 *
*                  0.2.0                   *
*    http://code.google.com/p/pswrdgen/    *
* ---------------------------------------- *
*   Semantic Password generator that uses  *
*    WordNet, random capitalization, and   *
*  character swapping. Prerequisite:WordNet *
********************************************
******************************
* Choose one of the below:   *
* 1) Generate password(s)    *
* 2) Change generate count   *
* 3) Change password length  *
* 4) Change all defaults     *
* 5) Display defaults        *
* 6) Exit                    *
******************************
> 1
Traceback (most recent call last):
  File "pswrdgen.py", line 186, in ?
    test()
  File "pswrdgen.py", line 183, in test
    i.menu() 
  File "pswrdgen.py", line 73, in menu
    print self.run()
  File "pswrdgen.py", line 159, in run
    curword = self.wordnetlist[random.randrange(0, len(self.wordnetlist))]
AttributeError: pswrdgen instance has no attribute 'wordnetlist'

******************************
* Choose one of the below:   *
* 1) Generate password(s)    *
* 2) Change generate count   *
* 3) Change password length  *
* 4) Change all defaults     *
* 5) Display defaults        *
* 6) Exit                    *
******************************
> 5
Traceback (most recent call last):
  File "pswrdgen.py", line 186, in ?
    test()
  File "pswrdgen.py", line 183, in test
    i.menu() 
  File "pswrdgen.py", line 81, in menu
    self.printdefaults()
  File "pswrdgen.py", line 136, in printdefaults
    print "NOUNFILE: " + self.NOUNFILE
AttributeError: pswrdgen instance has no attribute 'NOUNFILE'

Original issue reported on code.google.com by ntemple...@gmail.com on 1 Sep 2007 at 6:31

GoogleCodeExporter commented 9 years ago
What is the full path of your WordNet noun file?
It appears that self.setnounfile('/usr/local/WordNet-3.0/dict/index.noun')
was not added to the else catch in do_setup

Can you download the new 0.2.1 version and test it out? or maybe 
'/usr/local/WordNet-
3.0/dict/index.noun' is not the correct path for your platform.

Also, in your python console, can you do run these commands?...
>>> import sys
>>> print sys.platform

Can you post what the last command returns?

Thanks, Joe

Original comment by joesox on 1 Sep 2007 at 9:25

GoogleCodeExporter commented 9 years ago
It looks like the gentoo emerge puts wordnet in a different location.  My 
python path:
/usr/share/wordnet/dict/index.noun  After making the path change in both the
elif sys.platform == 'darwin': and else: location, the script worked.

Thanks Joe.

Original comment by ntemple...@gmail.com on 2 Sep 2007 at 12:50

GoogleCodeExporter commented 9 years ago
Reported fixed. QA test needed.

Original comment by joesox on 3 Sep 2007 at 2:49