[issue33208] Lib2to3 grammar.txt error
Lukasz <lswierzews...@gmail.com> added the comment: In fact I dont know what should I do. Can I install any module via pip to solve this problem ? On android version of python I dont have access to directory like: Lib/lib2to3/pgen2/driver.py -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33208> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33208] Lib2to3 grammar.txt error
Lukasz <lswierzews...@gmail.com> added the comment: I think this is the same problem but I want to use the script from the phone (mobile version of python) so I do not know how to solve it. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33208> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24960] Can't use lib2to3 with embeddable zip file.
Lukasz <lswierzews...@gmail.com> added the comment: I have simmilar problem but im using python 2.7 on android. So I think I cant use this solution My problem: https://bugs.python.org/issue33208 -- nosy: +Lukasz00500 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue24960> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33208] Lib2to3 grammar.txt error
Change by Lukasz <lswierzews...@gmail.com>: -- components: +IO type: -> crash versions: +Python 2.7 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33208> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33208] Lib2to3 grammar.txt error
New submission from Lukasz <lswierzews...@gmail.com>: Hello I have problem with script Im am totaly beginner in python I'm using Qpython ( python 2.7 on android) So this is my error: /data/user/0/org.qpython.qpy/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/scripts/InstaPy-master/quickstart.py" && exit ipts/InstaPy-master/quickstart.py" && exit < Traceback (most recent call last): File "/storage/emulated/0/qpython/scripts/InstaPy-master/quickstart.py", line 7, in from instapy import InstaPy File "/storage/emulated/0/qpython/scripts/InstaPy-master/instapy/__init__.py", line 2, in from .instapy import InstaPy File "/storage/emulated/0/qpython/scripts/InstaPy-master/instapy/instapy.py", line 22, in from .clarifai_util import check_image File "/storage/emulated/0/qpython/scripts/InstaPy-master/instapy/clarifai_util.py", line 3, in from clarifai.rest import ClarifaiApp, Image as ClImage File "/storage/emulated/0/qpython/lib/python2.7/site-packages/clarifai/rest/__init__.py", line 3, in from .client import ApiClient, ApiError, UserError, TokenError File "/storage/emulated/0/qpython/lib/python2.7/site-packages/clarifai/rest/client.py", line 21, in from past.builtins import basestring File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/future-0.16.0-py2.7.egg/past/__init__.py", line 88, in from past.translation import install_hooks as autotranslate File "/data/user/0/org.qpython.qpy/files/lib/python2.7/site-packages/future-0.16.0-py2.7.egg/past/translation/__init__.py", line 42, in from lib2to3.refactor import RefactoringTool File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/refactor.py", line 27, in File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/fixer_util.py", line 9, in File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/pygram.py", line 32, in File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/pgen2/driver.py", line 121, in load_grammar File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/pgen2/pgen.py", line 385, in generate_grammar File "/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/pgen2/pgen.py", line 15, in __init__ IOError: [Errno 20] Not a directory: '/data/user/0/org.qpython.qpy/files/lib/python27.zip/lib2to3/Grammar.txt' 1|dream2lte:/ $ -- messages: 314830 nosy: Lukasz00500 priority: normal severity: normal status: open title: Lib2to3 grammar.txt error ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33208> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5
Lukasz Szybalski added the comment: Hello, We are having issues usign ftplib for implicit TLS over port 990 I'm referencing a solution that states For the implicit FTP TLS/SSL(defualt port 990), our client program must build a TLS/SSL connection right after the socket is created. But python's class FTP_TLS doesn't reload the connect function from class FTP. We need to fix it: http://stackoverflow.com/questions/12164470/python-ftp-tls-connection-issue {{{ #ImplicityTLS.py from ftplib import FTP_TLS import socket import ssl class tyFTP(FTP_TLS): def __init__(self, host='', user='', passwd='', acct='', keyfile=None, certfile=None, timeout=60): FTP_TLS.__init__(self, host, user, passwd, acct, keyfile, certfile, timeout) def connect(self, host='', port=0, timeout=-999): if host != '': self.host = host if port 0: self.port = port if timeout != -999: self.timeout = timeout try: self.sock = socket.create_connection((self.host, self.port), self.timeout) self.af = self.sock.family self.sock = ssl.wrap_socket(self.sock, self.keyfile, self.certfile, ssl_version=ssl.PROTOCOL_TLSv1) self.file = self.sock.makefile('rb') self.welcome = self.getresp() except Exception as e: print e return self.welcome }}} Then from my main application I did this: {{{ from ImplicityTLS import tyFTP server = tyFTP() server.connect(host=x, port=990) server.login(user=, passwd=f) server.prot_p() }}} -- nosy: +lszyba1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16318 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19630] marshal.dump cannot write to temporary file
New submission from Lukasz Mielicki: marshal.dump yields error when temporary file is given as a second argument. import tempfile import marshal tmpfile = tempfile.TemporaryFile(mode='w+b') # TypeError: marshal.dump() 2nd arg must be file marshal.dump({}, tmpfile) -- components: Library (Lib) messages: 203125 nosy: lm1 priority: normal severity: normal status: open title: marshal.dump cannot write to temporary file type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19630 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19630] marshal.dump cannot write to temporary file
Lukasz Mielicki added the comment: I'm seeing this on Windows with Python 2.7.6 (amd64). I can write to the same file with other methods. On 17 November 2013 18:36, Gregory Salvan rep...@bugs.python.org wrote: Gregory Salvan added the comment: I can't reproduce this issue (on linux). Are you sure you've necessary rights to write to tempdir ? -- nosy: +Gregory.Salvan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19630 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19630 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19630] marshal.dump cannot write to temporary file
Lukasz Mielicki added the comment: Thank you for detailed explanation. Too bad tempfile is inherently non-portable, but I'm fine with marshal.dumps as a w/a in this case. I marshal to a temporary file to serialize input for Perforce command line client which is capable of accepting marshaled Python objects as input for some commands. Unfortunately writing directly to its stdin deadlocks (at least on Windows, where streams seems not be fully buffered). My guess is that Perforce client performs seek to end of file before reading it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19630 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1466065] base64 module ignores non-alphabet characters
Lukasz Taczuk added the comment: Could someone update the docs for python 2.7.3? This ticket is marked as closed and b64decode still silently ignores non base64 chars, but the documentation (for 2.7.3) still states that while calling b64decode A TypeError is raised if (...) or if there are non-alphabet characters present in the string.. http://docs.python.org/2.7/library/base64.html -- nosy: +ltaczuk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1466065 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2054] add ftp-tls support to ftplib - RFC 4217
Lukasz Szybalski [EMAIL PROTECTED] added the comment: Is the ftp-tls able to use certificate to connect to ftps server? I currently need to connect to state's ftps server which requires certificate to be present when authenticating. Is that option available? What is the current status of this issue? Thanks, Lucas -- nosy: +lszyba1 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2054 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com