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

Workspace name #3

Open
studiawan opened this issue Feb 9, 2016 · 4 comments
Open

Workspace name #3

studiawan opened this issue Feb 9, 2016 · 4 comments

Comments

@studiawan
Copy link

By default, Gephi provides us Workspace 0 for workspace name. On the other hand, GephiStreamer uses workspace0 as default. I tried to change the default workspace name from GephiStreamer using this option:
stream = streamer.Streamer(streamer.GephiWS(hostname="localhost", port=8080, workspace="Workspace 0"))

However, I got the following error: ws4py.exc.HandshakeError: Invalid response status: 400 Bad Request.

It seems we have problem in class GephiWS (streamer.py):

def _generate_url(self): return "ws://{hostname}:{port}/{workspace}?operation=updateGraph".format(hostname=self.hostname, port=self.port, workspace=self.workspace)

where workspace is set without any space character?

Thanks.

@totetmatt
Copy link
Owner

That's because, Workspace 0 is just the name in Gephi, but within the Stream plugin, it's translated to workspace0 (lower char, no space). And more generally , each Workspace X should be translated workspaceX.

@studiawan
Copy link
Author

I am using Gephi 0.8.2 and I have to rename (in menu Workspace -> Rename) the default workspace name (Workspace 0) to "workspace0" in order to run GephiStreaming successfully. Without renaming it, the error message above always shows up.

What am I missing? Thank you.

@scovetta
Copy link

Using Gephi 0.9.2, the initial workspace is "Workspace 1", so I needed to set workspace="workspace1" in order to get it to connect.

@rokdd
Copy link

rokdd commented Aug 23, 2019

Note that the title of workspace is used for identification in lowercase. When you title it in Gephi "TEST" you have to call "test" in code (Gephy 9.2 / Graphstreamer 2.0.3)

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