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

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

Open
dmitra79 opened this issue Nov 17, 2020 · 3 comments
Open

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

dmitra79 opened this issue Nov 17, 2020 · 3 comments

Comments

@dmitra79
Copy link

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

@jacquesfize
Copy link

Hi,
I got the same error using Anaconda on MacOS. To answer this issue, I used the dedicated repository on Conda Forge : https://anaconda.org/conda-forge/fa2

Hope it helps !

@wubaosheng
Copy link

I have the same question

@tangguangjue
Copy link

Hi, I got the same error using Anaconda on MacOS. To answer this issue, I used the dedicated repository on Conda Forge : https://anaconda.org/conda-forge/fa2

I am using the latest version of FA2 module, but when I run the example code, the error still appears
AttributeError:module 'fa2.fa2util' has no attribute 'Node'
Excuse me, is there any solution?

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