• rcreedon

    Hi all, I am editing a program in Notepadd++ and then mailing myself the .py file. Once open in Pythonista I seem to have issues with the indentation. In the setting i turn on soft indentiation and set tab equal to 4 spaces. Then I try to convert the indentiation, but I get the error shown below the question. When I try to run the program i get an indentation error message in a place where I wold not really expect one.

    Does anyone have any tips for how to solve this, but more importantly how to avoid these types of issues.
    Normally I would be happy to write the code directly to pythonista, but that is not as feasible to do when there are collaborators...

    Thanks

    Error: Traceback (most recent call last):
      File "/var/mobile/Applications/E4A601AC-A113-4B37-96DF-206D1D61BB3A/Pythonista.app/pythonista_reindent.py", line 111, in main
        check(arg)
      File "/var/mobile/Applications/E4A601AC-A113-4B37-96DF-206D1D61BB3A/Pythonista.app/pythonista_reindent.py", line 157, in check
        if r.run():

    posted in Pythonista read more
  • rcreedon

    Awesome!
    Perhaps some intermediate tutorials? This is very useful for me.
    R

    posted in Pythonista read more
  • rcreedon

    I am an economist working on projects in the Bangladeshi garment industry. I am looking to develop an application that can be used by people observing factory workers. The application would be used by observers to record the interactions of certain workers. I am pretty experienced with Python (mostly from a data point of view), but I have never developed an application.

    I am seeking to understand Pythonista particularly along the following dimensions:

    1. I see from the homepage here that it is possible to export code in a format that allows for the application to be standalone (i.e. not accessed through the Pythonista interface). Is this right? How easy is this? Does my iPad care that the app did not come from the app store? Could I put this app on other devices? Forgive my ignorance.

    2. Is it possible to store data generated by the user? If so, would this be done in a comma separated format? Where should one create such text files to be accessed by the application? Once created how would one read the data into the memory on restarting the application ready for manipulation etc.?

    3. When developing an application is it best to think of pythonista as a prototype environment rather than the ultimate operating environment?

    Apologies for the broad nature of these questions. Of course I don't expect anyone to reply in full, but even some keywords for me to do more research on would be really useful.

    Brief description of the application: Say there are 10 workers being observed, each worker is assigned a button. When an interaction occurs the observer presses the button relating to the worker, and a pop up appears asking the user to select from options that relate to the nature of the interaction. Possibly upon doing so further pop ups appear to ask for additional information. All data are stored, presumably in csv format, which can be accessed and modified by the app at later dates, and then the data downloaded/uploaded to dropbox at regular intervals.

    Thanks for any help you can give.

    Rory

    posted in Pythonista read more
  • rcreedon

    Thanks so much. I am going to work on this today. I have added some comments/clarifications. I guess at the risk of overloading this forum with useless info we can move our discussion there. Alternatively my email is *** If you let me know once you have read this I will delete the post to avoid python spam ;-)

    posted in Pythonista read more
  • rcreedon

    Hey guys,

    Sorry for the s#!t post earlier. I had a rethink and developed a better structure using console. I think this gives a much better idea of the sort of thing I am doing. Ultimately I could live with doing this in the console, but really to make this look like a real app rather than a computer dialogue would be much nicer.

    Any hints/tips/collaborations welcome :-)

    Thanks

    Gist link:

    https://gist.github.com/RMGProjects/3e077504d35e30bd732a

    posted in Pythonista read more
  • rcreedon

    Actually you know what, I can do better than that. I am having difficulty with the scene module, but I can write this to be more meaningful with console I think, and then possibly transfer the ideas across....

    posted in Pythonista read more
  • rcreedon

    So I don't think what I am doing is a 'serious enterprise application' which is good news. I run various projects for a research institute based at yale university out here in the wilds of Dhaka, and the teams are small. The problem is I am a social scientist not a computer scientist. I am a total noob at anything other than data management.

    So, I'm not sure how much you guys are into helping me, but I have started to write what seems to me to be the beginnings of the application. I have played around in Pythonista and mostly found it baffling. I have therefore more or less resorted to pseudo-code in an attempt to think through what I want to do, and to work out if it is achievable.

    I have only really touched on the very beginnings, for example I have not yet created the data containers. I have paused because I think the usefulness of doing this is somewhat unclear, so I wanted to get some feedback. If this psuedo-code approach is so useless as to be, well, useless, then I shall not bother and I will try a more ground up approach to learning Pythonista, if it is useful to describe what I am trying to do, and if I am able to get feedback on that, then I shall continue.

    Totally understand if this is too much to ask a forum, but as ever any help at all will be gratefully received....

    Link to gist here:

    https://gist.github.com/RMGProjects/8517742

    posted in Pythonista read more
  • rcreedon

    Thanks so much for your initial answer and the subsequent comment. I think at this point I will have to play around with pythonista for a few days, just to get a feel for what I am doing.

    If either of the users who replied to this wish to elaborate on exactly what bee's comment means for me, and the availability of Hydrogen, that would be much appreciated. I am still learning the basic way to talk about applications.

    rory

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!