Giter VIP home page Giter VIP logo

Comments (7)

palash1992 avatar palash1992 commented on July 18, 2024

I have now created a "tests" folder with required files. The issue should now be resolved

from gem.

rougier avatar rougier commented on July 18, 2024

Just updated, now I get (OSX / Python 3.7):

Using TensorFlow backend.
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.6 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.7
  return f(*args, **kwds)
Traceback (most recent call last):
  File "test_sbm.py", line 34, in <module>
    open('data/sbm_node_labels.pickle', 'rb')
UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position 512: ordinal not in range(128)

from gem.

palash1992 avatar palash1992 commented on July 18, 2024

This was caused due to Pickle incompatibility between Python 2 and 3. I have fixed the issue.

from gem.

rougier avatar rougier commented on July 18, 2024

Now I get:

Using TensorFlow backend.
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.6 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.7
  return f(*args, **kwds)
Traceback (most recent call last):
  File "test_sbm.py", line 35, in <module>
    open('data/sbm_node_labels.pickle', 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'data/sbm_node_labels.pickle'

from gem.

palash1992 avatar palash1992 commented on July 18, 2024

Should be fixed now. Had renamed the sbm_node_labels for testing the Pickle incompatibility

from gem.

rougier avatar rougier commented on July 18, 2024

Another error now (see below). I think you should test your software starting from a more neutral environment (for example using a virtual environment and cloning your own repo as a "standard" user). This would hep spotting simple errors. I'm leaving on conference for one week and won't be able to test it during that time. You thus have plenty of time to test it more thoroughly.

Using TensorFlow backend.
/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.6 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.7
  return f(*args, **kwds)
Traceback (most recent call last):
  File "test_sbm.py", line 57, in <module>
    print ('Num nodes: %d, num edges: %d' % (G.number_of_nodes(), G.number_of_edges()))
  File "/usr/local/lib/python3.7/site-packages/networkx/classes/graph.py", line 780, in number_of_nodes
    return len(self._node)
AttributeError: 'DiGraph' object has no attribute '_node'

from gem.

palash1992 avatar palash1992 commented on July 18, 2024

The above error is due to Networkx version incompatibility. You need to install a Networkx version < 2. In the setup, I have modified the networkx version to 1.11. I hope this clears all the issues.

I will clone the repository on some systems to find possible incompatibilities.

from gem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.