SkBlaz / py3plex

Py3plex - A multilayer complex network visualization and analysis library in python3
BSD 3-Clause "New" or "Revised" License
159 stars 37 forks source link

error issue #1

Closed seemarani1307 closed 6 years ago

seemarani1307 commented 6 years ago

whenever i run the code given , i got this error. \lib\site-packages\networkx\classes\function.py", line 655, in set_node_attributes G.nodes[n][name] = values

TypeError: unhashable type: 'dict' please help.

SkBlaz commented 6 years ago

Dear seemarani, the library has just been updated, could you please give it another try? Further, the syntax you specify is used in the old version of networkx. I would suggest the following:

  1. download the new version of the library
  2. python3 setup.py install
  3. try if example visualization works --- if it does, then the problem lied in library, otherwise, please update networkx (The version needed for this library is specified in the new readme)
seemarani1307 commented 6 years ago

Hello Sir, Thank you very much for your kind reply. I will try and revert back. Thanks and Regards,Seema Rani

Sent from Yahoo Mail on Android

On Wed, 20 Jun 2018 at 10:21, SkBlaznotifications@github.com wrote:
Dear seemarani, the library has just been updated, could you please give it another try? Further, the syntax you specify is used in the old version of networkx. I would suggest the following:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

SkBlaz commented 6 years ago

If that doesn't work, could you provide a minimal network example you are dealing with?

seemarani1307 commented 6 years ago

ok sir...i will..

seemarani1307 commented 6 years ago

hello sir, i am just running example /Py3Plex/Py3Plex-master/examples/example_multilayer_visualization.py", line 2, in from py3plex.visualization.multilayer import *

ModuleNotFoundError: No module named 'py3plex.visualization but i am facing the error above. i installed setup. but the above error is shown when i run the example code given.

SkBlaz commented 6 years ago

How did you install the library? To install, go to this repository's origin folder and run:

python3 setup.py install

So, you must be located in e.g. user/py3plex, in the same folder where setup.py is located.

On Wed, Jun 20, 2018 at 8:51 AM, seemarani1307 notifications@github.com wrote:

hello sir, i am just running example /Py3Plex/Py3Plex-master/examples/example_multilayer_visualization.py", line 2, in from py3plex.visualization.multilayer import *

ModuleNotFoundError: No module named 'py3plex.visualization but i am facing the error above. i installed setup. but the above error is shown when i run the example code given.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SkBlaz/Py3Plex/issues/1#issuecomment-398643278, or mute the thread https://github.com/notifications/unsubscribe-auth/AJkiRDetyZUuBobu1y2z5wDwssVoLL3tks5t-fDagaJpZM4UkJAj .

You can also try "pip install ."

seemarani1307 commented 6 years ago

i did the same but with python setup.py install instead of python3 setup.py as python3 showing error

SkBlaz commented 6 years ago

And it worked? The library is written for python3, and as such not compatible with python2..

I am working towards uploading it to pip repository, but in the meantime, you ought to install it using: cd ./Py3plex; python3 setup.py install.

I tested this on a clean ubuntu 16 install and it works.

seemarani1307 commented 6 years ago

I am working on python3 only sir. But python3 setup.py install is not working for me

Sent from Yahoo Mail on Android

On Wed, 20 Jun 2018 at 14:10, SkBlaznotifications@github.com wrote:
And it worked? The library is written for python3, and as such not compatible with python2..

I am working towards uploading it to pip repository, but in the meantime, you ought to install it using: cd ./Py3plex; python3 setup.py install.

I tested this on a clean ubuntu 16 install and it works.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

SkBlaz commented 6 years ago

How exactly are you running the command?

On Wed, Jun 20, 2018 at 10:50 AM, seemarani1307 notifications@github.com wrote:

I am working on python3 only sir. But python3 setup.py install is not working for me

Sent from Yahoo Mail on Android

On Wed, 20 Jun 2018 at 14:10, SkBlaznotifications@github.com wrote: And it worked? The library is written for python3, and as such not compatible with python2..

I am working towards uploading it to pip repository, but in the meantime, you ought to install it using: cd ./Py3plex; python3 setup.py install.

I tested this on a clean ubuntu 16 install and it works.

— You are receiving this because you authored the thread.

Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SkBlaz/Py3Plex/issues/1#issuecomment-398674242, or mute the thread https://github.com/notifications/unsubscribe-auth/AJkiREw2Qu6sZTU1_eDtHWBF2Hqp2Cmeks5t-gzjgaJpZM4UkJAj .

SkBlaz commented 6 years ago

I packaged it, you can also try

pip3 install py3plex
seemarani1307 commented 6 years ago

sir is it necessary to include 3? as with 3 the command show error

SkBlaz commented 6 years ago

So the library installs with py2?

seemarani1307 commented 6 years ago

its working now....thank you very much..