SQLALchemy

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Drekorig
Posts: 2
Joined: Mon May 28, 2012 5:43 pm

SQLALchemy

Postby Drekorig » Mon May 28, 2012 10:18 pm

Hi,

I would use SQLAlchemy ORM in python scripts Blender.
Is it possible to include this module in ".blend"?

Thanks

stiv
Posts: 3646
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Postby stiv » Tue May 29, 2012 2:11 am

You need modules built for Python 3.2. Make sure they are in your PYTHONPATH or add to sys.path and import as usual.

Drekorig
Posts: 2
Joined: Mon May 28, 2012 5:43 pm

Postby Drekorig » Tue May 29, 2012 2:37 pm

Thanks

Yes, that's what I did, but if I use my ".blend" on another computer I need reinstall the module SQLAlchemy and is not practical.

ldo
Posts: 544
Joined: Sun Nov 07, 2010 11:30 pm
Location: Hamilton, New Zealand

Postby ldo » Sat Jun 02, 2012 12:00 pm

Why is it “not practical” just to type “apt-get install python3-sqlalchemy”?

stiv
Posts: 3646
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Postby stiv » Sat Jun 02, 2012 5:42 pm

Running a package manager implies root access on the machine.

Modules do not need to be installed system-wide. They only need to be in your PYTHONPATH.

kmatzen
Posts: 2
Joined: Sat Jul 07, 2012 12:16 am

Postby kmatzen » Sun Jul 22, 2012 9:32 pm

If you would like a set of python packages that are portable across machines without reinstallation, I would look into virtualenv and in particular this feature. If coupled with a repository, this sounds like an easy solution, assuming you don't use Windows. http://www.virtualenv.org/en/latest/ind ... elocatable


Return to “Python”

Who is online

Users browsing this forum: Google [Bot] and 2 guests