Giter Club home page Giter Club logo

flagmatic-w's People

Contributors

b-kielak avatar jsliacan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flagmatic-w's Issues

module 'flagmatic.flag' has no attribute 'Flag'

I am trying to run flafmatic-w with Sage on my M1 mac. I am getting the following error:

➜  flagmatic-w git:(main) ✗ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.7, Release Date: 2022-09-19                     │
│ Using Python 3.10.5. Type "help()" for help.                       │
└────────────────────────────────────────────────────────────────────┘
sage: from flagmatic.all import *
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Input In [1], in <cell line: 1>()
----> 1 from flagmatic.all import *

File /private/var/tmp/sage-9.7-current/local/var/lib/sage/venv-python3.10.5/lib/python3.10/site-packages/Flagmatic-3.0-py3.10-macosx-10.9-x86_64.egg/flagmatic/all.py:33, in <module>
      1 """
      2 
      3 flagmatic 2
   (...)
     29 http://cordis.europa.eu/project/rcn/104324_en.html
     30 """
     32 from .flag import *
---> 33 from .hypergraph_flag import *
     34 from .three_graph_flag import *
     35 from .graph_flag import *

File /private/var/tmp/sage-9.7-current/local/var/lib/sage/venv-python3.10.5/lib/python3.10/site-packages/Flagmatic-3.0-py3.10-macosx-10.9-x86_64.egg/flagmatic/hypergraph_flag.py:9, in <module>
      7     mod = importlib.util.module_from_spec(spec)
      8     spec.loader.exec_module(mod)
----> 9 __bootstrap__()

File /private/var/tmp/sage-9.7-current/local/var/lib/sage/venv-python3.10.5/lib/python3.10/site-packages/Flagmatic-3.0-py3.10-macosx-10.9-x86_64.egg/flagmatic/hypergraph_flag.py:8, in __bootstrap__()
      6 spec = importlib.util.spec_from_file_location(__name__,__file__)
      7 mod = importlib.util.module_from_spec(spec)
----> 8 spec.loader.exec_module(mod)

File flagmatic/hypergraph_flag.pyx:1, in init flagmatic.hypergraph_flag()

AttributeError: module 'flagmatic.flag' has no attribute 'Flag'

Not workig with newer versions

To work with newer versions there has to be commented out or deleted

32 from sage.rings.arith import binomial
33 from sage.combinat.all import Tuples, Combinations
34 from sage.rings.all import Integer, RationalField

in file lib/python2.7/dist-packages/flagmatic/random_graph_construction.py
after instalation

as those packages are already as functions in sage.

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.