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
as first line in the PythonistaFTP code.
Yes I have tried that as @cvp said.
See my last post to exactly what I do.
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:
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:
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:
[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
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.
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:
Where is the ftp server?
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.