• victordomingos

    What kind of value (units) is this last version of the script printing out?

    posted in Pythonista read more
  • victordomingos

    I am not used to ObjC stuff. Is there an easy way to get a single barometer reading from the sensor?

    posted in Pythonista read more
  • victordomingos

    I hadn't noticed that huge performance impact by using Low Power Mode (probably for not having to run any processor intensive tasks in my Pythonista).

    Thanks for sharing!

    posted in Pythonista read more
  • victordomingos

    iPhone 4

    • iOS 7.1.2, Pythonista 1.5: 7,11 secs, 7032,32 ps/sec.
    • iOS 7.1.2, Editorial 1.2.1: 12,93 secs, 3868,43 ps/sec.

    iPhone 6 Plus

    • iOS 11.1, Pythonista 3.1, Python 3.5: 1.05s, 47748,8 ps/sec.
    • iOS 11.1, Pythonista 3.1, Python 2.7: 0,85s, 59025,5 ps/sec.

    iPhone 7

    • iOS 11.1, Pythonista 3.1, Python 3.5: 0,38s, 129871 ps/sec.
    • iOS 11.1, Pythonista 3.1, Python 2.7: 0,30s, 164172 ps/sec.
    • iOS 11.1, Editorial 1.3.3: 0,31s, 162671 ps/sec.

    posted in Pythonista read more
  • victordomingos

    Ok. Thanks. I have deleted that folder and it seems to work now.

    posted in Pythonista read more
  • victordomingos

    @JonB I only work with Python 3. Is there a way to install new modules into Python 3?

    Also, is the bundled version of Flask compatible with Python 3?

    posted in Pythonista read more
  • victordomingos

    I want to try some stuff in flask, and I am stuck right at the beginning.

    I typed this in a new file:

    from flask import Flask
    
    app = Flask(__name__)
    

    And I get this error (running as python 3.5). If I try to run it as legacy python it does not raise this syntax error.

    Traceback (most recent call last):
      File "/private/var/mobile/Containers/Shared/AppGroup/5E22383E-122A-4BBE-9677-E4A0EF63E7C3/Pythonista3/Documents/flask-experiências/app.py", line 1, in <module>
        from flask import Flask
      File "/private/var/mobile/Containers/Shared/AppGroup/5E22383E-122A-4BBE-9677-E4A0EF63E7C3/Pythonista3/Documents/site-packages/flask/__init__.py", line 21, in <module>
        from .app import Flask, Request, Response
      File "/private/var/mobile/Containers/Shared/AppGroup/5E22383E-122A-4BBE-9677-E4A0EF63E7C3/Pythonista3/Documents/site-packages/flask/app.py", line 1264
        raise exc_type, exc_value, tb
                      ^
    SyntaxError: invalid syntax
    

    I am afraid I could have messed system packages while installing modules... Not sure if I tryed to pip install flask.

    Any ideas?

    posted in Pythonista read more
  • victordomingos

    Hi there.

    I have been trying to install the module 'newspaper3k' using stash v.0.6.19, without success.

    https://github.com/codelucas/newspaper

    I even tried to install individually some of its dependencies, but no progress. When I run 'pip install newpaper3k', I get the following output:

    '
    [~/Documents]$ pip install newspaper3k

    Querying PyPI ...
    Downloading package ...
    Opening: https://pypi.python.org/packages/15/39/eeae424f95aaf4d4a4453e8bac75cc4d2139e080eefb030019d2e1cdee6c/newspaper3k-0.2.2.tar.gz
    Save as: /private/var/mobile/Containers/Data/Application/C9956F10-6446-4CA6-9B2E-DC528AF81F1E/tmp//newspaper3k-0.2.2.tar.gz (191834 bytes)
    191834 [100.00%]
    Extracting archive file ...
    Archive extracted.
    Running setup file ...
    [~/Documents]$
    '

    Then, no signs of the supposedly downloaded and installed package. Any tips?...

    Thanks in advance.

    posted in Pythonista read more
  • victordomingos

    I am right now dissecting a sample tableview in order to better understand how it works. It's starting to make some sense in my head, but I am still figuring things out.

    posted in Pythonista read more
  • victordomingos

    I really got to try Pythonista ui by coding directly in the script, instead of using the graphical designer. I am trying to find some seasy step-by-step tutorials. I have recently had a similar struggle with tkinter :-)

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!