Git Product home page Git Product logo

Comments (5)

Toilal avatar Toilal commented on June 29, 2024

Same problem with this code, and with any python3 version. It's working on python 2.7

>>> from babelfish.language import Language
>>> lang = Language("fra")
>>> t = type(lang)
>>> hasattr(t, 'anyattr')

from babelfish.

zentracker avatar zentracker commented on June 29, 2024

Still getting what I believe is a related issue using Subliminal. Despite using the current master branch of Babelfish, if I do pickle.dumps on the output of 'subliminal.video.scan_video', when I pickle.loads the string object, I get:
File "/usr/local/lib/python2.7/dist-packages/babelfish/language.py", line 139, in getattr
alpha3 = self.alpha3
RuntimeError: maximum recursion depth exceeded while calling a Python object

from babelfish.

Toilal avatar Toilal commented on June 29, 2024

Are you really sure this is current master of babelfish ? When i read File "/usr/local/lib/python2.7/dist-packages/babelfish/language.py", i'm quite sure you are using actual version from pipy (0.5.1) which is not fixed. You'll have to wait for next babelfish release.

from babelfish.

zentracker avatar zentracker commented on June 29, 2024

Thanks for your comment. I installed it through the below commands - also I checked directly the local code and it does seem to have the commits fixing the issue:

sudo pip install git+https://github.com/Diaoul/babelfish.git@master
Downloading/unpacking git+https://github.com/Diaoul/babelfish.git@master
Cloning https://github.com/Diaoul/babelfish.git (to master) to /tmp/pip-9Yp0b9-build
Running setup.py (path:/tmp/pip-9Yp0b9-build/setup.py) egg_info for package from git+https://github.com/Diaoul/babelfish.git@master

Installing collected packages: babelfish
Running setup.py install for babelfish

Successfully installed babelfish
Cleaning up...

from babelfish.

wackou avatar wackou commented on June 29, 2024

I just released 0.5.2 on pypi which has the fix from Toilal. Could you check if that works for you?

from babelfish.

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.