[issue924806] email.Header.Header() produces wrong headers with utf8 enc.
Andreas Jung added the comment: No idea - this bug is five years old! ___ Python tracker <http://bugs.python.org/issue924806> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41529] Unable to compile 3.0b3 on Ubuntu systems: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
New submission from Andreas Jung : Building 3.9.0b3 fails on Ubuntu 19 and 20 in same way: ./python -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \ echo "generate-posix-vars failed" ; \ rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi Could not find platform independent libraries Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] Python path configuration: PYTHONHOME = (not set) PYTHONPATH = (not set) program name = './python' isolated = 0 environment = 0 user site = 1 import site = 0 sys._base_executable = '/home/ajung/src/pp.server/Python-3.9.0b3/python' sys.base_prefix = '/opt/python-3.9.0b3' sys.base_exec_prefix = '/opt/python-3.9.0b3' sys.platlibdir = 'lib' sys.executable = '/home/ajung/src/pp.server/Python-3.9.0b3/python' sys.prefix = '/opt/python-3.9.0b3' sys.exec_prefix = '/opt/python-3.9.0b3' sys.path = [ '/opt/python-3.9.0b3/lib/python39.zip', '/opt/python-3.9.0b3/lib/python3.9', '/opt/python-3.9.0b3/lib/lib-dynload', ] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' Current thread 0x7f824c25c280 (most recent call first): generate-posix-vars failed make: *** [Makefile:612: pybuilddir.txt] Error 1 -- components: Build messages: 375216 nosy: ajung priority: normal severity: normal status: open title: Unable to compile 3.0b3 on Ubuntu systems: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding versions: Python 3.9 ___ Python tracker <https://bugs.python.org/issue41529> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37361] urllib3: TypeError: unsupported operand type(s) for -=: 'Session' and 'int' in Retry class
New submission from Andreas Jung : Python 3.7.3 The following code is support to add a retry to the requests module. "total" is correctly initialized with 5 here but internally self.total becomes an instation of "Session" import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry def requests_retry_session( retries=5, backoff_factor=5, status_forcelist=(500, 502, 504), ): session = requests.Session() retry = Retry( total=retries, backoff_factor=backoff_factor, status_forcelist=status_forcelist, ) import pdb; pdb.set_trace() print(retry.total) adapter = HTTPAdapter(max_retries=retry) session.mount('http://', adapter) session.mount('https://', adapter) return session s = requests.Session() response = requests_retry_session(s).get('https://www.foo.com/') print(response.status_code) Traceback (most recent call last): File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/urllib3-1.24.2-py3.7.egg/urllib3/connectionpool.py", line 600, in urlopen chunked=chunked) File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/urllib3-1.24.2-py3.7.egg/urllib3/connectionpool.py", line 343, in _make_request self._validate_conn(conn) File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/urllib3-1.24.2-py3.7.egg/urllib3/connectionpool.py", line 839, in _validate_conn conn.connect() File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/urllib3-1.24.2-py3.7.egg/urllib3/connection.py", line 344, in connect ssl_context=context) File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/urllib3-1.24.2-py3.7.egg/urllib3/util/ssl_.py", line 347, in ssl_wrap_socket return context.wrap_socket(sock, server_hostname=server_hostname) File "/opt/python-3.7.3/lib/python3.7/ssl.py", line 412, in wrap_socket session=session File "/opt/python-3.7.3/lib/python3.7/ssl.py", line 853, in _create self.do_handshake() File "/opt/python-3.7.3/lib/python3.7/ssl.py", line 1117, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:1056) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "bin/zopepy", line 303, in exec(compile(__file__f.read(), __file__, "exec")) File "foo.py", line 28, in response = requests_retry_session(s).get('https://www.foo.com/') File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/requests-2.21.0-py3.7.egg/requests/sessions.py", line 546, in get return self.request('GET', url, **kwargs) File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/requests-2.21.0-py3.7.egg/requests/sessions.py", line 533, in request resp = self.send(prep, **send_kwargs) File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/requests-2.21.0-py3.7.egg/requests/sessions.py", line 646, in send r = adapter.send(request, **kwargs) File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/requests-2.21.0-py3.7.egg/requests/adapters.py", line 449, in send timeout=timeout File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/urllib3-1.24.2-py3.7.egg/urllib3/connectionpool.py", line 638, in urlopen _stacktrace=sys.exc_info()[2]) File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/urllib3-1.24.2-py3.7.egg/urllib3/util/retry.py", line 348, in increment total -= 1 TypeError: unsupported operand type(s) for -=: 'Session' and 'int' -- components: Library (Lib) messages: 346208 nosy: ajung priority: normal severity: normal status: open title: urllib3: TypeError: unsupported operand type(s) for -=: 'Session' and 'int' in Retry class versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue37361> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37361] urllib3: TypeError: unsupported operand type(s) for -=: 'Session' and 'int' in Retry class
Change by Andreas Jung : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue37361> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37361] urllib3: TypeError: unsupported operand type(s) for -=: 'Session' and 'int' in Retry class
Andreas Jung added the comment: invalid -- ___ Python tracker <https://bugs.python.org/issue37361> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7
New submission from Andreas Jung : I am using Python 3.6 and 3.7 (always latest minor releases) with Plone 5.2 and I various issues with Fatal Python error: Cannot recover from stack overflow. and do not make much sense to me. Some related tracebacks are documented here https://github.com/plone/Products.CMFPlone/issues/2874 https://community.plone.org/t/fatal-python-error-cannot-recover-from-stack-overflow/8589 There are no patterns directly visible what may typically cause the error. The errors occur at least with Python 3.6 system Python on Fedora 26 and a self-compiled Python 3.7.3 on a fresh Debian 9 system. -- components: Interpreter Core messages: 346521 nosy: ajung priority: normal severity: normal status: open title: Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7 type: crash versions: Python 3.6, Python 3.7 ___ Python tracker <https://bugs.python.org/issue37402> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37402] Fatal Python error: Cannot recover from stack overflow issues on Python 3.6 and 3.7
Andreas Jung added the comment: Typical traceback: WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for http://nohost/plone_portal/microscopycentre/img/fotos-specialist-course2018.htm/demo10-jpg If renaming or importing please reindex! WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for http://nohost/plone_portal/microscopycentre/img/fotos-specialist-course2018.htm/kick-off2-jpg If renaming or importing please reindex! WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for http://nohost/plone_portal/microscopycentre/img/fotos-specialist-course2018.htm/kick-off3-jpg If renaming or importing please reindex! WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for http://nohost/plone_portal/microscopycentre/img/fotos-specialist-course2018.htm/kick-off6-jpg If renaming or importing please reindex! WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for http://nohost/plone_portal/microscopycentre/img/fotos-specialist-course2018.htm/kick-off5-jpg If renaming or importing please reindex! WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for http://nohost/plone_portal/microscopycentre/img/toon-jpg If renaming or importing please reindex! WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for http://nohost/plone_portal/microscopycentre/img/wf.htm If renaming or importing please reindex! WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for http://nohost/plone_portal/microscopycentre/img/toon.htm If renaming or importing please reindex! WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for http://nohost/plone_portal/microscopycentre/img/unite.htm If renaming or importing please reindex! WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for http://nohost/plone_portal/microscopycentre/img/spt If renaming or importing please reindex! WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for http://nohost/plone_portal/openuniversiteit/nl/contact/studiegids2015.pdf If renaming or importing please reindex! WARNING:plone.app.contenttypes.indexers:Lookup of PrimaryField failed for http://nohost/plone_portal/openuniversiteit/nl/contact/studiegids2015.pdf If renaming or importing please reindex! Fatal Python error: Cannot recover from stack overflow. Thread 0x7fe43f8b0700 (most recent call first): File "/opt/python-3.7.3/lib/python3.7/selectors.py", line 468 in select File "/opt/python-3.7.3/lib/python3.7/asyncio/base_events.py", line 1739 in _run_once File "/opt/python-3.7.3/lib/python3.7/asyncio/base_events.py", line 539 in run_forever File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/ZEO-5.2.1-py3.7.egg/ZEO/asyncio/client.py", line 861 in run File "/opt/python-3.7.3/lib/python3.7/threading.py", line 865 in run File "/opt/python-3.7.3/lib/python3.7/threading.py", line 917 in _bootstrap_inner File "/opt/python-3.7.3/lib/python3.7/threading.py", line 885 in _bootstrap Current thread 0x7fe44e046500 (most recent call first): File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/hooks.py", line 103 in getSiteManager File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/zope.component-4.5-py3.7.egg/zope/component/_api.py", line 157 in queryUtility File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFCore-2.4.0b8-py3.7.egg/Products/CMFCore/DynamicType.py", line 71 in getTypeInfo File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py", line 96 in getLayout File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py", line 75 in __call__ File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py", line 76 in __call__ File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py", line 76 in __call__ File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py", line 76 in __call__ File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py", line 76 in __call__ File "/home/ajung/sandboxes/ugent-portaal-plone-4x/eggs/Products.CMFDynamicViewFTI-6.0.1-py3.7.egg/Products/CMFDynamicViewFTI/browserdefault.py", line 76 in __call__ File "/home/ajung/sandboxes/ugent-portaal-plone-4x
[issue34224] python 3.7 inside venv tries to write back to read-only installation directory (Grammar3.7.0.final.0.pickle)
Andreas Jung added the comment: This issue is still true for 3.8.0b1, Ubuntu 19.04, umask is 0077, Python 3.8 is installed using "sudo make install". !bin/python bin/python setup.py develop running develop running egg_info writing fs.webdavfs.egg-info/PKG-INFO writing dependency_links to fs.webdavfs.egg-info/dependency_links.txt writing entry points to fs.webdavfs.egg-info/entry_points.txt writing requirements to fs.webdavfs.egg-info/requires.txt writing top-level names to fs.webdavfs.egg-info/top_level.txt error: [Errno 13] Permission denied: '/opt/python-3.8.0b1/lib/python3.8/lib2to3/Grammar3.8.0.beta.1.pickle' So "python3 -m venv" should setup a virtualenv properly without the need writing anything to the Python installation directory. Or it is up to "make install" to generate the related files properly during installation. -- ___ Python tracker <https://bugs.python.org/issue34224> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'
Andreas Jung added the comment: Just the standard ./configure --prefix=... --enable-optimizations dance -- nosy: +ajung ___ Python tracker <http://bugs.python.org/issue30633> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'
Andreas Jung added the comment: --enable-optimizations is not the issue Seems to be somehow related to the locales. My env is: ALSA_CONFIG_PATH=/etc/alsa-pulse.conf AUDIODRIVER=pulseaudio AUTOJUMP_ERROR_PATH=/home/ajung/.local/share/autojump/errors.log COLORTERM=1 CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu CPU=x86_64 CSHEDIT=emacs CVS_RSH=ssh DISPLAY=localhost:10.0 EDITOR=vim FOP_HOME=/opt/fop-1.0 FROM_HEADER= G_BROKEN_FILENAMES=1 G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252 GPG_TTY=/dev/pts/14 HISTSIZE=1000 HOME=/home/ajung HOST=blackmoon2 HOSTNAME=blackmoon2 HOSTTYPE=x86_64 INPUTRC=/home/ajung/.inputrc IRCNAME=Andreas Jung (www.andreas-jung.com) IRCNICK=YET IRCSERVER=irc.freenet.de irc.belwue.de JAVA_BINDIR=/usr/java/latest/bin JAVA_HOME=/usr/java/latest JAVA_ROOT=/usr/java/latest JDK_HOME=/usr/java/latest JRE_HOME=/usr/lib64/jvm/jre LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LESS_ADVANCED_PREPROCESSOR=no LESSCLOSE=lessclose.sh %s %s LESSKEY=/etc/lesskey.bin LESS=-M -I -R LESSOPEN=lessopen.sh %s LIBGL_DEBUG=quiet LOGNAME=ajung LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.xz=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32: LS_OPTIONS=-N --color=tty -T 0 MACHTYPE=x86_64-suse-linux MAIL=/var/mail/ajung MANPATH=/usr/share/man:/opt/local/share/man:/usr/X11R6/man MINICOM=-c on MORE=-sl NNTPSERVER=news NO_AT_BRIDGE=1 OLDPWD=/home/ajung/src OSTYPE=linux PAGER=less PATH=/home/ajung/.autojump/bin:/usr/java/jdk1.8.0_05/jre/bin:/opt/speedata-publisher/bin:/opt/php-7.1.2/bin:/opt/sphinx/bin:/opt/dita-ot-2.3.1/bin:/opt/ditac-2_6_1/bin:/opt/mongodb/bin:/usr/AHFormatterV64_64:/opt/calibre:/opt/xfc/bin:/opt/PDFreactor/bin:/opt/prince-11:/opt/local/bin:/opt/local/sbin:/usr/bin:/home/ajung/bin:/sbin:/bin:/home/ajung/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/opt/bin PILOTPORT=usb: PP_SERVER=https://demo:d...@pp-server.zopyx.com/ PROFILEREAD=true PWD=/home/ajung/src/Python-3.6.1 PYTHONSTARTUP=/etc/pythonstart QEMU_AUDIO_DRV=pa QT_SYSTEM_DIR=/usr/share/desktop-data SDK_HOME=/usr/java/latest SDL_AUDIODRIVER=pulse SHELL=/bin/bash SHLVL=1 SSH_AUTH_SOCK=/tmp/ssh-sejLfLH4gS/agent.25203 SSH_CLIENT=192.168.0.66 50756 22 SSH_CONNECTION=192.168.0.66 50756 192.168.0.51 22 SSH_TTY=/dev/pts/14 TERM=xterm-256color USER=ajung _=/usr/bin/env VDPAU_DRIVER=va_gl WINDOWMANAGER=/usr/bin/startkde XAUTHLOCALHOSTNAME=blackmoon2 XDG_CONFIG_DIRS=/etc/xdg XDG_DATA_DIRS=/usr/local/share:/usr/share XDG_RUNTIME_DIR=/run/user/1000 XDG_SESSION_ID=99 XFC_DIR=/opt/xfc/bin XINC_HOME=/home/ajung/src/xinc XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB XNLSPATH=/usr/share/X11/nls Also tried to set LC_ALL=C but that does not make a difference. -- ___ Python tracker <http://bugs.python.org/issue30633> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31316] Frequent *** stack smashing detected *** with Python 3.6.2/meinheld WSGI server
New submission from Andreas Jung: We are currently testing Python 3.6.2 with a BottlePY based with "meinheld" WSGI server and we see frequently these crashesis this related to Python or meinheld in particular? Linux unknown-device 4.7.0-1-amd64 #1 SMP Debian 4.7.2-1 (2016-08-28) x86_64 GNU/Linux 2017-08-31 17:40:55,434] WARNING JWK verification disabled [2017-08-31 17:40:55,435] INFO pimservice version 0.2.0.dev0 [2017-08-31 17:40:55,435] INFO Importing data from /home/nils/src/festool/coa-pim-service/SCPortal_de-DE_20170418.xml.zip [2017-08-31 17:40:55,435] INFO Locales in ZIP file: de-DE Loading SCPortal_de-DE_20170418.xml (1/1) … done. Bottle v0.12.12 server starting up (using MeinheldServer())... Listening on http://localhost:8080/ Hit Ctrl-C to quit. "0.0.0.0 - - [31/Aug/2017:17:41:27 +] "GET /Search/de-DE HTTP/1.1" 200 105256 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36" *** stack smashing detected ***: /home/nils/src/festool/coa-pim-service/bin/python terminated === Backtrace: = /lib/x86_64-linux-gnu/libc.so.6(+0x70bcb)[0x7fdcddbabbcb] /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fdcddc34227] /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x0)[0x7fdcddc341f0] /home/nils/src/festool/coa-pim-service/lib/python3.6/site-packages/meinheld-0.6.1-py3.6-linux-x86_64.egg/meinheld/server.cpython-36m-x86_64-linux-gnu.so(+0xebdf)[0x7fdcd49c8bdf] /home/nils/src/festool/coa-pim-service/lib/python3.6/site-packages/meinheld-0.6.1-py3.6-linux-x86_64.egg/meinheld/server.cpython-36m-x86_64-linux-gnu.so(picoev_poll_once_internal+0x95)[0x7fdcd49ce1c5] /home/nils/src/festool/coa-pim-service/lib/python3.6/site-packages/meinheld-0.6.1-py3.6-linux-x86_64.egg/meinheld/server.cpython-36m-x86_64-linux-gnu.so(+0xfc87)[0x7fdcd49c9c87] /home/nils/src/festool/coa-pim-service/bin/python(_PyCFunction_FastCallKeywords+0x1a7)[0x4bdcb7] /home/nils/src/festool/coa-pim-service/bin/python[0x54d47e] /home/nils/src/festool/coa-pim-service/bin/python(_PyEval_EvalFrameDefault+0x2e63)[0x5512d3] /home/nils/src/festool/coa-pim-service/bin/python[0x54c681] /home/nils/src/festool/coa-pim-service/bin/python[0x54d5f5] /home/nils/src/festool/coa-pim-service/bin/python(_PyEval_EvalFrameDefault+0x2e63)[0x5512d3] /home/nils/src/festool/coa-pim-service/bin/python[0x54d0d5] /home/nils/src/festool/coa-pim-service/bin/python(PyEval_EvalCodeEx+0x2f)[0x54dfaf] /home/nils/src/festool/coa-pim-service/bin/python[0x488cf6] /home/nils/src/festool/coa-pim-service/bin/python(PyObject_Call+0x3a)[0x4562fa] /home/nils/src/festool/coa-pim-service/bin/python(_PyEval_EvalFrameDefault+0x32b6)[0x551726] /home/nils/src/festool/coa-pim-service/bin/python[0x54d0d5] /home/nils/src/festool/coa-pim-service/bin/python[0x54d394] /home/nils/src/festool/coa-pim-service/bin/python(_PyEval_EvalFrameDefault+0x3178)[0x5515e8] /home/nils/src/festool/coa-pim-service/bin/python[0x54c681] /home/nils/src/festool/coa-pim-service/bin/python[0x54d5f5] /home/nils/src/festool/coa-pim-service/bin/python(_PyEval_EvalFrameDefault+0x2e63)[0x5512d3] /home/nils/src/festool/coa-pim-service/bin/python[0x54d0d5] /home/nils/src/festool/coa-pim-service/bin/python(PyEval_EvalCode+0x23)[0x54df43] /home/nils/src/festool/coa-pim-service/bin/python(PyRun_FileExFlags+0x167)[0x42ac17] /home/nils/src/festool/coa-pim-service/bin/python(PyRun_SimpleFileExFlags+0xeb)[0x42ae4b] /home/nils/src/festool/coa-pim-service/bin/python(Py_Main+0xd8f)[0x43f12f] /home/nils/src/festool/coa-pim-service/bin/python(main+0x167)[0x421337] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fdcddb5b2b1] /home/nils/src/festool/coa-pim-service/bin/python(_start+0x2a)[0x42140a] === Memory map: 0040-007aa000 r-xp fe:01 18486295 /usr/bin/python3.6 009a9000-009aa000 r--p 003a9000 fe:01 18486295 /usr/bin/python3.6 009aa000-00a45000 rw-p 003aa000 fe:01 18486295 /usr/bin/python3.6 00a45000-00a77000 rw-p 00:00 0 00fa-15978000 rw-p 00:00 0 [heap] 7fdcd4533000-7fdcd4673000 rw-p 00:00 0 7fdcd4673000-7fdcd4679000 r-xp fe:01 14027603 /home/nils/src/festool/coa-pim-service/lib/python3.6/site-packages/greenlet-0.4.12-py3.6-linux-x86_64.egg/greenlet.cpython-36m-x86_64-linux-gnu.so 7fdcd4679000-7fdcd4878000 ---p 6000 fe:01 14027603 /home/nils/src/festool/coa-pim-service/lib/python3.6/site-packages/greenlet-0.4.12-py3.6-linux-x86_64.egg/greenlet.cpython-36m-x86_64-linux-gnu.so 7fdcd4878000-7fdcd4879000 r--p 5000 fe:01 14027603 /home/nils/src/festool/coa-pim-service/lib/python3.6/site-packages/greenlet-0.4.12-py3.6-linux-x86_64.egg/greenlet.cpython-36m-x86_64-linux-gnu.so 7fdcd4879000-7fdcd487a000 rw-p 6000 fe:01 14027603 /home/nils/s
[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'
New submission from Andreas Jung: Installing Python 3.6.1 from the sources on OpenSuse 42.1 gives me: o Python/mystrtoul.o Python/mysnprintf.o Python/peephole.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/pytime.o Python/random.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/pystrhex.o Python/dtoa.o Python/formatter_unicode.o Python/fileutils.o Python/dynload_shlib.o Python/thread.o Python/frozen.o ar rc libpython3.6m.a Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o ar rc libpython3.6m.a Modules/_threadmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o Modules/_functoolsmodule.o Modules/_operator.o Modules/_collectionsmodule.o Modules/itertoolsmodule.o Modules/atexitmodule.o Modules/signalmodule.o Modules/_stat.o Modules/timemodule.o Modules/_localemodule.o Modules/_iomodule.o Modules/iobase.o Modules/fileio.o Modules/bytesio.o Modules/bufferedio.o Modules/textio.o Modules/stringio.o Modules/zipimport.o Modules/faulthandler.o Modules/_tracemalloc.o Modules/hashtable.o Modules/symtablemodule.o Modules/xxsubtype.o ranlib libpython3.6m.a gcc -pthread -fprofile-generate -Xlinker -export-dynamic -o python Programs/python.o libpython3.6m.a -lpthread -ldl -lutil -lm gcc -pthread -fprofile-generate -Xlinker -export-dynamic -o Programs/_testembed Programs/_testembed.o libpython3.6m.a -lpthread -ldl -lutil -lm ./python -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \ echo "generate-posix-vars failed" ; \ rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi Could not find platform independent libraries Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] Fatal Python error: Py_Initialize: Unable to get the locale encoding ModuleNotFoundError: No module named 'encodings' Current thread 0x7f8a8d4c6680 (most recent call first): /bin/sh: line 5: 31168 Aborted ./python -E -S -m sysconfig --generate-posix-vars generate-posix-vars failed Makefile:595: recipe for target 'pybuilddir.txt' failed make[2]: *** [pybuilddir.txt] Error 1 make[2]: Leaving directory '/data/home/ajung/src/Python-3.6.1' Makefile:511: recipe for target 'build_all_generate_profile' failed make[1]: *** [build_all_generate_profile] Error 2 make[1]: Leaving directory '/data/home/ajung/src/Python-3.6.1' Makefile:492: recipe for target 'profile-opt' failed make: *** [profile-opt] Error 2 Some search on Google reveals some dependency to PYTHONPATH but this variable is not set on my system -- components: Installation messages: 295757 nosy: zopyx priority: normal severity: normal status: open title: Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings' versions: Python 3.6 ___ Python tracker <http://bugs.python.org/issue30633> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33142] Fatal Python error: Py_Initialize: Unable to get the locale encoding
New submission from Andreas Jung : Unable to build Python 3.6.4 from sources on a fresh Debian system: @plone /tmp/Python-3.6.4 $ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/"; SUPPORT_URL="https://www.debian.org/support"; BUG_REPORT_URL="https://bugs.debian.org/"; gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -I. -I./Include -DPy_BUILD_CORE \ -DGITVERSION="\"`LC_ALL=C `\"" \ -DGITTAG="\"`LC_ALL=C `\"" \ -DGITBRANCH="\"`LC_ALL=C `\"" \ -o Modules/getbuildinfo.o ./Modules/getbuildinfo.c rm -f libpython3.6m.a ar rc libpython3.6m.a Modules/getbuildinfo.o ar rc libpython3.6m.a Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/parsetok.o Parser/tokenizer.o ar rc libpython3.6m.a Objects/abstract.o Objects/accu.o Objects/boolobject.o Objects/bytes_methods.o Objects/bytearrayobject.o Objects/bytesobject.o Objects/cellobject.o Objects/classobject.o Objects/codeobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/exceptions.o Objects/genobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/odictobject.o Objects/memoryobject.o Objects/methodobject.o Objects/moduleobject.o Objects/namespaceobject.o Objects/object.o Objects/obmalloc.o Objects/capsule.o Objects/rangeobject.o Objects/setobject.o Objects/sliceobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/unicodeobject.o Objects/unicodectype.o Objects/weakrefobject.o ar rc libpython3.6m.a Python/_warnings.o Python/Python-ast.o Python/asdl.o Python/ast.o Python/bltinmodule.o Python/ceval.o Python/compile.o Python/codecs.o Python/dynamic_annotations.o Python/errors.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o Python/peephole.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o Python/pymath.o Python/pystate.o Python/pythonrun.o Python/pytime.o Python/random.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o Python/pystrhex.o Python/dtoa.o Python/formatter_unicode.o Python/fileutils.o Python/dynload_shlib.o Python/thread.o Python/frozen.o ar rc libpython3.6m.a Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o ar rc libpython3.6m.a Modules/_threadmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o Modules/_functoolsmodule.o Modules/_operator.o Modules/_collectionsmodule.o Modules/itertoolsmodule.o Modules/atexitmodule.o Modules/signalmodule.o Modules/_stat.o Modules/timemodule.o Modules/_localemodule.o Modules/_iomodule.o Modules/iobase.o Modules/fileio.o Modules/bytesio.o Modules/bufferedio.o Modules/textio.o Modules/stringio.o Modules/zipimport.o Modules/faulthandler.o Modules/_tracemalloc.o Modules/hashtable.o Modules/symtablemodule.o Modules/xxsubtype.o ranlib libpython3.6m.a gcc -pthread -Xlinker -export-dynamic -o python Programs/python.o libpython3.6m.a -lpthread -ldl -lutil -lm gcc -pthread -Xlinker -export-dynamic -o Programs/_testembed Programs/_testembed.o libpython3.6m.a -lpthread -ldl -lutil -lm ./python -E -S -m sysconfig --generate-posix-vars ;\ if test $? -ne 0 ; then \ echo "generate-posix-vars failed" ; \ rm -f ./pybuilddir.txt ; \ exit 1 ; \ fi Could not find platform independent libraries Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] Fatal Python error: Py_Initialize: Unable to get the locale encoding ModuleNotFoundError: No module named 'encodings' Current thread 0x7f1757349440 (most recent call first): Aborted generate-posix-vars failed Makefile:575: recipe for target 'pybuilddir.txt' failed make: *** [pybuilddir.txt] Error 1 -- messages: 314442 nosy: ajung priority: normal severity: normal status: open title: Fatal Python error: Py_Initialize: Unable to get the locale encoding type: compile error versions: Python 3.6 ___ Python tracker <ht
[issue33142] Fatal Python error: Py_Initialize: Unable to get the locale encoding on Debian/Python 3.6.4 source build
Change by Andreas Jung : -- title: Fatal Python error: Py_Initialize: Unable to get the locale encoding -> Fatal Python error: Py_Initialize: Unable to get the locale encoding on Debian/Python 3.6.4 source build ___ Python tracker <https://bugs.python.org/issue33142> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33142] Fatal Python error: Py_Initialize: Unable to get the locale encoding on Debian/Python 3.6.4 source build
Change by Andreas Jung : -- components: +Installation ___ Python tracker <https://bugs.python.org/issue33142> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34224] python 3.7 inside venv tries to write back to installation directory
Change by Andreas Jung : -- components: Installation nosy: ajung priority: normal severity: normal status: open title: python 3.7 inside venv tries to write back to installation directory ___ Python tracker <https://bugs.python.org/issue34224> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34224] python 3.7 inside venv tries to write back to read-only installation directory (Grammar3.7.0.final.0.pickle)
New submission from Andreas Jung : I installed Python 3.7.0 from source inside /opt/python-3.7.0 (make install as root). Then I created a virtual environment for a package and tried to develop the package. Python 3.7.0 tries to create a file /opt/python-3.7.0/lib/python3.7/lib2to3/Grammar3.7.0.final.0.pickle which fails obviously because the installation directory is owned by root and is not writable for an normal user account (my-3.7) ajung@dev ~/src/zopyx.txng3.ext (master) $ /opt/python-3.7.0/bin/python3 -m venv . (my-3.7) ajung@dev ~/src/zopyx.txng3.ext (master) $ bin/python Python 3.7.0 (default, Jul 25 2018, 16:08:13) [GCC 7.3.1 20180130 (Red Hat 7.3.1-2)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> (my-3.7) ajung@dev ~/src/zopyx.txng3.ext (master) $ bin/python setup.py develop running develop running egg_info writing zopyx.txng3.ext.egg-info/PKG-INFO writing dependency_links to zopyx.txng3.ext.egg-info/dependency_links.txt writing namespace_packages to zopyx.txng3.ext.egg-info/namespace_packages.txt writing requirements to zopyx.txng3.ext.egg-info/requires.txt writing top-level names to zopyx.txng3.ext.egg-info/top_level.txt error: [Errno 13] Permission denied: '/opt/python-3.7.0/lib/python3.7/lib2to3/Grammar3.7.0.final.0.pickle' -- title: python 3.7 inside venv tries to write back to installation directory -> python 3.7 inside venv tries to write back to read-only installation directory (Grammar3.7.0.final.0.pickle) versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issue34224> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18092] Python 2.7.5 installation broken on OpenSuse 12.2
Changes by Andreas Jung : -- components: +Build ___ Python tracker <http://bugs.python.org/issue18092> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18092] Python 2.7.5 installation broken on OpenSuse 12.2
New submission from Andreas Jung: I tried to install 2.7.5 on my OpenSuse 12.2 (latest patches) ajung@blackmoon2:~/sandboxes/mib.portal> cat /etc/issue Welcome to openSUSE 12.2 "Mantis" - Kernel \r (\l). Compilation went fine (no visible errors). Starting the interpreter gives me: ajung@blackmoon2:~/sandboxes/mib.portal> /opt/python-2.7.5/bin/python Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] Python 2.7.5 (default, May 29 2013, 08:19:10) [GCC 4.7.1 20120723 [gcc-4_7-branch revision 189773]] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> Trying to bootstrap a Pyramid project using zc.buildout gives me: ajung@blackmoon2:~/sandboxes/mib.portal> /opt/python-2.7.5/bin/python bootstrap.py Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] Traceback (most recent call last): File "bootstrap.py", line 21, in import os, shutil, sys, tempfile, urllib, urllib2, subprocess File "/opt/python-2.7.5/lib/python2.7/shutil.py", line 12, in import collections File "/opt/python-2.7.5/lib/python2.7/collections.py", line 8, in from _collections import deque, defaultdict ImportError: No module named _collections -- messages: 190274 nosy: Andreas.Jung priority: normal severity: normal status: open title: Python 2.7.5 installation broken on OpenSuse 12.2 type: behavior versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue18092> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14981] 3.3.0a4 compilation fails von MacOS Lion /10.7.4
New submission from Andreas Jung : ranlib: file: libpython3.3m.a(dynamic_annotations.o) has no symbols ranlib: file: libpython3.3m.a(pymath.o) has no symbols gcc -framework CoreFoundation -o python.exe Modules/python.o libpython3.3m.a -ldl -framework CoreFoundation gcc -framework CoreFoundation -o Modules/_testembed Modules/_testembed.o libpython3.3m.a -ldl -framework CoreFoundation ./python.exe -SE -m sysconfig --generate-posix-vars Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] python.exe(41191) malloc: *** mmap(size=7310873954244194304) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug Could not import runpy module make: *** [Lib/_sysconfigdata.py] Segmentation fault: 11 -- components: Build messages: 162082 nosy: ajung priority: normal severity: normal status: open title: 3.3.0a4 compilation fails von MacOS Lion /10.7.4 versions: Python 3.4 ___ Python tracker <http://bugs.python.org/issue14981> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14981] 3.3.0a4 compilation fails von MacOS Lion /10.7.4
Changes by Andreas Jung : -- type: -> compile error ___ Python tracker <http://bugs.python.org/issue14981> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7551] SystemError/MemoryError/OverflowErrors on encode() a unicode string
New submission from Andreas Jung : We encountered a pretty bizarre behavior of Python 2.4.6 while decoding a 600MB long unicode string 'data': Python 2.4.6 (8GB RAM, 64 bit) (Pdb) type(data) (Pdb) len(data) 601794657 (Pdb) data2=data.encode('utf-8') *** SystemError: Negative size passed to PyString_FromStringAndSize Assuming that this has something to do with a 512MB limit: (Pdb) data2=data[:512*1024*1024].encode('utf-8') *** SystemError: Negative size passed to PyString_FromStringAndSize Same bug...now with 512MB - 1 byte: (Pdb) data2=data[:(256*1024*1024)-1].encode('utf-8') OverflowError Cross-check on a different Linux box (4GB RAM, 4 GB Swap, 64 bit) aj...@blackmoon:~> python2.4 Python 2.4.5 (#1, Jun 9 2008, 10:35:12) [GCC 4.2.1 (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> data = u'x'*601794657 >>> data2= data.encode('utf-8') Traceback (most recent call last): File "", line 1, in ? MemoryError Where is this different behavior coming from? -- messages: 96695 nosy: ajung severity: normal status: open title: SystemError/MemoryError/OverflowErrors on encode() a unicode string versions: Python 2.4 ___ Python tracker <http://bugs.python.org/issue7551> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7551] SystemError/MemoryError/OverflowErrors on encode() a unicode string
Andreas Jung added the comment: Both systems are Linux system running a narrow Python build. The problem does not occur with Python 2.5 or 2.6. Unfortunately this error occurs with Zope 2 which is tied (at least with versions prior to Zope 2.12 to Python 2.4). -- status: pending -> open ___ Python tracker <http://bugs.python.org/issue7551> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com