Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant install AtomSpaceExplorer #130

Closed
manisabri opened this issue Jun 23, 2020 · 10 comments
Closed

Cant install AtomSpaceExplorer #130

manisabri opened this issue Jun 23, 2020 · 10 comments

Comments

@manisabri
Copy link
Contributor

It uses semantic-ui and it can not be installed with any recent version of gulp and node and many other packages. I worked with this node package before, it's abandoned and has issues ... ( kind of a nightmare tbh)

@ngeiswei
Copy link
Member

ngeiswei commented Jun 24, 2020

I assume it's obsolete but I'm not sure. There's a new atomspace visualizer, @Habush might know about it.

@Habush
Copy link

Habush commented Jun 24, 2020

@manisabri I tried to install it and ran into the same issues you mentioned. The way I fixed it is,

  1. Clean the node_modules cache
  2. In package.json semantic-ui with fomantic-ui (it is the new port semantic ui by the community) and run npm install
  3. Run npm rebuild node-sass (this might not be needed on your side, I just ran to an issue that said node-sass isn't supported on my platform, so rebuilding it fixed the error)

After the above steps, I was able to run and use the service with npm start

@manisabri
Copy link
Contributor Author

No joy,
Can you send your package.json and package-lock.json files?

@manisabri
Copy link
Contributor Author

manisabri commented Jun 24, 2020

never mind I made it work just don't ask me how! (though the server doesn't look functional or AtomSpaceExplorer is not fetching the right url, donno)

@linas
Copy link
Member

linas commented Jun 24, 2020

can someone update some README with instructions on what to do? and/or push any required changes?

@Habush
Copy link

Habush commented Jun 24, 2020

@manisabri can you share the issue you are having? or It'd be great if you shared the steps you took to resolve the issue

@manisabri
Copy link
Contributor Author

manisabri commented Jun 24, 2020

um, well it's kina working now, except drop down menus that have something to do with jquery.
The first thing was this one
https://stackoverflow.com/questions/55921442/how-to-fix-referenceerror-primordials-is-not-defined-in-node?page=2&tab=oldest#tab-top
then I removed semantic.js from angular-cli.json for another error and updated typescript to a recent version for some other one.
then I had to change some imports in python from flask.ext to flask_ext
I think at some point Ichanged the node version back and forth for some stuff to compile
Sorry I can't be more specific about it ....
Is there gonna be a new atomspace visualizer around? if not I might spend more time on it

@linas
Copy link
Member

linas commented Jun 24, 2020

then I had to change

Why don't you send a pull request? maybe partly-fixed is better than nothing at all...

a new atomspace visualizer

I don't know. On very rare occasions, I use "gephi" and a highly customized atomspace exporter to export the stuff I'm interested in.

Writing a "generic" atomspace exporter (for gephi or graphviz or whatever) is hard because different datasets use different styles of encoding. They change over time .. the genome datases that MOZI uses are being changed to version 2 right now. My datasets are completely different because they encode language, not genetics... visualizing either as "pure atoms" would be boring and confusing and cluttered.

It would be nice if someone wrote an exporter, where they user could supply the definition of a vertex, and the definition of an edge, and then export to gephi or whatever. For example, to find all edges, one might have:

(cog-execute! (Get (VariableList (Variable "x") (Variable "y"))
   (Stuff (things (Variable "x") (morestuff (Variable "y") morethings)))

which then returns all x-y pairs that are the edges of whatever data you want to visualize. (BTW, If you don't regcognize Get, then you must do the tutorials here: https://github.com/opencog/atomspace/tree/master/examples )

This might be a useful practice exercise... and could grow into a real tool.... habush could hook you up with genomic datasets to practice with...

@manisabri
Copy link
Contributor Author

manisabri commented Jun 24, 2020

sounds good. I'll try to polish things up a bit more in following pull request(s) ...

@linas
Copy link
Member

linas commented Jul 8, 2020

Closing because I assume #131 fixes remaining issues.

@linas linas closed this as completed Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants