• hewjet

    Thanks again JonB,

    It crashes first time, anytime, totally random.

    There are no globals, no matplotlib, no objc_util, no ImageView, no asyncio, no threading, no webview. I use webbrowser.

    I can understand that memory may need to be released but it can crash before any webbrowser call.

    Just now Pythonista crashed out to iOS after I stopped execution and while I was thumbing through the results on the console i.e. not a script problem. This seems to answer my question that Pythonista is inherently unstable.

    I am also encountering slow execution on my <1MB data txt file so MacBook could be a good investment and I have to take pot luck again in choosing a python interpreter. iCloud seeks also seem slow but that's unavoidable.

    But on researching I find the old MacBook range does not offer much faster execution and can be slower at times. Macbook M1 is faster but not by anywhere near as much as Apple is claiming and some apps need reinterpretation by Rosetta which slows it enormously.

    All this makes me wonder if re-installing pythonista would help and would it find my old files automatically

    posted in Pythonista read more
  • hewjet

    Mikael, JonB, thanks for your replies.

    As you correctly determined, my post relates to general stability of Pythonista. Is it just intermittently buggy?

    The crash happens after the scrape. I scrape in a separate script not prone to crashing so the scraped data (which is smaller than 1MB) is fixed when reading back and this is an intermittent failure! I read the resulting text file, compute from it then display stock charts. During stock chart accessing it crashes. Totally random. Good one pass, crashes out the next. The point of the crash varies too. The crash is completely out i.e. not a syntax error. Returns back to iOS. Must restart Pythonista.

    The memory requirement to display a page of Bigchart cannot be much.

    I shall check my error log.

    posted in Pythonista read more
  • hewjet

    I write code that scrapes and displays web pages, fairly standard stuff. Some of my scripts crash one minute then can run the next i.e. no obvious cause. I am thinking Pythonista may be too light weight for what I do so a MacBook may be better. Any thoughts on this? Could I find the same happening on the MacBook?

    posted in Pythonista read more
  • hewjet

    This could be general to any python API but I want to scrape data (numbers) from a betting site. Requesting an URL displays those numbers in Safari but when I inspect the HTML the data packages and their headers are not always there.

    Some websites display the top item with its header and data. Then it seems the following items follow suit but without their header or data as though there is a general element within the string that infills what is wanted. I don't actually see the data.

    Other websites hide all headers and data at all times

    I see price comparison websites that seem to get around this but how is it done?

    v

    posted in Pythonista read more
  • hewjet

    Certifi won't download and unzip

    posted in Pythonista read more
  • hewjet

    By that I mean there is no requests module on MacBook

    posted in Pythonista read more
  • hewjet

    There is no request module and no certifi module on MacBook

    posted in Pythonista read more
  • hewjet

    context=ssl.create.unverified_context() won't work. Giving:

    module 'ssl' has no attribute 'create_unverified_context'

    posted in Pythonista read more
  • hewjet

    My exact code is:

    with urllib.request.urlopen("https://asx.com.au") as response:
    cod-response.read()
    {SSL:CERTIFICATE_VERIFY_FAILED}

    I HAVE TRIED TURNING OFF FIREWALL AND SSL VARIATIONS TO NO AVAIL

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!