Skip to content

Python2 on iPad #105

@Nokiand

Description

@Nokiand
Can’t run PYthon2, some options look fine (—help, -V, and -v).  'iPad 64 ARM'

cli $
cli $ cat a.py
print 'from command line python2'
cli $ python2 -v a.py
#installing zipimport hook
import zipimport # builtin
#installed zipimport hook
#zipimport: found 2636 names in /private/var/containers/Bundle/Application/C95F6A82-4ADD-408A-BFDC-99065B764105/LibTerm.app/python37.zip
import zlib # builtin
#zipimport: zlib available
File "/private/var/containers/Bundle/Application/C95F6A82-4ADD-408A-BFDC-99065B764105/LibTerm.app/python37.zip/site.py", line 177
file=sys.stderr)
^
SyntaxError: invalid syntax
#clear builtin._
#clear sys.path
#clear sys.argv
#clear sys.ps1
#clear sys.ps2
#clear sys.exitfunc
#clear sys.exc_type
#clear sys.exc_value
#clear sys.exc_traceback
#clear sys.last_type
#clear sys.last_value
#clear sys.last_traceback
#clear sys.path_hooks
#clear sys.path_importer_cache
#clear sys.meta_path
#clear sys.flags
#clear sys.float_info
#restore sys.stdin
#restore sys.stdout
#restore sys.stderr
#cleanup main
#cleanup[1] zipimport
#cleanup[1] signal
#cleanup[1] zlib
#cleanup[1] exceptions
#cleanup[1] _warnings
#cleanup sys
#cleanup builtin
: 387585 unfreed ints
cli $
cli $ cat aa.py
help=0000
cli $ python2 aa.py
File "/private/var/containers/Bundle/Application/C95F6A82-4ADD-408A-BFDC-99065B764105/LibTerm.app/python37.zip/site.py", line 177
file=sys.stderr)
^
SyntaxError: invalid syntax
cli $
Note: All from the command line of LibTerm. It appears that from restart that the program runs, if first one types in Python2 and enters the interactive mode then to quit. Next to interpret files is excellent in this order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions