Posted: Mon May 28, 2012 9:18 pm
Joined: 28 May 2012
Posts: 2
Hi,
I would use SQLAlchemy ORM in python scripts Blender.
Is it possible to include this module in ".blend"?
Thanks
Posted: Tue May 29, 2012 1:11 am
Joined: 05 Aug 2003
Posts: 3491
You need modules built for Python 3.2. Make sure they are in your PYTHONPATH or add to sys.path and import as usual.
Posted: Tue May 29, 2012 1:37 pm
Joined: 28 May 2012
Posts: 2
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.
Posted: Sat Jun 02, 2012 11:00 am
Joined: 07 Nov 2010
Posts: 544
Why is it “not practical” just to type “apt-get install python3-sqlalchemy”?
Posted: Sat Jun 02, 2012 4:42 pm
Joined: 05 Aug 2003
Posts: 3491
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.
Posted: Sun Jul 22, 2012 8:32 pm
Joined: 06 Jul 2012
Posts: 2
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/index.html#making-environments-relocatable