windows - Installing python modules in TideSDK -


i trying install external dependency python tidesdk. current module trying install redis-py.

to install tried following steps:

  1. open command prompt in regular administrative mode
  2. change directory downloaded module of redis-py
  3. provide path python module used tidesdk followed standard compile , install source command prompt. command used: "c:\program files (x8 6)\tidesdk developer\modules\python\1.3.1-beta\python.exe" setup.py install

the setup looked promising. redis-py module egg file confirmed installed both installer exited no errors , visual check on directory.

so gives? correct files installed in lib/site-packages. tidesdk gives me importerror: no module named redis. suggestions?

i solved module: simplejson. guess workaround should work module of kind.

btw, simplejson may used support json, actual version (tidesdk 1.3.1-beta) comes python 2.5 doesn't support standard json module, comes in python 2.6 (or higher).


first, path using "tidesdk developer", that's program launch , build apps. happens "tidesdk developer" built using tidesdk, structure same.

c:\program files (x8 6)\tidesdk developer\modules\python\1.3.1-beta\python.exe

the path tidesdk uses launch , compile apps inside "c:\programdata"

in case, it's:

c:\programdata\tidesdk\modules\win32\python\1.3.1-beta\python.exe

so, did, ran:

c:\programdata\tidesdk\modules\win32\python\1.3.1-beta\python.exe setup.py install

that "installs" module, installs inside "site-packages". so, when launched app got same error ("no module named simplejson"), copied module inside "site-packages" outside.

i copied from:

c:\programdata\tidesdk\modules\win32\python\1.3.1-beta\lib\site-packages\simplejson

to:

c:\programdata\tidesdk\modules\win32\python\1.3.1-beta\lib\simplejson

and that's it. worked me.

in summary: go programdata, install python , copy folder installed inside site-packages.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -