Giter VIP home page Giter VIP logo

Comments (1)

ajhetherington avatar ajhetherington commented on July 16, 2024 1

This is quite a bit later but I hope this can help anyone else coming across this, I was able to work around as follows. This is on python3.12, but should be similar for other versions:

❯ python3.12 -m venv venv12
source venv%                                                                                                                                       
❯ source venv12/bin/activate
❯ pip install --no-cache-dir cython setuptools wheel
Collecting cython
  Downloading Cython-3.0.10-py2.py3-none-any.whl.metadata (3.2 kB)
Collecting setuptools
  Downloading setuptools-69.2.0-py3-none-any.whl.metadata (6.3 kB)
Collecting wheel
  Downloading wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
Downloading Cython-3.0.10-py2.py3-none-any.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 4.4 MB/s eta 0:00:00
Downloading setuptools-69.2.0-py3-none-any.whl (821 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 821.5/821.5 kB 4.7 MB/s eta 0:00:00
Downloading wheel-0.43.0-py3-none-any.whl (65 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.8/65.8 kB 4.2 MB/s eta 0:00:00
Installing collected packages: wheel, setuptools, cython
Successfully installed cython-3.0.10 setuptools-69.2.0 wheel-0.43.0

[notice] A new release of pip is available: 23.3.1 -> 24.0
[notice] To update, run: pip install --upgrade pip

Note that --no-cache-dir is required so that cython can be imported (see https://github.com/Martinsos/edlib/blob/master/bindings/python/setup.py)

❯ EDLIB_USE_CYTHON=1 pip install --no-cache-dir edlib
Collecting edlib
  Downloading edlib-1.3.9.tar.gz (91 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 91.4/91.4 kB 2.7 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: edlib
  Building wheel for edlib (setup.py) ... done
  Created wheel for edlib: filename=edlib-1.3.9-cp312-cp312-macosx_14_0_arm64.whl size=65999 sha256=65ab2d018008666195662e09865ec06702ed5bb9870284259375edd78e20bf0a
  Stored in directory: /private/var/folders/f5/z80qgkk14wggp90g64zb60840000gn/T/pip-ephem-wheel-cache-fmjmzex0/wheels/79/8f/1f/3af9518754b7327229d01c80162e887a7adf171b5c0dc74bcc
Successfully built edlib
Installing collected packages: edlib
Successfully installed edlib-1.3.9

[notice] A new release of pip is available: 23.3.1 -> 24.0
[notice] To update, run: pip install --upgrade pip
❯ python
Python 3.12.1 (main, Dec  7 2023, 20:45:44) [Clang 15.0.0 (clang-1500.0.40.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import edlib
>>> edlib.align("telephone", "elephant")
{'editDistance': 3, 'alphabetLength': 8, 'locations': [(None, 7)], 'cigar': None}

from edlib.

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.