Skip to content

AttributeError: module 'fa2.fa2util' has no attribute 'Node' #32

Open
@dmitra79

Description

@dmitra79

Hello,

I am getting an error below when computing positions on an rdflib graph Any ideas?

  File "c:\home\projects\SE\ConfigurationKG\se-configuration-kg\code\configuration2graph.py", line 217, in <module>
    graph_data=compute_layout(G)
  File "c:\home\projects\SE\ConfigurationKG\se-configuration-kg\code\configuration2graph.py", line 173, in compute_layout
    pos = ForceAtlas2(scalingRatio=2.0, gravity=1.0).forceatlas2_networkx_layout(G,iterations=100)  #.to_undirected(),
  File "c:\Users\dfradkin\Anaconda3\envs\kg2\lib\site-packages\fa2-0.3.5-py3.8-win-amd64.egg\fa2\forceatlas2.py", line 250, in forceatlas2_networkx_layout
  File "c:\Users\dfradkin\Anaconda3\envs\kg2\lib\site-packages\fa2-0.3.5-py3.8-win-amd64.egg\fa2\forceatlas2.py", line 162, in forceatlas2 
  File "c:\Users\dfradkin\Anaconda3\envs\kg2\lib\site-packages\fa2-0.3.5-py3.8-win-amd64.egg\fa2\forceatlas2.py", line 103, in init        
AttributeError: module 'fa2.fa2util' has no attribute 'Node'

I have python 3.8 and:
networkx 2.4 py_1
rdflib 5.0.0 py38h32f6830_3 conda-forge

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions