• DavinE

    @ccc,

    I Found this too, but i get the error: "No method found for selector "isKindOfClass:"

    The Name of the Wifi Works as well for me

    posted in Pythonista read more
  • DavinE

    Hello Guys,

    I have a Question, is it Possible That Pythonista can Return the current wifi Name ? Or ssid Nummer to Check wich wifi is connected ?

    Thanks for reply ✌️

    posted in Pythonista read more
  • DavinE

    @cvp, Thanks for this topic!
    now i need to find another way :D

    posted in Pythonista read more
  • DavinE

    Hello Guys,

    I have a Question is it possible to run the mysql dump on Pythonista ?

    i try to use this code:

    subprocess.Popen('mysqldump --user=username --password=passwd --databases mydb > test.sql')
    

    but every time i tried i get this error:

    Traceback (most recent call last):
      File "/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/UI/Test Ordner/MYSQL/mysqlRequest-CustomerEntries.py", line 139, in <module>
        mysql_data()
      File "/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/UI/Test Ordner/MYSQL/mysqlRequest-CustomerEntries.py", line 17, in __init__
        self.list_data()
      File "/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/UI/Test Ordner/MYSQL/mysqlRequest-CustomerEntries.py", line 136, in list_data
        subprocess.Popen('mysqldump --user= username --password= passwd --databases mydb > test.sql')
      File "/var/containers/Bundle/Application/2952696D-C724-455F-8983-F13D0477091A/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/subprocess.py", line 708, in __init__
        restore_signals, start_new_session)
      File "/var/containers/Bundle/Application/2952696D-C724-455F-8983-F13D0477091A/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/subprocess.py", line 1261, in _execute_child
        restore_signals, start_new_session, preexec_fn)
    PermissionError: [Errno 1] Operation not permitted
    

    or do i something wrong ?
    Thanks for your reply!

    posted in Pythonista read more
  • DavinE

    my mistake...

    my Drive Client did not work :(

    posted in Pythonista read more
  • DavinE

    @cvp,

    I have a Problem....
    my Code:

                  assets = photos.pick_asset(title='Bitte wähle deine Bilder aus', multi=True)
                    iv = ui.ImageView()
                    iv.present('fullscreen')
                    for asset in assets:
                        pil = asset.get_image(original=False)
                        iv.image = asset.get_ui_image()
                        temp = io.BytesIO()
                        pil.save(temp, format='JPEG', quality=95)
                        temp.seek(0)
                        filename = '%s%s' % (console.input_alert('Bennung des Bildes', 'Gib deinem Bild einen Namen', hide_cancel_button=False), '.JPEG')
                        self.connection_FTP.storbinary('STOR '+f'{self.subDirCustomer_Bilder}/{filename}', temp, blocksize=32768)
                    iv.close()
    

    doesn't work anymore... but i don't get an error or something...
    but i don't know why

    did you maybe see anything ?
    I tried this code and it works but now... nothing....

    posted in Pythonista read more
  • DavinE

    okay Thanks @ccc

    posted in Pythonista read more
  • DavinE

    Is it Possible to Update SQLAlchemy to 1.4.x the Version that is installed is 0.9.x.....

    posted in Pythonista read more
  • DavinE

    Hey Guys,

    i Have a question about SQLAlchemy.

    SQLAlchemy is installed but when i run this code to test it i get an error..:

    from sqlalchemy import create_engine
    engine = create_engine('postgresql://user:pass@IP:PORT/sqlalchemy')
    

    an this i get:

    Traceback (most recent call last):
      File "/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/UI/Test Ordner/test.py", line 2, in <module>
        engine = create_engine('postgresql://user:pass@IP:PORT/sqlalchemy')
      File "/var/containers/Bundle/Application/2952696D-C724-455F-8983-F13D0477091A/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/sqlalchemy/engine/__init__.py", line 347, in create_engine
        return strategy.create(*args, **kwargs)
      File "/var/containers/Bundle/Application/2952696D-C724-455F-8983-F13D0477091A/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/sqlalchemy/engine/strategies.py", line 75, in create
        dbapi = dialect_cls.dbapi(**dbapi_args)
      File "/var/containers/Bundle/Application/2952696D-C724-455F-8983-F13D0477091A/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 423, in dbapi
        import psycopg2
    ModuleNotFoundError: No module named 'psycopg2'
    

    need i to reinstall SQLAlchemy ?

    posted in Pythonista read more
  • DavinE

    @cvp said:

    @DavinE If you want a file picker, you can use this one and passing your "On my iDevice" folder, like

      file = file_picker_dialog('On your iDevice', root_dir='/private/var/mobile/Containers/Shared/AppGroup/EF3F9065-AD98-4DE3-B5DB-21170E88B77F/File Provider Storage')
    

    i take a look on this ;) ty

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!