Git Product home page Git Product logo

pylstar's People

Contributors

gbossert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pylstar's Issues

CoffeeMachineInferer.py example is not running

Hello,
I'm running the "next" branch,
but I get error:

Server is started and listenning
Connected with 127.0.0.1:52198
5025: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5026: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5027: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5028: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5028: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5029: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5029: [ERROR] NetworkActiveKnowledgeBase:_submit_letter: a bytes-like object is required, not 'str'
5029: [ERROR] ObservationTable:__execute_query: Input and output words do not have the same size
Traceback (most recent call last):
  File "/workspaces/pylstar/src/pylstar/KnowledgeBase.py", line 113, in _resolve_word
    return self.knowledge_tree.get_output_word(word)
  File "/workspaces/pylstar/src/pylstar/KnowledgeTree.py", line 181, in get_output_word
    raise Exception("No path found")
Exception: No path found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspaces/pylstar/src/pylstar/ObservationTable.py", line 866, in __execute_query
    self.knowledge_base.resolve_query(query)
  File "/workspaces/pylstar/src/pylstar/KnowledgeBase.py", line 103, in resolve_query
    query.output_word = self._resolve_word(query.input_word)
  File "/workspaces/pylstar/src/pylstar/KnowledgeBase.py", line 123, in _resolve_word
    self.knowledge_tree.add_word(input_word = word, output_word = output)
  File "/workspaces/pylstar/src/pylstar/KnowledgeTree.py", line 220, in add_word
    raise Exception("Input and output words do not have the same size")
Exception: Input and output words do not have the same size
Stoping coffeemachine
Coffee machine process is forced to stop
Traceback (most recent call last):
  File "/workspaces/pylstar/test/src/test_pylstar/coffee_machine_example/CoffeeMachineInferer.py", line 78, in <module>
    main()
  File "/workspaces/pylstar/test/src/test_pylstar/coffee_machine_example/CoffeeMachineInferer.py", line 62, in main
    coffee_state_machine = lstar.learn()
  File "/workspaces/pylstar/src/pylstar/LSTAR.py", line 274, in learn
    self.__initialize()
  File "/workspaces/pylstar/src/pylstar/LSTAR.py", line 368, in __initialize
    self.observation_table.initialize()
  File "/workspaces/pylstar/src/pylstar/ObservationTable.py", line 87, in initialize
    self.__add_word_in_S(Word([EmptyLetter()]))
  File "/workspaces/pylstar/src/pylstar/ObservationTable.py", line 803, in __add_word_in_S
    self.__add_word_in_SA(new_word)
  File "/workspaces/pylstar/src/pylstar/ObservationTable.py", line 843, in __add_word_in_SA
    raise Exception("Query '{}' could not be queries".format(output_query))
Exception: Query 'OutputQuery(I = [Letter('REFILL_WATER'), Letter('REFILL_WATER')], O = None)' could not be queries
Connected with 127.0.0.1:52202
Connected with 127.0.0.1:52210
Connected with 127.0.0.1:52224
Connected with 127.0.0.1:52228
Connected with 127.0.0.1:52236

How to resolve the above error @gbossert ?

CoffeeMachineInferer.py example is not running

Hello,
I'm running the "next" branch,
but I get error:
Exception: Query 'OutputQuery(I = [Letter('REFILL_WATER')], O = None)' could not be queried

tnx
coffee1
coffee2

Also when running the test as you described in the readme I get error
python setup.py test

@gbossert

NetworkActiveKnowledgeBase not found

Hello, I am learning about protocol reverse engineering, thanks for your Opening source it's great! I have been learning your project for a long time. And there is one problem, when i tried to use pylstar followed the 'readme', it showed me that 'No module named pylstar.NetworkActiveKnowledgeBase', actually , i haven't found it in the source code, did you lose it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.