Comments (5)
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.
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.
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.
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.
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)
- Syntax error with Python 2.6
- Python 3.4 and inspect HOT 1
- DeprecationWarning with latest setuptools
- ImportError: No module named alpha2 when calling babelfish.Language.fromietf('EN') HOT 4
- [Suggestion] Maybe OpenSubtitlesConverter should move to subliminal? HOT 1
- Language.fromname('Pashto') fails with LanguageReverseError
- Language.fromname('Divehi') fails with LanguageReverseError
- Language.fromname('Greek') fails with LanguageReverseError
- newbie question HOT 1
- Another newbie question
- DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated HOT 1
- Add dut to nld as alternative
- PyPi release outdated HOT 8
- Immutability issues
- [0.6.0] No tests in pypi tarball HOT 2
- Add new converters which uses country demonyms to convert languages HOT 3
- IETF region support HOT 2
- pkg_resources is deprecated HOT 3
- Installation problem HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babelfish.