• Penguin Master

    @JonB thank you so much! It's working perfectly again :)

    posted in Pythonista read more
  • Penguin Master

    @JonB Update: that sadly didn't fix it. I'm getting the exact same error still. Are there any other possible solutions? Thanks

    posted in Pythonista read more
  • Penguin Master

    @ccc Thanks, but that's not the same error and besides, I'm already using dns.resolver

    posted in Pythonista read more
  • Penguin Master

    Hi, I'm trying to use PyMongo and MongoDB with Pythonista 3, but I'm getting this error:

    pymongo.errors.ServerSelectionTimeoutError: SSL handshake failed: redacted-db-shard-00-02.loevh.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749),SSL handshake failed: redacted-db-shard-00-01.loevh.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749),SSL handshake failed: redacted-db-shard-00-00.loevh.mongodb.net:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
    
    

    Ignore the redacteds, I just put those to hide the sensitive info. I know the URL is right, because I tested that exact connection URL on MongoDB (with the same code), so the issue is with Pythonista/iPadOS. Thanks in advance :)

    posted in Pythonista read more
  • Penguin Master

    @cvp that's ok :/

    posted in Pythonista read more
  • Penguin Master

    @cvp I'm not sure exactly how to do this. Can you point me in the right direction? Here's my current code

    import ui
    
    from objc_util import UIApplication
    
    subview = ui.WebView()
    
    subview.load_url("https://google.com")
    
    view = ui.View()
    
    view.add_subview(subview)
    
    view.present("fullscreen", hide_title_bar=True)

    posted in Pythonista read more
  • Penguin Master

    @cvp so I make a main view into a subview instead?

    posted in Pythonista read more
  • Penguin Master

    @DavinE thanks, but I meant the status bar. ¯_(ツ)_/¯

    posted in Pythonista read more
  • Penguin Master

    I'm making an app using pythonista, but the status bar is messing it up. How do I hide the status bar? I tried

    UIApplication.sharedApplication().statusBar().hidden = True 
    

    But is only made the app crash. What should I do to fix this? Thanks in advance

    posted in Pythonista read more
  • Penguin Master

    Hi, I set up a snippet called tick, and it doesnt work. It should replace with <|> but it doesnt work. Why is this?

    posted in Pythonista read more
  • Penguin Master

    Hello, as the title says, when I try to add folders with git on stash, i get and error:stash: <type 'exceptions.IOError'>: [Errno 21] Is a directory: '/private/var/mobile/Containers/Shared/AppGroup/0475C0C8-BA3A-4B54-8E92-14189F1C13C3/Pythonista3/Documents/spike/functions' please help me with this.Thank you!

    posted in Pythonista read more
  • Penguin Master

    Hello! I had this problem. What you need to do is add this to the top of your code:import ssl ssl.match_hostname = lambda cert, hostname: True and for the other error, just close and open the app. Hope it works for you!

    posted in Pythonista read more
  • Penguin Master

    @JonB thank you so much! It works perfectly!

    posted in Pythonista read more
  • Penguin Master

    @JonB also, the it needs to start with mongodb+srv:// or mongodb:// or it will say that it needs to be one of those

    posted in Pythonista read more
  • Penguin Master

    @JonB OK, I tried putting the host name, but it gives an error. I also tried doing mongodb:// instead of mongodb+srv:// but then it wouldnt connect. Any other ideas?

    posted in Pythonista read more
  • Penguin Master

    Hello, I'm trying to use PyMongo on Pythonista, and I got the link and all that right, but I'm getting this error:

    
    Traceback (most recent call last):
      File "/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/spike-bot 4/main.py", line 34, in <module>
        db = pymongo.MongoClient("mongodb+srv://spike-bot:password@spike-db.bpn5m.mongodb.net/spike-db?retryWrites=true&w=majority")
      File "/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/spike-bot 4/pymongo/mongo_client.py", line 641, in __init__
        connect_timeout=timeout)
      File "/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/spike-bot 4/pymongo/uri_parser.py", line 500, in parse_uri
        nodes = dns_resolver.get_hosts()
      File "/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/spike-bot 4/pymongo/srv_resolver.py", line 102, in get_hosts
        _, nodes = self._get_srv_response_and_hosts(True)
      File "/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/spike-bot 4/pymongo/srv_resolver.py", line 83, in _get_srv_response_and_hosts
        results = self._resolve_uri(encapsulate_errors)
      File "/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/spike-bot 4/pymongo/srv_resolver.py", line 79, in _resolve_uri
        raise ConfigurationError(str(exc))
    pymongo.errors.ConfigurationError: Resolver configuration could not be read or specified no nameservers.
    
    

    thanks

    posted in Pythonista read more
  • Penguin Master

    @JonB I can't thank you enough, I got Pythonista 3 mainly for this and now it works!!!

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!