Menu

PyKE 1.1 problem

Help
2010-03-26
2013-05-17
  • Dan Braddock

    Dan Braddock - 2010-03-26

    I installed PyKE 1.1 and tried running the family_relations example which used to run on the 1.0.4 release.
    Here is the Python Shell output:

    Python 2.6.5 (r265:79096, Mar 19 2010, 18:02:59)  on win32
    Type "copyright", "credits" or "license()" for more information.

        ****************************************************************
        Personal firewall software may warn about the connection IDLE
        makes to its subprocess using this computer's internal loopback
        interface.  This connection is not visible on any external
        interface and no data is sent to or received from the Internet.
        ****************************************************************
       
    IDLE 2.6.5      ==== No Subprocess ====
    >>>
    Traceback (most recent call last):
      File "C:\PYKE\pyke-1.1\examples\family_relations\run.py", line 46, in <module>
        from pyke import knowledge_engine, krb_traceback, goal
    ImportError: cannot import name goal
    >>>

    Please help, thanks,
    Dan

     
  • Bruce Frederiksen

    I think that you are running the family_relations example against the old 1.0.4 version of Pyke.  You can check by:

    $ python
    >>> import pyke
    >>> pyke.version
    '1.1'
    

    You can see where pyke is being imported from by:

    $ python
    >>> import pyke
    >>> pyke.__file__
    

    -Bruce

     
  • Dan Braddock

    Dan Braddock - 2010-03-26

    Thanks, Bruce…

    I found that my PYTHONPATH still referred tp PyKE-1.0.4.
    When I made that change and opened a new command window I got the  1.1 version number in response to the pyke.version command.
    I now get a situation where the" Python Shell (Not responding)" header line  followed by an error message box indicating "pythonw.exe is not responding".

    I guess I still need more help.

    By the way, is there an e-mail address that I could use to reach you for a private discussion concerning a potential PyKE application?

    Thanks again,
    Dan

     
  • Bruce Frederiksen

    Some of the family_relations examples can take a few seconds of cpu crunching (there are thousands of combinations being examined).  I'm wondering whether this is normal for pythonw and it comes back with a correct answer after you get this message?  (I'm on Linux, so have no experience with pythonw…)

    My email address is: dang <nospace> yogi <at> gmail <dot> com.

    -Bruce

     
  • Anonymous

    Anonymous - 2010-06-23

    Same problem on my system. Am I missing something obvious?

    Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
    on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import driver
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "driver.py", line 46, in <module>
        from pyke import knowledge_engine, krb_traceback, goal
    ImportError: cannot import name goal

     
  • Bruce Frederiksen

    Did you do the tests suggested in the second post here?  What were the results?

     
  • mmxgn

    mmxgn - 2010-09-20

    Same here with the '1.1.1' version.

    >>> import pyke
    >>> pyke.version
    '1.1.1'

    cannot import name: goal

    (running on linux)

     
  • mmxgn

    mmxgn - 2010-09-20

    Note: Seems that I had instaled ubuntu lucid's version, that's why it happened.
    I did complete removal from synaptic, and then rebuilt pyke with "python setup.py build && sudo python setup.py install"
    and it worked.

     

Log in to post a comment.