[issue42608] Installation failed from source code on Debian ([307/416] test_socket)
New submission from ali : I'm following guide below to install Python3.7 from source on Debian-64Bit. https://linuxize.com/post/how-to-install-python-3-7-on-ubuntu-18-04/ I'm installing Python3.7.9-final-64bit. But `make -j 8` hanged out more than 2 hours on: 0:22:43 load avg: 1.29 [307/416] test_socket How to fix it !/? -- components: Build messages: 382790 nosy: alimp5 priority: normal severity: normal status: open title: Installation failed from source code on Debian ([307/416] test_socket) type: crash versions: Python 3.7 ___ Python tracker <https://bugs.python.org/issue42608> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42608] Installation failed from source code on Debian ([307/416] test_socket)
ali added the comment: I used build_all instead of --enable-optimizations option. Thanks you. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue42608> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41764] sub function would not work without the flags but the search would work fine
New submission from ali : it would work like this sub("pattern","replace", txt, flags= re.IGNORECASE | re.DOTALL) but it wouldnt work like this sub("pattern","replace", txt, re.IGNORECASE | re.DOTALL) -- components: Regular Expressions messages: 376734 nosy: bayat, ezio.melotti, mrabarnett priority: normal severity: normal status: open title: sub function would not work without the flags but the search would work fine versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue41764> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15809] IDLE console uses incorrect encoding.
Changes by ali : -- nosy: +irdb ___ Python tracker <http://bugs.python.org/issue15809> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7217] IDLE Subprocess Startup Error
New submission from ali : Hi After trying to install another IDE for python (Eric4.3.8 and sciTE201) I'm not able to launch IDLE directly anymore. (I not sure if this is really relevant) I can right click on the .py files and choose "edit with IDLE" and everything works fine. Also, I can run python under cmd without any problem. But when I try to open IDLE using start menu icon, this error massage appears: Subprocess Startup Error IDLE's subprocess didn't make connection. either idle can't start a subprocess or personal firewall software is blocking the connection. I tried to disable my anti-virus and windows firewall (I don't use any other firewalls), but the problem still exists. I uninstalled python 2.6.2 and then installed python 3.1.1. IDLE worked fine but I had a little problem with the new syntax in python 3 so I installed python 2.6.4 and guess what, the same error message again! When I try to run IDLE from cmd this error message is displayed: hi Traceback (most recent call last): File "", line 1, in File "C:\Python26\lib\idlelib\run.py", line 13, in import RemoteDebugger File "C:\Python26\lib\idlelib\RemoteDebugger.py", line 24, in import rpc File "C:\Python26\lib\idlelib\rpc.py", line 120, in request_queue = Queue.Queue(0) TypeError: __init__() takes exactly 1 argument (2 given) Can anyone help? Thanks in advance -- components: IDLE messages: 94546 nosy: mr.dalba severity: normal status: open title: IDLE Subprocess Startup Error type: crash versions: Python 2.6 ___ Python tracker <http://bugs.python.org/issue7217> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7217] IDLE Subprocess Startup Error
ali added the comment: I'm using windows vista x64 I've tried restarting my computer and manually deleting files but didn't help. -- ___ Python tracker <http://bugs.python.org/issue7217> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7217] IDLE Subprocess Startup Error
ali added the comment: ? -- ___ Python tracker <http://bugs.python.org/issue7217> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7217] IDLE Subprocess Startup Error {Solved}
ali added the comment: {Solved} Thanks for following up Amaury But my problem was solved yesterday. There was a few programs in the main python directory which I didn't want to delete, so I moved them to another directory and manually deleted C:\Python26 and then restarted my computer. After installing python again, the problem was solved. Thanks again -- title: IDLE Subprocess Startup Error -> IDLE Subprocess Startup Error {Solved} ___ Python tracker <http://bugs.python.org/issue7217> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46423] CLI: Addition assignment for tuples
New submission from Ali Ramezani : In CLI (Command Line Interpreter): A tuple has a list component then try to += that component. Since tuple doesn't allow assignment then it raises error but actually does that. If you try actual equivalence (A=A+B) it does not. Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> >>> v=([1],[2]) >>> v[0]=v[0]+[3,4] Traceback (most recent call last): File "", line 1, in TypeError: 'tuple' object does not support item assignment >>> v ([1], [2]) >>> v[0]+=[3,4] Traceback (most recent call last): File "", line 1, in TypeError: 'tuple' object does not support item assignment >>> v ([1, 3, 4], [2]) >>> -- messages: 410861 nosy: ramezaniua priority: normal severity: normal status: open title: CLI: Addition assignment for tuples type: behavior versions: Python 3.9 ___ Python tracker <https://bugs.python.org/issue46423> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46692] match case does not support regex
Change by Ali Rn : -- components: Regular Expressions nosy: AliRn, ezio.melotti, mrabarnett priority: normal severity: normal status: open title: match case does not support regex type: behavior versions: Python 3.10, Python 3.11 ___ Python tracker <https://bugs.python.org/issue46692> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1651995] sgmllib _convert_ref UnicodeDecodeError exception, new in 2.5
Changes by Ali Polatel: -- nosy: +hawking _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1651995> _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue756093] complex pow() crash on Alpha
Ali Polatel <[EMAIL PROTECTED]> added the comment: Probably related to this. test_pow fails on alpha with both 2.4.4 and 2.5.2. test test_pow failed -- Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.4.4-r9/work/Python-2.4.4/Lib/test/test_pow.py", line 109, in test_bug705231 eq(pow(a, 1.23e167), 1.0) ValueError: negative number cannot be raised to a fractional power I'll test with 2.6 and report back. -- nosy: +hawking Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue756093> ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3563] fix_idioms.py generates bad code
New submission from Ali Polatel <[EMAIL PROTECTED]>: fix_idioms.py generates bad code for conversions in try/except blocks. Example: s=(1, 2, 3) try: t = list(s) t.sort() except TypeError: pass fix_idioms.py generates this diff: --- test.py (original) +++ test.py (refactored) @@ -7,8 +7,7 @@ s=(1, 2, 3) try: -t = list(s) -t.sort() -except TypeError: +t = sorted(s) +except TypeError: pass except TypeError is indented wrongly. -- assignee: collinwinter components: 2to3 (2.x to 3.0 conversion tool) messages: 71199 nosy: collinwinter, hawking severity: normal status: open title: fix_idioms.py generates bad code ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3563> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3678] Ignored LDFLAGS during linking libpython$(VERSION).so
Changes by Ali Polatel <[EMAIL PROTECTED]>: -- nosy: +hawking ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3678> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2747] Documentation of new gobject types fails
New submission from Ali Afshar <[EMAIL PROTECTED]>: When using the automodule directive on a module that creates new Gobject types (eg custom PyGTK widget), the implicit registration of the imported types fail. (Normally any GObject subclass which has a __gtype_name__ attribute is automatically registered as a new GType using a metaclass. I have had a dig around some of the code of gobject, and pygobject, but not really any help to me. http://svn.gnome.org/viewvc/pygobject/trunk/gobject/gobjectmodule.c?revision=777&view=markup http://svn.gnome.org/viewvc/glib/trunk/gobject/gtype.c?revision=6454&view=markup If anyone wants a quick look. The directive I am using is: .. automodule:: pygtkdock :members: I have also attached the exception I am getting. -- assignee: georg.brandl components: Documentation tools (Sphinx) files: sphinx-err-FK4s9A.log messages: 66158 nosy: aafshar, georg.brandl severity: normal status: open title: Documentation of new gobject types fails type: crash versions: Python 2.5 Added file: http://bugs.python.org/file10182/sphinx-err-FK4s9A.log __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2747> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2747] Documentation of new gobject types fails
Ali Afshar <[EMAIL PROTECTED]> added the comment: I have managed to reduce the bug to a tiuny test case. It seems that this only happens when calling automodule directive on a package, with code in __init__.py which registers a new GType. Moving the code to a a regular module inside a package allows it to be imported normally. I have attached the project directory, and there is a script "build.sh" which just demonstrates how I run the builder to get the PYTHONPATH correct to be able to improt the package. Added file: http://bugs.python.org/file10184/sphinx-bug-test.tar.gz __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2747> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2794] Figure directive not handled for latex writing in Sphinx
New submission from Ali Afshar <[EMAIL PROTECTED]>: .. figure:: directive is not handled when writing to latex, and this directive seems the only way to have a captioned image in rst. I have added a patch that simply handles the figure, and captions. Note that figures have an additional component of "legends" but I can't seem to work out what these are. -- assignee: georg.brandl components: Documentation tools (Sphinx) files: latex-figure.diff keywords: patch messages: 66437 nosy: aafshar, georg.brandl severity: normal status: open title: Figure directive not handled for latex writing in Sphinx versions: Python 2.5 Added file: http://bugs.python.org/file10225/latex-figure.diff __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2794> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue42355] symtable: get_namespace doesn't check whether if there are multiple namespaces or no namespaces at all
Change by Ali mazloum : -- type: -> security ___ Python tracker <https://bugs.python.org/issue42355> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39780] Add HTTP Response code 451
Change by Ali McMaster : -- components: Library (Lib) nosy: Ali McMaster priority: normal severity: normal status: open title: Add HTTP Response code 451 type: enhancement ___ Python tracker <https://bugs.python.org/issue39780> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39780] Add HTTP Response code 103
New submission from Ali McMaster : https://tools.ietf.org/html/rfc8297 I would like to work on this - PR to follow -- title: Add HTTP Response code 451 -> Add HTTP Response code 103 ___ Python tracker <https://bugs.python.org/issue39780> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39780] Add HTTP Response code 103
Change by Ali McMaster : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue39780> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39780] Add HTTP Response code 103
Change by Ali McMaster : -- keywords: +patch pull_requests: +18040 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18681 ___ Python tracker <https://bugs.python.org/issue39780> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41779] add BLOB photo to sqlite3 python
New submission from Ali Zaeri : Hi this is my problem that I share it in stackowerflow hope you can help me: https://stackoverflow.com/q/63763089/14168432 -- messages: 376868 nosy: alizaerialora priority: normal severity: normal status: open title: add BLOB photo to sqlite3 python ___ Python tracker <https://bugs.python.org/issue41779> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14238] python shouldn't need username in passwd database
Ali Ikinci added the comment: I have started to work on this. -- nosy: +aikinci ___ Python tracker <http://bugs.python.org/issue14238> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14238] python shouldn't need username in passwd database
Ali Ikinci added the comment: This patch fixes the issue but needs review. It is my first patch ever so be nice :) -- keywords: +patch Added file: http://bugs.python.org/file24800/issue14238.patch ___ Python tracker <http://bugs.python.org/issue14238> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14238] python shouldn't need username in passwd database
Ali Ikinci added the comment: I would suggest that this issue is the same as http://bugs.python.org/issue10496 like Victor pointed out and would say close it because it is a duplicate. -- ___ Python tracker <http://bugs.python.org/issue14238> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14291] Regression in Python3 of email handling of unicode strings in headers
Ali Ikinci added the comment: Together with David we have worked on a fix and test for this. Thanks David. -- keywords: +patch Added file: http://bugs.python.org/file24833/Issue14291.patch ___ Python tracker <http://bugs.python.org/issue14291> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37386] [EASY] test_io: test_large_file_ops() failed on AMD64 Windows7 SP1 3.x with: [Errno 28] No space left on device
Ali McMaster added the comment: To check - do we definitely want to just skip the test if the below OSError is thrown? Could we attempt to clean wherever the test is writing to before the test is run/figure out what is using all the space? -- nosy: +Ali McMaster ___ Python tracker <https://bugs.python.org/issue37386> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31475] Bug in argparse - not supporting utf8
New submission from Ali Razmjoo: Regarding #3468 discussion, there is the same bug was in argparse (and optparse) which fixed in this PR. utf8 is not supported in argprase module #3478: https://github.com/python/cpython/pull/3577 current pr: https://github.com/python/cpython/pull/3577 Regards. -- messages: 302190 nosy: Ali Razmjoo priority: normal pull_requests: 3572 severity: normal status: open title: Bug in argparse - not supporting utf8 type: compile error ___ Python tracker <https://bugs.python.org/issue31475> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33243] nltk is not working properly
New submission from Ali Abbas : nltk is not working properly, showing this error Traceback (most recent call last): File "token.py", line 1, in from nltk.tokenize import word_tokenize, sent_tokenize File "D:\PYTHON36\lib\site-packages\nltk\__init__.py", line 89, in from nltk.internals import config_java File "D:\PYTHON36\lib\site-packages\nltk\internals.py", line 11, in import subprocess File "D:\PYTHON36\lib\subprocess.py", line 126, in import threading File "D:\PYTHON36\lib\threading.py", line 7, in from traceback import format_exc as _format_exc File "D:\PYTHON36\lib\traceback.py", line 5, in import linecache File "D:\PYTHON36\lib\linecache.py", line 11, in import tokenize File "D:\PYTHON36\lib\tokenize.py", line 35, in from token import * File "C:\Users\Ali Abbas\Desktop\token\token.py", line 1, in from nltk.tokenize import word_tokenize, sent_tokenize File "D:\PYTHON36\lib\site-packages\nltk\tokenize\__init__.py", line 67, in from nltk.tokenize.mwe import MWETokenizer File "D:\PYTHON36\lib\site-packages\nltk\tokenize\mwe.py", line 31, in from nltk.util import Trie File "D:\PYTHON36\lib\site-packages\nltk\util.py", line 15, in import pydoc File "D:\PYTHON36\lib\pydoc.py", line 72, in from traceback import format_exception_only ImportError: cannot import name 'format_exception_only' -- components: Library (Lib) files: error.txt messages: 315106 nosy: Ali Abbas priority: normal severity: normal status: open title: nltk is not working properly type: compile error versions: Python 3.6 Added file: https://bugs.python.org/file47524/error.txt ___ Python tracker <https://bugs.python.org/issue33243> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12988] Tkinter File Dialog crashes on Win7 when saving to Documents Library
Ali Rahmjoo added the comment: I have exactly the same problem mentioned by Brian Gernhardt for 32-bit Python 3.2.3 on Win7. -- nosy: +alirahmjoo ___ Python tracker <http://bugs.python.org/issue12988> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20286] Segfault when using internal DictProxy
New submission from Ali Ebrahim: Demonstration in this gist: https://gist.github.com/aebrahim/840 Crash info in this gist: https://gist.github.com/aebrahim/8466749 The code runs without issue on Ubuntu 12.04 (Python 2.7.3), and Windows 7 (Python 2.7.6). It also ran fine on MacOS X 10.8 (Python 2.7.2). However, it failed with MacOX X 10.9 for both 2.7.5 (version shipped by Apple) and 2.7.6 Python version information details: 2.7.2 Python 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin 2.7.5 Python 2.7.5 (default, Aug 25 2013, 00:04:04) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin 2.7.6 Python 2.7.6 (v2.7.6:3a1db0d2747e, Nov 10 2013, 00:42:54) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin -- assignee: ronaldoussoren components: Macintosh messages: 208318 nosy: Ali.Ebrahim, ronaldoussoren priority: normal severity: normal status: open title: Segfault when using internal DictProxy versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue20286> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20286] Segfault when using internal DictProxy
Changes by Ali Ebrahim : -- type: -> crash ___ Python tracker <http://bugs.python.org/issue20286> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20633] SystemError: Parent module 'multiprocessing' not loaded, cannot perform relative import
New submission from Amr Ali: Using `multiprocessing.Manager` to share a `dict` between two processes raises the below exception at main process termination. Child process is joined and terminates gracefully before the main process. Replacing multiprocessing/forking.py:135 with `from multiprocessing.connection import wait` fixes the issue. Python 3.3.1 (default, Sep 25 2013, 19:29:01) [GCC 4.7.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.version '3.3.1 (default, Sep 25 2013, 19:29:01) \n[GCC 4.7.3]' # multiprocessing/forking.py:135 132 def wait(self, timeout=None): 133 if self.returncode is None: 134 if timeout is not None: 135 from .connection import wait 136 if not wait([self.sentinel], timeout): 137 return None 138 # This shouldn't block if wait() returned successfully. 139 return self.poll(os.WNOHANG if timeout == 0.0 else 0) 140 return self.returncode # Traceback Traceback (most recent call last): File "/home/d4de/work/redacted/redacted-engine/venv/lib/python3.3/multiprocessing/util.py", line 255, in _run_finalizers finalizer() File "/home/d4de/work/redacted/redacted-engine/venv/lib/python3.3/multiprocessing/util.py", line 188, in __call__ res = self._callback(*self._args, **self._kwargs) File "/home/d4de/work/redacted/redacted-engine/venv/lib/python3.3/multiprocessing/managers.py", line 588, in _finalize_manager process.join(timeout=1.0) File "/home/d4de/work/redacted/redacted-engine/venv/lib/python3.3/multiprocessing/process.py", line 127, in join res = self._popen.wait(timeout) File "/home/d4de/work/redacted/redacted-engine/venv/lib/python3.3/multiprocessing/forking.py", line 135, in wait from .connection import wait SystemError: Parent module 'multiprocessing' not loaded, cannot perform relative import Traceback (most recent call last): File "/home/d4de/work/redacted/redacted-engine/venv/lib/python3.3/multiprocessing/util.py", line 255, in _run_finalizers finalizer() File "/home/d4de/work/redacted/redacted-engine/venv/lib/python3.3/multiprocessing/util.py", line 188, in __call__ res = self._callback(*self._args, **self._kwargs) File "/home/d4de/work/redacted/redacted-engine/venv/lib/python3.3/multiprocessing/managers.py", line 588, in _finalize_manager process.join(timeout=1.0) File "/home/d4de/work/redacted/redacted-engine/venv/lib/python3.3/multiprocessing/process.py", line 127, in join res = self._popen.wait(timeout) File "/home/d4de/work/redacted/redacted-engine/venv/lib/python3.3/multiprocessing/forking.py", line 135, in wait from .connection import wait SystemError: Parent module 'multiprocessing' not loaded, cannot perform relative import -- components: Library (Lib) messages: 211262 nosy: Amr.Ali, jnoller, sbt priority: normal severity: normal status: open title: SystemError: Parent module 'multiprocessing' not loaded, cannot perform relative import type: crash versions: Python 3.3 ___ Python tracker <http://bugs.python.org/issue20633> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20633] SystemError: Parent module 'multiprocessing' not loaded, cannot perform relative import
Amr Ali added the comment: Also importing `multiprocessing.forking` at the very beginning of MyLib/__init__.py fixes the problem. -- ___ Python tracker <http://bugs.python.org/issue20633> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29297] python3 open() does not check argument type before attempting to read() or write()
New submission from Mo Ali: Python3 open(), read(), or write()doesn't check argument type before action causing a hang. Would like to catch exceptions but not without an exception to return. See below. Python3.6: Python 3.6.0 (default, Dec 24 2016, 08:01:42) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> test = False >>> with open(str(test)) as f: ... fail = f.read() ... python2.7: ╰─λ python2 0 < 09:35:31 Python 2.7.13 (default, Dec 18 2016, 07:03:39) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> test = False >>> with open(test) as f: ... fail = f.read() ... Traceback (most recent call last): File "", line 1, in TypeError: coercing to Unicode: need string or buffer, bool found -- messages: 285644 nosy: Mo Ali priority: normal severity: normal status: open title: python3 open() does not check argument type before attempting to read() or write() type: crash versions: Python 3.5 ___ Python tracker <http://bugs.python.org/issue29297> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29297] python3 open() does not check argument type before attempting to read() or write()
Mo Ali added the comment: Serhiy, I expected a type error or a filenotfound like you received, however mine doesn't return the same. It just hangs. I've attached a picture. Also, I meant this to be for 3.6 not 3.5. >>> test = False >>> with open(test) as f: ... fail = f.read() ... -- versions: +Python 3.6 -Python 3.5 Added file: http://bugs.python.org/file46315/Screen Shot 2017-01-17 at 10.09.35 AM.png ___ Python tracker <http://bugs.python.org/issue29297> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26162] thread error
New submission from Ali Razmjoo: Hello, I've got a problem while using threading in python 2.7.10 windows. I copied errors in here https://gist.github.com/Ali-Razmjoo/d503171d338c6381f94f with 845 threads,870 and 1000. there isn't any problem or error with 840-830 threads! -- messages: 258667 nosy: Ali Razmjoo priority: normal severity: normal status: open title: thread error versions: Python 2.7 ___ Python tracker <http://bugs.python.org/issue26162> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue26258] readline module for python 3.x on windows
New submission from Ali Razmjoo: Hello, I using python 2.7.10 on windows and there isn't any problem with this readline module, but it's not exist in python3.x on windows, is it possible to add it ? how? -- messages: 259322 nosy: Ali Razmjoo priority: normal severity: normal status: open title: readline module for python 3.x on windows ___ Python tracker <http://bugs.python.org/issue26258> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23854] qtconsole and all windows based python have issues loading
New submission from Ali Arar: All of the sudden, all windows based python stopped working. qtconsole and spyder. Also, conda, pip, and easy_setup are issuing error messages. Below is the feedback I am getting. I uninstalled and reinstalled the package that was working perfectly fine. Also, downloaded Anaconda-2.2.0-Windows-x86_64.exe. === ipython qtconsole: --- Error in sys.excepthook: Traceback (most recent call last): File "D:\Anaconda\lib\site-packages\IPython\qt\console\qtconsoleapp.py", line 45, in gui_excepthook old_excepthook(exctype, value, tb) TypeError: 'NoneType' object is not callable Original exception was: Traceback (most recent call last): File "D:\Anaconda\Scripts\ipython-script.py", line 5, in sys.exit(start_ipython()) File "D:\Anaconda\lib\site-packages\IPython\__init__.py", line 120, in start_ipython return launch_new_instance(argv=argv, **kwargs) File "D:\Anaconda\lib\site-packages\IPython\config\application.py", line 573, in launch_instance app.initialize(argv) File "", line 2, in initialize File "D:\Anaconda\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error return method(app, *args, **kwargs) File "D:\Anaconda\lib\site-packages\IPython\terminal\ipapp.py", line 321, in initialize super(TerminalIPythonApp, self).initialize(argv) File "", line 2, in initialize File "D:\Anaconda\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error return method(app, *args, **kwargs) File "D:\Anaconda\lib\site-packages\IPython\core\application.py", line 369, in initialize self.parse_command_line(argv) File "D:\Anaconda\lib\site-packages\IPython\terminal\ipapp.py", line 316, in parse_command_line return super(TerminalIPythonApp, self).parse_command_line(argv) File "", line 2, in parse_command_line File "D:\Anaconda\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error return method(app, *args, **kwargs) File "D:\Anaconda\lib\site-packages\IPython\config\application.py", line 471, in parse_command_line return self.initialize_subcommand(subc, subargv) File "", line 2, in initialize_subcommand File "D:\Anaconda\lib\site-packages\IPython\config\application.py", line 75, in catch_config_error return method(app, *args, **kwargs) File "D:\Anaconda\lib\site-packages\IPython\config\application.py", line 402, in initialize_subcommand subapp = import_item(subapp) File "D:\Anaconda\lib\site-packages\IPython\utils\importstring.py", line 42, in import_item module = __import__(package, fromlist=[obj]) File "D:\Anaconda\lib\site-packages\IPython\qt\console\qtconsoleapp.py", line 56, in from IPython.qt.console.ipython_widget import IPythonWidget File "D:\Anaconda\lib\site-packages\IPython\qt\console\ipython_widget.py", line 23, in from .frontend_widget import FrontendWidget File "D:\Anaconda\lib\site-packages\IPython\qt\console\frontend_widget.py", line 25, in from .pygments_highlighter import PygmentsHighlighter File "D:\Anaconda\lib\site-packages\IPython\qt\console\pygments_highlighter.py", line 3, in from pygments.formatters.html import HtmlFormatter File "D:\Anaconda\lib\site-packages\pygments\formatters\__init__.py", line 19, in from pygments.plugin import find_plugin_formatters File "D:\Anaconda\lib\site-packages\pygments\plugin.py", line 39, in import pkg_resources File "D:\Anaconda\lib\site-packages\setuptools-14.3-py2.7.egg\pkg_resources\__init__.py", line 1366, in File "D:\Anaconda\lib\site-packages\setuptools-14.3-py2.7.egg\pkg_resources\__init__.py", line 1370, in MarkerEvaluation AttributeError: 'module' object has no attribute 'python_version' === D:\>pip - Traceback (most recent call last): File "D:\Anaconda\Scripts\pip-script.py", line 3, in from pip import main File "D:\Anaconda\lib\site-packages\pip\__init__.py", line 13, in from pip.utils import get_installed_distributions, get_prog File "D:\Anaconda\lib\site-packages\pip\utils\__init__.py", line 22, in from pip._vendor import pkg_resources, six File "D:\Anaconda\lib\site-packages\pip\_vendor\__init__.py", line 61, in load_module __import__(name) File "D:\Anaconda\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1316, in class MarkerEvaluation(object): File "D:\Anaconda\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1320, in MarkerEvaluation 'python_full_version': platform.pytho
[issue46326] 'virtualenv --clear' should prompt user before nuking entire directory
New submission from Ali Mohammad Pur : `virtualenv --clear` is extremely eager to delete the passed directory without any sort of confirmation, leading to possible data-loss (e.g. with a mistyped command, or a misunderstanding of what it actually does). Simply deleting an entire directory tree with a command that's extremely prone to misunderstanding should not be virtualenv's job, but as it has decided to make this its job, then it should take proper precautions to avoid unintentional `rm -fr some-directory` by *at least* asking for confirmation. The previous behaviour can of course, stay behind a `--force` flag for uses in CI or similar, but this should *not* be the default behaviour. related: https://github.com/pypa/virtualenv/issues/1890 mentions that "[it is not] good practice to put non-virtual environment-related files into a virtual environment", which is sensible, and so virtualenv should then simply refuse to be instantiated in a non-empty directory. On a more subjetive note, `virtualenv --clear ` sounds like a way to purge the virtual environment files from a directory (yes, I understand what the help says, but that hardly changes anything), so perhaps a more verbose flag like "--clear-contents" would be more appropriate, but I digress. -- messages: 410192 nosy: alimpfard priority: normal severity: normal status: open title: 'virtualenv --clear' should prompt user before nuking entire directory type: behavior ___ Python tracker <https://bugs.python.org/issue46326> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46326] 'virtualenv --clear' should prompt user before nuking entire directory
Ali Mohammad Pur added the comment: > If similar behavior is also an issue with the Python standard library venv > module (which is a derivative of virtualenv), please update this issue > accordingly Yes, my bad, I should have mentioned that this applies to venv, I will update the issue title. Not sure if I can modify my earlier comment however (I don't see any way to). -- ___ Python tracker <https://bugs.python.org/issue46326> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46326] 'venv --clear' should prompt user before nuking entire directory
Change by Ali Mohammad Pur : -- title: 'virtualenv --clear' should prompt user before nuking entire directory -> 'venv --clear' should prompt user before nuking entire directory ___ Python tracker <https://bugs.python.org/issue46326> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1774736] Binding fails
Changes by Ali Gholami Rudi: -- versions: +Python 3.0 _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1774736> _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1774736] Binding fails
Ali Gholami Rudi added the comment: The same as issue1028. Fixed in r57450. _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1774736> _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35173] Re-use already existing functionality to allow Python 2.7.x (both embedded and standalone) to locate the module path according to the shared library
Ali Rizvi-Santiago added the comment: Sure. It was for Python2 anyways. -Ali On Wed, Sep 25, 2019 at 8:00 PM STINNER Victor wrote: > > STINNER Victor added the comment: > > Modules/getpath.c and PC/getpathp.c have been deeply reworked with the > implementation of the PEP 587 in Python 3.8. Parameters which are already > set (ex: Py_SetProgramName() or using the new PyConfig API) are no longer > overriden. I added some tests on the "path configuration". > > The most reliable way to configure the path configuration is now to use > the new initialization API using PyConfig. > https://docs.python.org/dev/c-api/init_config.html > > -- > nosy: +vstinner > resolution: -> fixed > stage: -> resolved > status: open -> closed > versions: +Python 3.8, Python 3.9 -Python 2.7 > > ___ > Python tracker > <https://bugs.python.org/issue35173> > ___ > -- ___ Python tracker <https://bugs.python.org/issue35173> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45957] _tkinter.TclError: expected boolean value but got ""
New submission from Ali Amin-Nejad : On macOS, the following minimal example: ``` import tkinter as tk root = tk.Tk() button = tk.Button(root, text="Exit", command=root.destroy) button.pack() root.wm_overrideredirect(True) root.mainloop() ``` yields the following stack trace: ``` Traceback (most recent call last): File "blah.py", line 6, in root.wm_overrideredirect(True) File "/Users/ali/miniconda3/envs/bitfount/lib/python3.8/tkinter/__init__.py", line 2176, in wm_overrideredirect return self._getboolean(self.tk.call( File "/Users/ali/miniconda3/envs/bitfount/lib/python3.8/tkinter/__init__.py", line 1448, in _getboolean return self.tk.getboolean(string) _tkinter.TclError: expected boolean value but got "" ``` -- components: Tkinter, macOS messages: 407494 nosy: amin-nejad, ned.deily, ronaldoussoren priority: normal severity: normal status: open title: _tkinter.TclError: expected boolean value but got "" type: crash versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue45957> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45957] _tkinter.TclError: expected boolean value but got ""
Ali Amin-Nejad added the comment: @serhiy.storchaka I tried that command, the returned value is not an empty string, it is an object of type . However including that line in my script immediately after creating the `root` object actually fixes the problem - no more error and the button appears and is responsive. @ned.deily I am on tkinter 8.6.11. The output from the second command is: ``` /Users/ali/miniconda3/envs/bitfount/lib/python3.8/lib-dynload/_tkinter.cpython-38-darwin.so: @rpath/libtcl8.6.dylib (compatibility version 8.6.0, current version 8.6.11) @rpath/libtk8.6.dylib (compatibility version 8.6.0, current version 8.6.11) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0) ``` I have just tried the same script in a separate python 3.9 environment with python 3.9.6 and tkinter 8.6.10 and the error is not there so it seems like it is introduced in 8.6.11. Happy to try on 8.6.12 but I'm not sure how to upgrade to it. -- ___ Python tracker <https://bugs.python.org/issue45957> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45957] _tkinter.TclError: expected boolean value but got ""
Ali Amin-Nejad added the comment: Thanks Serhiy, the output is: ['StateSpec'] [''] -- ___ Python tracker <https://bugs.python.org/issue45957> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45957] _tkinter.TclError: expected boolean value but got ""
Ali Amin-Nejad added the comment: It seems like it must be a mac-specific issue just on 8.6.11 then if ned couldn't reproduce on 8.6.12. How does one go about upgrading their tkinter version? Thanks -- ___ Python tracker <https://bugs.python.org/issue45957> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35172] Add support for other MSVC compiler versions to distutils. distutils makes two incorrect assumption that MSVC compiler versions scale linearly and that the crt's are the same.
New submission from Ali Rizvi-Santiago : Distutils makes a few incorrect assumptions that prevent it from supporting the newer Microsoft-y C compilers. This patch fixes it up till MSVC 14.0. There are 2 assumptions that are made by distutils and they are as follows. The first one is that MSVC's versions scale linearly (subtracting 6). This assumption breaks when encountering major version 13.0 as VS2013 (12.0) uses 1800 and VS2015 (14.0) uses 1900 and so the calculation for version 13.0 does not actually exist. This was fixed in the patch for both msvc9compiler.py and msvccompiler.py by skipping the major version 13. The second assumption is in the get_msvcr() function in cygwinccompiler.py and is responsible for identifying the CRT name. The newer versions of MSVC aren't listed, so these were added in the patch. However, for version 1900 (MSVC 14.0) the crt is now named "vcruntime140" which was included. It might be better to to make this table-based if there is long-term interest in supporting these other compilers. These are the only issues that I've ever encountered over the years with building CPython 2.7.x with the newer VS compilers. -- components: Distutils files: distutils.patch keywords: patch messages: 329321 nosy: Ali Rizvi-Santiago, dstufft, eric.araujo priority: normal severity: normal status: open title: Add support for other MSVC compiler versions to distutils. distutils makes two incorrect assumption that MSVC compiler versions scale linearly and that the crt's are the same. type: enhancement versions: Python 2.7 Added file: https://bugs.python.org/file47908/distutils.patch ___ Python tracker <https://bugs.python.org/issue35172> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35173] Re-use already existing functionality to allow Python 2.7.x (both embedded and standalone) to locate the module path
New submission from Ali Rizvi-Santiago : This is specific to the Windows platform as it's the only platform that uses the registry and other path hacks to identify the default module path. This patch is mostly intended for embedded Python, but is also applicable to a stand-alone Python. A few years ago, I was looking at relocating my Python interpreter so that an embedded application (that I didn't have control over) would use the correct module path. While merging my code into CPython, I quickly noticed that Python already supported doing this with Py_ENABLE_SHARED but due to the implementation wasn't actually using it for some reason. The code that implements this is 10+ years old, so perhaps it was just an oversight or some other reason that I didn't know about. Inside PC/getpathp.c there's a static variable, "dllpath", that is initialized with the path to the DLL that is being dynamically loaded when Py_ENABLE_SHARED is specified. Normally arg0 is used to locate the module path, but when embedding Python the .exe and thus arg0 is not involved. So, this patch uses "dllpath" by adding a final case to the calculation of the path by assigning it to "pythonhome" if the home was not able to be determined by any other means. This is done in 2 places within "calculatepath()". This allows one to have multiple versions of Python (32-bit, 64-bit, older versions, etc) on the same Windows system and so a user should not need to copy the Python library into their System path or explicitly set any environment variables (unless truly desired of course). This should greatly simplify relocation of Python as the DLL and executable can be moved around without being dependant on any external invariants. -- components: Interpreter Core files: relocate-with-dllpath.patch keywords: patch messages: 329322 nosy: Ali Rizvi-Santiago priority: normal severity: normal status: open title: Re-use already existing functionality to allow Python 2.7.x (both embedded and standalone) to locate the module path type: enhancement versions: Python 2.7 Added file: https://bugs.python.org/file47909/relocate-with-dllpath.patch ___ Python tracker <https://bugs.python.org/issue35173> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35173] Re-use already existing functionality to allow Python 2.7.x (both embedded and standalone) to locate the module path according to the shared library
Change by Ali Rizvi-Santiago : -- title: Re-use already existing functionality to allow Python 2.7.x (both embedded and standalone) to locate the module path -> Re-use already existing functionality to allow Python 2.7.x (both embedded and standalone) to locate the module path according to the shared library ___ Python tracker <https://bugs.python.org/issue35173> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17524] Problem to run a method
New submission from Ali Massah Kiani: when i run attached code python.exe exit with code: when i trace this code problem was the this method : mat = cv.GetMat(AviFile) and problem is, not error or exeption rises this problem is for python or opencv? thanks. -- components: Library (Lib) files: form.py messages: 184998 nosy: aligoglos priority: normal severity: normal status: open title: Problem to run a method type: crash versions: Python 2.7 Added file: http://bugs.python.org/file29550/form.py ___ Python tracker <http://bugs.python.org/issue17524> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com