Urban Urban Jungle forum

 FAQFAQ   PretražnikPretražnik   ČlanstvoČlanstvo   Korisničke grupeKorisničke grupe   RegistracijaRegistracija 
 ProfilProfil   Privatne porukePrivatne poruke   LoginLogin 

The world of Python and module importing

Započnite novu temu   Odgovorite na temu    Urban Jungle forum - Početna -> Razno
Prethodna tema :: Sljedeća tema  
Autor/ica Poruka
Jesse Voss

Pridružen/a: 05. 05. 2018.
Postovi: 27

PostPostano: sri svi 16, 2018 12:43 pm    Naslov: The world of Python and module importing Citirajte i odgovorite


Now I'm not usually one to get annoyed about the length of time it takes to figure something out, afterall this is touchdesigner, however I can't help but get frustrated at python third party modules and how I'm supposed to get them working.
Lets begin at this weeks challenge, simple enough, getting twitters 1.1 api to work with touchdesigner via python.
So I found 2 useful modules, tweepy and python twitter tools. I installed them into my python 3.2 directory and they work perfectly within my python in c:/. Great, now I just need to change the Environment variables to use with touch...except that these were .egg files so I exported the .egg files (as they're just zips in disguise) into folders and attempted to set PYTHONPATH again...no joy.
As a final last ditch attempt I decided to go against all advice and bring the modules into my site-packages folder within the TouchDesigner installation folder. Hey Ho now I was no longer getting module does not exist errors, my modules were imported and working as expected.
So it turns out the new twitter API demands SSL, it's not a recommendation but an actual requirement of the 1.1 api which I'm beginning to dislike more and more. So I get a no ssl module error which I find odd as I can see the ssl module file in my touchdesigner installation and after a bit of googling it turns out that you need to compile python with ssl support...which leads to the final problem...I can't just go recompiling the python installation in my touchdesigner directory?
So now I'm pretty stumped and generally annoyed at python in general for being such a pain and I will revert to a more traditional method of using some wondrous php and websockets or osc to solve my problem.
Has anybody else had this issue?
Are there any tips for importing python modules?
What modules have you managed to get working in touchdesigner? Maybe we should compile a list with a bit of documentation on known problems etc?

Any help will be apprecited.

I didn't find the right solution from the Internet.

Video content agency

Thank you.
Korisnički profil Pošaljite privatnu poruku
Prethodni postovi:   
Započnite novu temu   Odgovorite na temu    Urban Jungle forum - Početna -> Razno Vremenska zona: GMT + 01:00.
Stranica 1 / 1.

Ne možete otvarati nove teme.
Ne možete odgovarati na postove.
Ne možete uređivati vaše postove.
Ne možete izbrisati vaše postove.
Ne možete glasovati u anketama.

Powered by phpBB © 2001, 2002 phpBB Group
HR (Cro) by Ančica Sečan