Murali-group / GraphSpace

The interactive graph sharing website.
http://graphspace.org
GNU General Public License v2.0
30 stars 41 forks source link

Unable to upload graph to graphspace locally - Error: add_node() takes exactly 2 arguments (3 given) #384

Closed JingVT closed 6 years ago

JingVT commented 6 years ago

When I upload the network file to graphspace locally, it shows "Error: add_node() takes exactly 2 arguments (3 given)". And when I upload the network file and style file to graphspace locally, it shows "Error: No JSON object could be decoded". Refer to #335, I re-installed and configured the elasticsearch following https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-ubuntu-14-04, however, the issue is still there.

jlaw9 commented 6 years ago

@JingVT the add_node() error sounds like a networkx error from graphspace-python which currently relies on networkx v1.11. See https://github.com/adbharadwaj/graphspace-python/issues/20 for how to fix that error.

I'm not sure how to fix the other error you're getting.

adbharadwaj commented 6 years ago

Jeff is right. You need to use networkx v1.11. This problem should not arise if you are using the virtual environment to load python packages. You need to give more details about the other error. #335 https://github.com/Murali-group/GraphSpace/issues/335 seems to have a lot of discussions.

Aditya Bharadwaj Graduate Research Assistant, Department of Computer Science, Virginia Tech adb@vt.edu

On Wed, May 16, 2018 at 9:41 AM, Jeff Law notifications@github.com wrote:

@JingVT https://github.com/JingVT the add_node() error sounds like a networkx error from graphspace-python which currently uses networkx v1.11. See adbharadwaj/graphspace-python#20 https://github.com/adbharadwaj/graphspace-python/issues/20 for how to fix that error.

I'm not sure how to fix the other error you're getting.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Murali-group/GraphSpace/issues/384#issuecomment-389522633, or mute the thread https://github.com/notifications/unsubscribe-auth/ADUeB57WARulMtv2PuAi8ZwP1wc5FrF0ks5tzCycgaJpZM4UAl54 .

JingVT commented 6 years ago

Thanks @jlaw9 @adbharadwaj. I updated the version of graphspace_python and the add_node() error is solved. But when I upload the json style file, it still shows "Error: No JSON object could be decoded".

adbharadwaj commented 6 years ago

Are you using the virtual environment? In any case create a virtual environment and load python packages from there. What json file are you uploading ?

A note. I have never encountered this error. You might to debug this.

On Thu, May 17, 2018, 11:21 PM JingVT notifications@github.com wrote:

Thanks @jlaw9 https://github.com/jlaw9 @adbharadwaj https://github.com/adbharadwaj. I updated the version of graphspace_python and the add_node() error is solved. But when I upload the json style file, it still shows "Error: No JSON object could be decoded".

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Murali-group/GraphSpace/issues/384#issuecomment-390082755, or mute the thread https://github.com/notifications/unsubscribe-auth/ADUeB_95Zt0NoV3dNcR7T82dcCBhbTKOks5tzj5MgaJpZM4UAl54 .

jlaw9 commented 6 years ago

Yeah it sounds like whatever JSON file you're trying to upload is formatted incorrectly. Maybe try using a different one?

JingVT commented 6 years ago

Thanks @jlaw9. You are right. I think the format of my JSON file was wrong. I create a new one and uploading graph works well now.