• zzgus

    @brumm SOLVED !!!

    Thankyou
    Gus

    posted in Pythonista read more
  • zzgus

    @brumm said:

    Okay, after trying it I understand.
    In Pythonista3 the module is downloaded in site-packages and not in site-packages2. After moving the directory you should insert

    !#python2
    

    as first line in the PythonistaFTP code.

    Yes I have tried that as @cvp said.
    See my last post to exactly what I do.

    Thankyou
    Gus

    posted in Pythonista read more
  • zzgus

    Sure I'm doing something wrong as it is my first incursion in programing.
    I have made a simple program for my kids to practice the multiplication tables.
    I don't want to re-type the code again in my iphone and ipad.

    I'm gona try to explain what I do:

    For what I understood from @omz there's a script "PythonistaFTP.py" that starts an FTP server (on ipad/iphone) where I can connect from my MAC.

    1.- Go to PythonistaFTP.py on https://gist.github.com/omz/1aec8a66a5d5d19a36ab
    2.- Press the RAW button to only see the code.
    3.- Copy the code
    4.- Go to Pythonista and new Empty Script
    5.- Paste the code
    6.- As @cvp said I force to run under python2 inserting a first line on the code with this #!python2
    7.- Run de code and get this error:
    Downloading pyftpdlib...
    Importerror: No module named pyftpdlib.authorizers

    After that tried converting code to 3 with Pythonista build in function "Python 2 to 3" and re-run code:

    Downloading pyftpdlib...
    [Errno 17] File exists: 'site-packages/pyftpdlib'

    After that I end up with a new folder "pyftpdlib-1.4.0"

    That's all I have :-)
    Any help will be greatly appreciated
    Gus

    posted in Pythonista read more
  • zzgus

    @ccc Basically when I run it gives this error:
    ImportError: No module named 'pyftpdlib'.

    Thankyou
    Gus

    posted in Pythonista read more
  • zzgus

    @brumm said:

    You just downloaded a module.
    'Python FTP server library provides a high-level portable interface to easily write very efficient, scalable and asynchronous FTP servers with Python.'
    Maybe you're looking for an ready-to-run FTP server?

    Yes is what I understood from @omz answer

    There are various options, my current favorite is the script I've already linked to on Twitter:
    
    → PythonistaFTP.py (GitHub)
    
    It basically starts an FTP server on your device that you can then connect to from a Mac/PC.
    

    posted in Pythonista read more
  • zzgus

    Any help please?
    I don't know what I'm doing wrong but unable to get the ftp running.

    Thankyou
    Gus

    posted in Pythonista read more
  • zzgus

    Finally converted code from v2 to v3, thankyou @cvp for the trick. I see I have a new pyftpd.tar.gz file and a new folder:
    pyftpdlib-1.4.0
    -demo
    -pyftpdlib
    -pyftpdlib.egg-info
    -test
    CREDITS
    LICENSE
    make.bat
    Makefile
    MANIFEST.in
    PKG-INFO
    README.rst
    setup.cfg
    setup.oy

    Where is the ftp server?

    Thankyou
    Gus

    posted in Pythonista read more
  • zzgus

    Is there an "idiot proof guide" ?

    When I follow the GitHub link inside iphone's safari... is supposed that I must try to copy the code (with iphone built in option to copy text) and then paste inside pythonista?

    If I do that, and try to run the code, it starts to show errors, like "()" after print, etc.

    I have also tried another thread with workflow involved without luck.

    Any help will be greatly appreciated.
    Gus

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!