• ihf

    Thank you! (Removing reprlib, revealed 4 more packages that must have been added by some package I installed. After they were all removed, all is working again). If that happens again, I now know where to look.

    posted in Pythonista read more
  • ihf

    Not sure how I could have caused this but I now get the following when executing python scripts that were working fine before. Can anyone suggest what I can do to fix this?

    Traceback (most recent call last):
    File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pykit_startup.py", line 51, in <module>
    main()
    File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pykit_startup.py", line 47, in main
    import importcompletion
    File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/importcompletion.py", line 26, in <module>
    import imp
    File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/imp.py", line 20, in <module>
    from importlib._bootstrap import _ERR_MSG, _exec, _load, _builtin_from_name
    File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/importlib/init.py", line 58, in <module>
    import types
    File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/types.py", line 172, in <module>
    import functools as _functools
    File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/functools.py", line 22, in <module>
    from collections import namedtuple
    File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/collections/init.py", line 33, in <module>
    from reprlib import recursive_repr as _recursive_repr
    File "/private/var/mobile/Containers/Shared/AppGroup/B86CEE4E-E4A9-4BB4-9CA7-6E13BDA2C2A4/Pythonista3/Documents/site-packages/reprlib/init.py", line 7, in <module>
    raise ImportError('This package should not be accessible on Python 3. '
    ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.

    posted in Pythonista read more
  • ihf

    Using Stash, I did pip install Roku (installs a package to control Roku devices). Install works but if I then do the following Pythonista locks up and must be restarted. I don’t think that Roku will run due to incompatibilities but I suppose it shouldn’t crash Pythonista

    from Roku import Roku
    roku = Roku(someipaddress)
    Roku.home()
    
    
    

    posted in Pythonista read more
  • ihf

    Thanks. I saw that one but I get some errors when running it:

    WARNING:DlnapDevice:DlnapDevice (ip = 192.168.3.73) init exception:
    Traceback (most recent call last):
    File "/private/var/mobile/Containers/Shared/AppGroup/B86CEE4E-E4A9-4BB4-9CA7-6E13BDA2C2A4/Pythonista3/Documents/dlna.py", line 406, in init
    raw_desc_xml = urlopen(self.location).read().decode()
    File "/var/containers/Bundle/Application/4D202F2A-AE7C-4B37-B5F1-7E2355D23E60/Pythonista3.app/Frameworks/Py2Kit.framework/pylib/urllib2.py", line 156, in urlopen
    return opener.open(url, data, timeout)
    File "/var/containers/Bundle/Application/4D202F2A-AE7C-4B37-B5F1-7E2355D23E60/Pythonista3.app/Frameworks/Py2Kit.framework/pylib/urllib2.py", line 431, in open
    response = self._open(req, data)
    File "/var/containers/Bundle/Application/4D202F2A-AE7C-4B37-B5F1-7E2355D23E60/Pythonista3.app/Frameworks/Py2Kit.framework/pylib/urllib2.py", line 449, in _open
    '_open', req)
    File "/var/containers/Bundle/Application/4D202F2A-AE7C-4B37-B5F1-7E2355D23E60/Pythonista3.app/Frameworks/Py2Kit.framework/pylib/urllib2.py", line 409, in _call_chain
    result = func(*args)
    File "/var/containers/Bundle/Application/4D202F2A-AE7C-4B37-B5F1-7E2355D23E60/Pythonista3.app/Frameworks/Py2Kit.framework/pylib/urllib2.py", line 1230, in http_open
    return self.do_open(httplib.HTTPConnection, req)
    File "/var/containers/Bundle/Application/4D202F2A-AE7C-4B37-B5F1-7E2355D23E60/Pythonista3.app/Frameworks/Py2Kit.framework/pylib/urllib2.py", line 1203, in do_open
    r = h.getresponse(buffering=True)
    File "/var/containers/Bundle/Application/4D202F2A-AE7C-4B37-B5F1-7E2355D23E60/Pythonista3.app/Frameworks/Py2Kit.framework/pylib/httplib.py", line 1137, in getresponse
    response.begin()
    File "/var/containers/Bundle/Application/4D202F2A-AE7C-4B37-B5F1-7E2355D23E60/Pythonista3.app/Frameworks/Py2Kit.framework/pylib/httplib.py", line 454, in begin
    version, status, reason = self._read_status()
    File "/var/containers/Bundle/Application/4D202F2A-AE7C-4B37-B5F1-7E2355D23E60/Pythonista3.app/Frameworks/Py2Kit.framework/pylib/httplib.py", line 410, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
    File "/var/containers/Bundle/Application/4D202F2A-AE7C-4B37-B5F1-7E2355D23E60/Pythonista3.app/Frameworks/Py2Kit.framework/pylib/socket.py", line 481, in readline
    data = self._sock.recv(self._rbufsize)
    error: [Errno 60] Operation timed out

    posted in Pythonista read more
  • ihf

    Has anyone gotten a DLNA server working under Pythonista? I'd like to use it to stream content to a Roku box that is a DLNA client.

    posted in Pythonista read more
  • ihf

    @Phuket2 First of all, thank you very much for writing this script...I think it is precisely what I need. My only problem is I am using PrettyTable which is apparently formatting for a fixed width font so I need to play with the ui view options to get things to line up. Second, while I agree completely that doing this myself is the best way to learn python I am struck by the fact that it will take me awhile to even understand your code much less write it from scratch on my own. So, thanks again for giving me working code and something to study.

    posted in Pythonista read more
  • ihf

    I would like to print to a view rather than the console so that I can control fonts size, etc. Could someone give me a snippet of code does this? I just want a full screen view that displays the text and a way to close the view.

    posted in Pythonista read more
  • ihf

    @Matteo I noticed that the plt commands in the first input file are commented out. I tried uncommenting but it did not seem to have any effect. Is plotting working?

    posted in Pythonista read more
  • ihf

    @mikael You are quite right....somehow I never noticed the Share from Pythonista only the Share to. Thanks for pointing that out.

    posted in Pythonista read more
  • ihf

    This is great, thank you. While I am dreaming, it would be wonderful if someone in the future were able to make the picker, 2-way so that individual files could be uploaded to dropbox as well as downloaded as is the case now.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!