Git Product home page Git Product logo

Comments (2)

ttempe avatar ttempe commented on August 15, 2024

I've added a very dirty workaround in 0.6.0: remove /usr/lib/python2.7/dist-packages from sys.path before loading cjklib. In the next release, I'm removing anything ending in dist-packages.

It seems to work here. I hope I don't break anything else. Other modules aren't supposed to rely on a local python distribution.

from chinese-support-addon.

ospalh avatar ospalh commented on August 15, 2024

Oh dear, oh dear, oh dear.
I see no real solution apart from telling users that have installed their own sqlalchemy or cjklib to either get rid of the system-wide versions or to use virtualenv or something like that.

For example, on my 64-bit Fedora:

frento:~> locate sqlalchemy
.
.
.
/usr/lib64/python2.7/site-packages/sqlalchemy
/usr/lib64/python2.7/site-packages/sqlalchemy/__init__.py
/usr/lib64/python2.7/site-packages/sqlalchemy/__init__.pyc
/usr/lib64/python2.7/site-packages/sqlalchemy/__init__.pyo
/usr/lib64/python2.7/site-packages/sqlalchemy/connectors
/usr/lib64/python2.7/site-packages/sqlalchemy/cprocessors.so
/usr/lib64/python2.7/site-packages/sqlalchemy/cresultproxy.so
/usr/lib64/python2.7/site-packages/sqlalchemy/databases
/usr/lib64/python2.7/site-packages/sqlalchemy/dialects
.
.
.

So,

  • For some it is dist-packages, for others site-packages
  • For some it is /usr/lib/, for others /usr/lib64/
  • A lot of people use Python 2.7, but Anki in general works with Python 2.6 as well.

That looks like it will get arbitrarily nasty.

from chinese-support-addon.

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.