Git Product home page Git Product logo

Comments (4)

noxdafox avatar noxdafox commented on August 19, 2024

Hello,

can you please better describe the issue? Do you get an error message? Could you please paste the traceback?

from clipspy.

dtdannen avatar dtdannen commented on August 19, 2024

Hi yes, this is the error message:

[BLOAD2] File demo.clp is not a binary construct file.

from clipspy.

dtdannen avatar dtdannen commented on August 19, 2024

I tried to save the output of the environment after calling the load() function and it produced the following file:

(defclass MAIN::A
   (is-a USER)
   (role concrete)
   (multislot secondary-types)
   (multislot hasIssue
      (type INSTANCE-NAME)))

(defclass MAIN::B
   (is-a USER)
   (role concrete)
   (multislot secondary-types))

(defclass MAIN::C
   (is-a USER)
   (role concrete)
   (multislot secondary-types))

(defclass MAIN::D
   (is-a USER)
   (role concrete)
   (multislot connectedTo
      (type INSTANCE-NAME))
   (multislot secondary-types))

(definstances MAIN::individuals
   (temp_a of D)
   (temp_b of D))

Therefore I think there isn't really an issue - the message about it not being a binary file seems like it can be safely ignored. @noxdafox if you agree I think this issue can be closed

from clipspy.

noxdafox avatar noxdafox commented on August 19, 2024

This is an issue of current clipspy version. It combines binary and text file loading into a single load API. It first try to load the file as a binary file. If it's unable to do so, it loads it as text file.

This works fine and keeps the API simple. Nevertheless it leads to the above log line to be printed which is definitely misleading.

The new version of clipspy based on CLIPS 6.40 provides a binary extra argument to better handle loading binary files.

You can safely ignore the above error message.

from clipspy.

Related Issues (20)

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.