Community Questions & Answers
Compiling for Android on Python 3
I updated Python to the latest version and now I can't compile for Android anymore. Is there a way to use Python 3 or I have to go back to 2.7?
How to create python plugin for mobile titanium?
I want to create plugin for Titanium Mobile project, which will be when the application runs on the Apple simulator to create text file with launch date. 1. Create new project in Titanium Mobile 2. In the project folder to create...
django + mysql + titanium
hi i have a project with con python/django but is not works, show me the error: "Error loading MySQLdb module: No module named MySQLdb" in the inspector, please help
How to Print "Hello World" in python plugin?
Hi. I understand in the creation of plug-in python. 1. Create titanium project "Hello". 2. Create a file in \Hello\plugins\ti.hello\plugin.py ~~~ #!/usr/bin/env python # -*- coding: utf-8 -*- # import os, re print "[INFO]...
Python error while distributing to App Store
When deploying the app to the iTunes App store I get the error below. The strange thing is that this error is not shown when compiling to the simulator. Any ideas where I can start the debugging? Just updated to the latest version of Titanium Studio and...
titanium module ant build error + python error
Hi I have created one sample module project with titanium appceletor 3.0 documents while build time I'm faceing this error please provide some details about this one. $ ant Buildfile:...
Customize Titanium iOS Application Installer
I'd like to customize it so that it doesn't always install in iTunes / cause my phone to sync when I want to do a device-install... and, I'd like it not to close Simulator when the app exits... does anyone know which files I'd edit? I tried iphone.py...
Internal error while creating a titanium mobile project
Hello, I've installed titanium studio in my win xp 32bit. I've upadated the android sdk 4.1.2; 2.2 and 2.1 completly. So, when I try to create a new titanium mobile project, the next message appears: Internal error: Cannot run program "C:\Documents...
Responsive graphics in a Ti project for iOS and Android.
Hello. I'm a Production Manager that's been given a job of handling an app that is designed for iOS and Android smartphones - so please accept the fact that I am not someone who understands code.. That said, I have a challenge that I hope someone in this...
"Python: no user"?
Suddenly this morning, I started receiving an error that says "Python: no user". I haven't rebooted, and I'm logged in on the webpage I noticed the SDK has somehow changed to "loading" instead of "3.1" (iPhone), and there is...
Could I use Python code or modules to develop smartphone apps?
Hi everyone! Could I use Python code or modules to develop smartphone apps? Thank you
Unable to load app running on desktop localhost on iPhone browser over local network - configuration problem?
I am running a Python app on my desktop's localhost, and want to test it on my iPhone over my local network. I am using Win7 with the latest Titanium studio. Everything works fine on my local machine, but I cannot access it from my iPhone's browser over...
Add a python file
I would like to add a script, written in python, to be run before the application is compiled. An idea ? Titanium SDK : 2.1.0
Titanium desktop crashes
I am getting crashes from my appcelerator desktop instance for no discernable reason. System: Mac OS X Lion Titanium Desktop version: 1.2.RC4 Here's my crashlog, any help would be great: Date/Time: 2011-11-23 18:10:09.210 -0500 OS Version: ...
Python 3?
Hi, I am using the latest version of both the SDK and Studio along with xcode 4. A client has given me an app to fix for them but i get an error in titanium studio saying ~~~ interpreter: Python 3 not found ~~~ I am using a mac and have installed python...
xmlrpc call fails -> want to trigger Python-script on server
I try to call a python-method on my server via xmplrpc. I tried this: http://developer.appcelerator.com/question/1061/xmlrpc But I cant get it to work. It never finds the script. Does anyone have a working xmlrpc Script for Titanium at hand that can call...
tibuild.py doesn't work for 1.2.xxx rc4 - I would make Packing own Desktop ...
Hello guys, please don't force me! I am new for titanium. I want make packing own desktop - I have been installed Python 2.7.2 ( 32 Bit ) I have been got error:  Sorry my Operating System is Windows 7...
change the python command used by the mobilesdk / titanium studio
Hi, I'm having some trouble configuring the Android SDK on Arch Linux (64-bit). I'm using Titanium Studio 1.0.2.201107130739. The problem is simple. In my box _/usr/bin/python_ points to **Python 3.2.1**, and Titanium Studio needs Python...
Loading and xml resource via Python is not found
I have a python thread running in the background to do some backend packet parsing between different servers. All is well for my python code and I wanted to integrate it into my Titanium application. Most all is well. I dealt withe first problem with a...
Call PHP/Python from Worker
Hi there, I am evaluating Titanium Desktop for a multiplatform app. I am trying to figure out if I can call PHP or Python code scripts from a Worker execution code (in the onMessage function inside the js file specified in the createWorker method). Does...
Threads with Python in Desktop
Does Titanium Desktop support threads at all that can access the GUI? For example, I have a python program that I want to be able to update when it receives notifications. I can't seem to get it to work as it either stalls if I use a standard loop or if I...
How to import python file
Hi friends. I'm new on Titanium Platform. I'm using the free version, only for tests. And I have a question... I'm a python developer. In some tutorials, I'm seeing that the import is like this: ~~~ < script type="text/python"...
Titanium Desktop and Python libftp callback error
I try a simple interaction with Titanium SDK and Python libftp. Really simple: connect to my ftp server, choose a remote dir, upload a selected file. I found an error on set a CallBack for libftp. Here the code: import os.path import sys import...
Can I use Titanium Mobile to build iPhone app in Python or Ruby
I am trying to program an iPhone app. Can I do the same in Python or Ruby? I know desktop application can be written. But can I do the same for mobile development?
Titanium Desktop, use python 2.6
I'm on Lion, and looking at [http://developer.appcelerator.com/doc/desktop/python](http://developer.appcelerator.com/doc/desktop/python) I assume Desktop should use python 2.6, but it doesn't.. How can I build the app so that is uses the Titanium included...
Applescript execution, desktop app on Mac
Hello, I need to return opened tabs on google chrome into an array. I can obtain this by executing an applescript with this code: ~~~ tell application "Google Chrome" get URL of every tab of every window end tell ~~~ Now how I can call this...
Packaging failed with message: 'None Type' object has no attribute 'rfind'
I need your help again. I'm in windows 7 platform with sdk 1.1. When i deploy a very very simple project, deploy function it's ok (see https://api.appcelerator.net/p/pages/app_page?token=a4t5W2s5) but when i try with a less simple project with python...
Using python scripts
I have a very very basic project with just a few lines of code just to get my head around using python methods inside my project. So I have this index.html page in my Resources dir with the following...
Packaging up an existing web app with Titanium Desktop
I'm trying to package a simple python web based application as a desktop app. With PyObjC I would write a [custom NSURLProtocol handler](http://pyobjc.sourceforge.net/examples/pyobjc-framework-WebKit/PyDocURLProtocol/index.html) and evaluate the requests...
How to contribute in Titanium Mobile SDK ? Accents in projects
I've made some bugfix on unicode handling in python scripts of the titanium SDK to enable accents in projects. It's a must-have cause I'm european & projects name like "Mon Réseau" are possible in XCode project. I need to push those...
Python Question
I'm having a problem where the emulator doesn't load because it is being called with a blank in the -sdcard parameter (my user name has a space). The fix I found in the Q&A is to change users\Gary...
python pyodbc module with titanium
i discovered my project in titanium studio sdk 1.1 crash in presence of the statement "import pyodbc" into a python function (from python prompt run regular). I am in windows 7 platform and python 2.7. Do you have a solution to use pyodbc or can...
Python function from external .py - Titanium Desktop
Hi everyone, i created a simple desktop app that use a function in an external .py file. if i launch the external function using "IDLE (Python GUI)", it's run and return me the right value. If i use it from my index.html,app crash when in the...
Cannot launch simple hello-world - updated to 1.2.0 rc3
But still have smae trouble with python scripts. ~~~ Traceback (most recent call last): File "C:\Users\Smoke_Fumus\Application Data\Titanium\sdk\win32\1.2.0.RC3\tibuild.py", line 113, in <module> ...
python syntax error in new install
I installed Titanium Studio on Windows XP. It says the sdk is 1.1.0. I created Titanium Desktop project, checked PHP on. When I run that project get this error: ~~~ C:\Program Files\Python\lib\site.py:157: Warning: 'with' will become a reserved keyword in...
OS X Lion installs Python 3.2, confuses Titanium Studio - possible solution
After installing Lion I had trouble building and running Titanium Studio. I would see errors similar to this: File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/project.py", line 13 print "Usage: %s <name>...
Python error
Hello, Im trying to install this program but i have a error, the error appears in red after the klik on the emulator. C:\Program Files\Appcelerator\Titanium Studio\plugins\com.appcelerator.titanium.python.win32_1.0.0.1306357174\python\python.exe: can't...
Building Issue
I'm using 1.7.1 mobile SDK with Titanium Studio... When I'm running my app for iPhone i get this [ERROR] [ERROR] Error: Traceback (most recent call last): File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.1/iphone/builder.py", line...
Unable to use simulator after update
Hi, I'm a Indie customer & I'm having trouble with the simulator after a recent update. When I create a new mobile project & compile it from inside Studio/Developer, I get the following error message: ~~~ [INFO] One moment, building ... Traceback...
Python Script Source?
I'm having trouble with what seems like something REALLY basic. My `index.html` has... ~~~ <input type="submit" id="button" value="Click Me" \onclick="doAlert()" /> ~~~ (ignore the \ before `onclick`, it's...
Client-side python with appcelerator
It is written that appcelerator provides "script type=text/python" tag, where I can code in python. But if I include this tag in my website, how will it work? I mean, browsers can only understand javascript, so in order for it to work user must...
Desktop Using C++
Hey, So I just figured this out today and thought I would share my findings. I've been trying to figure out how to create my own c++ modules and use them within desktop for a while. Behold, python + ctypes. You can create your own dlls, or use shared dlls...
Application doesnt run - ugly code
Hi. Im beginner. My problemo is in Titanium 1.2.1. I read article from this site: http://developer.appcelerator.com/doc/desktop/get_started - step by step, but i have a problem. In section "Verify your new application" when I go to "Test...
update DOM incrementally during loop, not output all in one hit at the end...
I'm using python with jquery to output a loop to the dom using "append", but the output appears in one hit at the end, not incrementally during the loop. Here's a simple example ~~~ countdown = 10 while countdown...
Create a window using python
I am trying to create a python function that will create a window at the moment i have ~~~ from Tkinter import * def confirm (message): root = Tk() root.title='' root.geometry=("200x200") ~~~ which throws " 'module' object has no...
Python version update?
Any plans to update the version of python from 2.5/2.6? I couldn't find any roadmap info. Also, if anyone knows how to build titanium desktop with a fresher version, I'd be interested that.
Possible to integrate Python libraries into Ti mobile apps?
Hi, I'm doing the preliminary research for a new mobile app and found some nifty Python libraries that do some of the things I have in mind. I know that Titanium *uses* Python to generate code, but is it possible to integrate Python code into an...
developing with python...
On a MAC, can I use the Python 3.1 versions? Your docs seem to revolve around using 2.5 versions, and I dont think Python 3.x is backward compatible. A recent version of Python (>= 2.5) on your PATH or configured with PYTHONHOME. * In Windows,...
Possible Solution for Creating Android Project in Windows
I know a lot of people have had various reasons for not being able to create a mobile project for the Android SDK, so here was my resolution, hope this helps someone. I'm using Windows 7, and was trying to get it to work all yesterday (very frustrating)...
how to connect to database using sqlite python
I can not connect to my database using python and sqlite3 My code is right? ~~~ # -*- coding: utf-8 -*- import sqlite3 def setPesquisa(): oCliente = document.getElementById('txtCliente').value oData = document.getElementById('txtData').value ...
Showing 1-50 of 66 1 2