New submission from S S :
when trying to install beutifulsoup package on windows xp x86 with python 2.6.6
getting the following error
C:\Python26>python C:\temp\BeautifulSoup-3.0.8.1\setup.py install
'import site' failed; use -v for traceback
Traceback (most recent call last):
S S added the comment:
Brett,
the installation did not had any issues.
its running on windows xp, i am administrator of the machine so no permission
issues.
nothing got moved either as it fresh install
--
___
Python tracker
<h
S S added the comment:
finally was able to figure it out.
i had another product installed, which uses python 2.4 that product during
installation put PYTHONHOME into system variable environment.
as soon as i either change that PYTHONHOME to my latest python path c:\python26
everything
New submission from s :
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
###
Process: Python [1889]
Path:
/Library/Frameworks/Python.framewor
s added the comment:
Guys,
First of all - thank you for accepting it and trying to fix it.
I lost two days attempting to resurrect python3 on my laptop and ended up
with uninstalling it and restoring python 2.7.10.
I agree (and I think it is separate and well known python's problem) -
ther
s added the comment:
:)
sure. if you want to close it - it's up to you.
if you however, want to fix it, please tell me what information do you need
me to provide.
I don't think my tone was bad/offensive. ...and it's still a bug,
regardless of my tone or anything else.
and by t
New submission from Ritvik S :
I had a problem running the following code. When I ran through what I thought
python was supposed to do, I got a different answer than what python did. I
think this is an error. Here is the code:
problem_ary = [['a','b','c
New submission from Karthik S :
Greeting of the day to all..
I would like to address few queries as mentioned in the below.
python 2.7 code is running fine on RHEL 7.9,we are migrating to python3 from
Python2 using 2to3 on RHEL 7.9.
After migrating, When we run our products in python 3.6,we
Andy S added the comment:
Can reproduce this on 3.9. Is the fact 3.9 is in `bugfix` status enough to
backport any fixing changes from 3.11 (if that's true and the bug was fixed)?
--
___
Python tracker
<https://bugs.python.org/is
Andy S added the comment:
Then maybe those RMs (for 3.9 and 3.10) should decide on their own? That should
mean the bug should be reopened for them to get assigned to.
--
___
Python tracker
<https://bugs.python.org/issue42
Jaspar S. added the comment:
I would love to use chown for a pathlib Path, too.
It may not be used often, but if anyone want's to change all the os references
from a file, it would be cool to have it on pathlib!
--
nosy: +y0urself
___
P
Change by Jaspar S. :
--
pull_requests: +29382
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31212
___
Python tracker
<https://bugs.python.org/issu
New submission from MA S :
I can't install Python or Strawberry Perl on the Windows 8 Developer Preview :(
I keep getting installer error 2203; the log file's attached. I really don't
know what's wrong...
--
components: Windows
files: python.log
messages: 144975
Changes by Srikanth S :
--
nosy: +srikanths
___
Python tracker
<http://bugs.python.org/issue1372770>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Srikanth S :
--
nosy: +srikanths
___
Python tracker
<http://bugs.python.org/issue11492>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Srikanth S :
--
nosy: +srikanths
___
Python tracker
<http://bugs.python.org/issue6942>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Srikanth S :
--
nosy: +srikanths
___
Python tracker
<http://bugs.python.org/issue1670765>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Srikanth S :
--
nosy: +srikanths
___
Python tracker
<http://bugs.python.org/issue968430>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from eswar s :
-5 ** 4 results as -625. It should be 625
--
components: None
messages: 118311
nosy: eswar.s
priority: normal
severity: normal
status: open
title: ** operator yielding wrong result for negative numbers
type: compile error
versions: Python 2.6
New submission from mike s :
The SMTPServer supplied by the smtpd library allows clients to send mail to any
domain. This makes the server attractive to spammers, thinking they have found
an open relay.
The patch below adds an "accept_domain" method to SMTPServer (documented below)
Changes by mike s :
--
title: smtpd module does not allow -> smtpd module does not allow domain
filtering
___
Python tracker
<http://bugs.python.org/iss
Changes by mike s :
--
title: smtpd module does not allow domain filtering -> smtpd SMTPServer does
not allow domain filtering
___
Python tracker
<http://bugs.python.org/iss
mike s added the comment:
I don't think that is a suitable solution for this problem, because the
expected SMTP behavior is to reject an unsuitable RCPT TO directly after it is
proposed by the client.
However, I think it would be a great idea to have such a method being called
after th
New submission from S Arrowsmith :
Asking mimetypes to reload mime.types can cause guess_extension() to
return a different result if multiple extensions are mapped to that mime
type:
>>> import mimetypes
>>> mimetypes.guess_extension('image/jpeg'
S Arrowsmith added the comment:
Ah, yes, forgot to mention this is on Debian 4.0. I doubt you're going
to run into it on a Windows system unless you explicitly give init() a
mime.types file, looking at the knownfiles list used by default.
___
Python tr
New submission from Yuval S :
In Python 2.7, the __package__ variable isn't set when __init__.py is run,
until an import is done. In Python 3.5, it is set correctly.
e.g.
# mkdir x && echo "print(__package__)" | tee x/__init__.py x/test.py
# python2 x.test
None
x
# py
Yuval S added the comment:
* It should be python[23] -m x.test, of course.
--
___
Python tracker
<https://bugs.python.org/issue38457>
___
___
Python-bugs-list m
Suhail S. added the comment:
In my usecase, I wanted to override the behaviour of __getitem__. I was able to
accomplish this by subclassing EnumMeta.
Having done so, I was able to work around this bug as follows. Instead of
trying to access the functional API via Enum (using an enum as the
Change by Alexei S :
--
components: +Tests
type: -> compile error
___
Python tracker
<https://bugs.python.org/issue43583>
___
___
Python-bugs-list mai
Change by Alexei S :
--
title: python3.9.1 test_embed test_tabnanny failed -> python3.9.1python3.9.1
test_embed test_tabnanny failed
___
Python tracker
<https://bugs.python.org/issu
Change by Alexei S :
--
resolution: out of date ->
status: closed -> open
___
Python tracker
<https://bugs.python.org/issue43001>
___
___
Python-bugs-list
Change by Alexei S :
--
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue43001>
___
___
Python-bugs-list mailing list
Unsubscribe:
Alexei S added the comment:
python 3.8.9 also show compile problems
my system: Linux Mint 20.1 Cinnamon (Cinnamon 4.8.6)
kernel 5.8.0-48-generic
$uname -a
Linux home 5.8.0-48-generic #54~20.04.1-Ubuntu SMP Sat Mar 20 13:40:25 UTC 2021
x86_64 x86_64 x86_64 GNU/Linux
I tried to execute problem
Change by Alexei S :
Added file: https://bugs.python.org/file50007/log_make_test 3.9.2.log
___
Python tracker
<https://bugs.python.org/issue43001>
___
___
Python-bug
Change by Alexei S :
--
title: python3.8.9, python3.9.1 test_embed test_tabnanny failed -> python3.8.9,
python3.9.2 test_embed test_tabnanny failed
___
Python tracker
<https://bugs.python.org/issu
Change by Alexei S :
Added file: https://bugs.python.org/file50009/log_make 3.9.2.log
___
Python tracker
<https://bugs.python.org/issue44031>
___
___
Python-bugs-list m
New submission from Alexei S :
Python 3.9.2 make test
== Tests result: FAILURE then FAILURE ==
396 tests OK.
2 tests failed:
test_embed test_tabnanny
27 tests skipped:
test_bz2 test_curses test_dbm_gnu test_dbm_ndbm test_devpoll
test_gdb test_idle test_ioctl test_kqueue test_lzma
Change by Alexei S :
Added file: https://bugs.python.org/file50010/log_make_test 3.9.2.log
___
Python tracker
<https://bugs.python.org/issue44031>
___
___
Python-bug
Change by Alexei S :
Added file: https://bugs.python.org/file50011/log_make_test 3.8.9.log
___
Python tracker
<https://bugs.python.org/issue44031>
___
___
Python-bug
Alexei S added the comment:
this problem was announced also in 43001
https://bugs.python.org/issue43001?@ok_message=%D0%98%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5%D0%BD%D1%8B%20%D0%B0%D1%82%D1%80%D0%B8%D0%B1%D1%83%D1%82%D1%8B%20%D0%B7%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%B8%D0%B5%20%D0%BE%D0%B1%D1%8A%D0%B5
Change by Alexei S :
--
resolution: -> out of date
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue43001>
___
___
Python-bugs-list
Change by Alexei S :
Added file: https://bugs.python.org/file50012/log_make_test 3.8.9.log
___
Python tracker
<https://bugs.python.org/issue43583>
___
___
Python-bug
Change by Alexei S :
Added file: https://bugs.python.org/file50013/log_make_test 3.9.2.log
___
Python tracker
<https://bugs.python.org/issue43583>
___
___
Python-bug
Alexei S added the comment:
I have opened the same issue
https://bugs.python.org/issue44031
--
nosy: +asholomitskiy84
___
Python tracker
<https://bugs.python.org/issue43
Alexei S added the comment:
the same issue also in
https://bugs.python.org/issue43583
--
___
Python tracker
<https://bugs.python.org/issue44031>
___
___
Pytho
Alexei S added the comment:
python3 -m ~/Загрузки/Python-3.8.9/Lib/test/test_embed -v
/usr/bin/python3: Error while finding module specification for
'/home/alexei/Загрузки/Python-3.8.9/Lib/test/test_embed' (ModuleNotFoundError:
No module named '/home/alexei/Загрузки/Python-
Alexei S added the comment:
i rename folder and tried
python3 -m '~/Загрузки/Python-389/Lib/test/test_embed' -v
/usr/bin/python3: No module named ~/Загрузки/Python-389/Lib/test/test_embed
???
--
___
Python tracker
<https://bu
Alexei S added the comment:
make test TESTOPTS="-v test_embed test_tabnanny"
CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -fwrapv
-O3 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./set
Alexei S added the comment:
I downloaded tar.gz of Python-3.8.9 and Python-3.9.4 into my ~/Downloads folder
(~/Загрузки in Russian)
extracted them, after that executed:
chmod +x configure
CXX=/usr/bin/g++ ./configure --enable-optimizations
make -j4
problems the same for both Python versions
Alexei S added the comment:
the problem is caused by language??
--
___
Python tracker
<https://bugs.python.org/issue44031>
___
___
Python-bugs-list mailin
Alexei S added the comment:
yes!
the problem was in folder caption!
--
___
Python tracker
<https://bugs.python.org/issue44031>
___
___
Python-bugs-list mailin
Alexei S added the comment:
how we can fix this small problem in next releases
of test_embed test_tabnanny?
other tests didn't fail
--
___
Python tracker
<https://bugs.python.org/is
New submission from Jeff S :
The documentation page https://docs.python.org/3/library/tkinter.html states
"Passing the config() method the name of a shorthand option will return a
2-tuple, not 5-tuple." While config() without argument does return a map that
yields references lik
New submission from S Murthy :
I am using the dis module to look at source (and logical) lines of code vs
corresponding bytecode instructions. I am bit confused by the output of dis.dis
when disassembling a given method vs the corresponding source string, e.g.
>>> def f(x): re
S Murthy added the comment:
@steven.daprano In this case, the method f was created by via def. And calling
dis.dis(s) where s is the source code of f (say s = inspect.getsource(f)) shows
the bytecode both for the header and the body, as is clear enough from the
example I first posted
S Murthy added the comment:
BTW how else are methods/functions are created in Python except via def?
--
___
Python tracker
<https://bugs.python.org/issue39
S Murthy added the comment:
Yes, I know that a method body may contain more than just the return statement
- I was referrring to the byte code for the method def f(x): return x**2.
I don't think the output of dis.dis is correct here for the source string of f
- it doesn't make
New submission from S Murthy :
I note that on disassembling a piece of source code (via source strings or code
objects) the corresponding sequence of bytecode instruction objects
(https://docs.python.org/3/library/dis.html#dis.Instruction) do not always have
the `starts_line` attribute set
S Murthy added the comment:
Docstring for `Instruction` should be more precise. ATM the description of
`starts_line` is
line started by this opcode (if any), otherwise None
I think "source line started ..." would be a bit more precise an
New submission from Michael S :
I just read
https://docs.python.org/3/reference/compound_stmts.html#function-definitions
The item parameter_list is defined as:
parameter_list::= defparameter ("," defparameter)* "," "/" [&
Michael S added the comment:
Thanks Pablo,
sorry, I was just stupid.
> Do you think that adding these explicit parentheses would help with help
> making this more clear?
Maybe. I read the BNF documentation the first time today, but since it's not
intended for beginners, I
Change by brent s. :
--
nosy: +bsaner
___
Python tracker
<https://bugs.python.org/issue9253>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Rustam S. added the comment:
Please take a look at this as well:
(ipython #12049 'Unhandled exception in event loop' (WinError 995))
https://github.com/ipython/ipython/issues/12049#issuecomment-586544339 and below
--
nosy: +Rustam S.
New submission from Yuval S :
The following code gives different results on each run, even though
"``random.seed()``" is used:
>>> import random
>>> random.seed(6)
>>> x = set(str(i) for i in range(500))
>>> print(random.sample(x, 1))
presumably
Yuval S added the comment:
Thank you for the attention and the quick fix. However, the current
documentation for "Notes on Reproducibility" should still address this issue of
hash randomization. Not only `sample` is affected by this, but any code that
combines strings (or bytes o
Change by Yuval S :
--
pull_requests: +18932
pull_request: https://github.com/python/cpython/pull/19596
___
Python tracker
<https://bugs.python.org/issue40
Petter S added the comment:
We should whitelist the protocols. The current solution with `getattr` is
really fragile.
For example, this crashes with a `TypeError`:
`URLopener().open("unknown_proxy://test")`
--
nosy: +Petter S
___
Pyth
Petter S added the comment:
The solution is incomplete because it fixes just this single security issue,
not the inherent fragility of this file.
If, in the future someone happens to add another method starting with open to
this class, we are at risk of having the same problem again.
As
New submission from Petter S :
The following code crashes with TypeError:
URLopener().open("unknown_proxy://test")
the expected behavior is an OSError, which is normally raised for unknown
protocols.
This implementation of directly calling a method called "unknown_proxy"
Change by Petter S :
--
title: UrlOpener raises different exceptions based on implementation detail ->
urllib.request.URLopener raises different exceptions based on implementation
detail
___
Python tracker
<https://bugs.python.org/issu
Petter S added the comment:
OK: https://bugs.python.org/issue40673
--
___
Python tracker
<https://bugs.python.org/issue35907>
___
___
Python-bugs-list mailin
Petter S added the comment:
I can fix this, but it does not have high priority.
--
___
Python tracker
<https://bugs.python.org/issue40673>
___
___
Python-bug
Petter S added the comment:
I see. Perhaps that is the resolution then.
--
___
Python tracker
<https://bugs.python.org/issue40673>
___
___
Python-bugs-list m
New submission from Andy S :
The python (3.6) doc states
(https://docs.python.org/3/reference/simple_stmts.html#the-pass-statement):
pass is a null operation...
So since this is still an operation one could expect that it can be used as an
op to breakpoint on while debugging some scripts
New submission from Alexei S :
== Tests result: FAILURE then FAILURE ==
396 tests OK.
2 tests failed:
test_embed test_tabnanny
27 tests skipped:
test_bz2 test_curses test_dbm_gnu test_dbm_ndbm test_devpoll
test_gdb test_idle test_ioctl test_kqueue test_lzma test_msilib
New submission from Alexei S :
this commands are successful:
CXX=/usr/bin/g++ ./configure --enable-optimizations >> log_configure.log
make -j4 >> log_make.log
errors on make test:
make -j4 test >> log_make_test.log
my system:
uname -a
Linux home 5.8.0-43-generic #49~20.0
Alexei S added the comment:
== Tests result: FAILURE ==
403 tests OK.
3 tests failed:
test_embed test_ssl test_tabnanny
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
New submission from Suhail S. :
It is possible to create custom Enum classes with a metaclass that is a subtype
of EnumMeta. It is also possible to inherit from such an enumeration to create
another enumeration. However, attempting to do so via the functional API raises
an exception. See
Change by Suhail S. :
--
nosy: +barry, eli.bendersky, ethan.furman
___
Python tracker
<https://bugs.python.org/issue43430>
___
___
Python-bugs-list mailin
New submission from S. Zhang :
The following command produced "name.tsvtsv" with version 3.7.1 and 3.8.5
instead of the expected "name.tsv" from version 2.7.5, 3.5.6, and 3.6.7.
Changing * to + produced expected "name.tsv".
python -c 'import re; v="
S. Zhang added the comment:
Thanks. But if talking about empty matches, there would be endless empty
matches at the end in such cases. So in my opinion, [^\.]*$ should match
txt plus the empty match because the greedy rule applies here.
On Fri, Aug 14, 2020 at 10:37 PM Ma Lin wrote
S. Zhang added the comment:
Okay. Thanks.
On Sat, Aug 15, 2020 at 9:07 AM Ma Lin wrote:
>
> Ma Lin added the comment:
>
> There can be at most one empty match at a position. IIRC, Perl's regex
> engine has very similar behavior.
> If don't wan
S. Zhang added the comment:
Thanks.
On Mon, Aug 17, 2020 at 7:40 PM Pablo Galindo Salgado <
rep...@bugs.python.org> wrote:
>
> Change by Pablo Galindo Salgado :
>
>
> --
> resolution: -> not a bug
> stage: ->
Change by Petter S :
--
pull_requests: +13628
pull_request: https://github.com/python/cpython/pull/13746
___
Python tracker
<https://bugs.python.org/issue35
Change by Petter S :
--
pull_requests: +13630
pull_request: https://github.com/python/cpython/pull/13748
___
Python tracker
<https://bugs.python.org/issue27
New submission from brent s. :
(Sorry for the title; not quite sure how to summarize this)
SO! Have I got an interesting one for you.
ISSUE:
In release 3.7.3 (and possibly later), the re module, if one has a string e.g.
'a.b.', a pattern such as '\.*$' will successfully *
brent s. added the comment:
Sorry- by "chokes", I mean "substitutes in multiple replacements".
--
___
Python tracker
<https://bug
brent s. added the comment:
WORKAROUND:
Obviously, str.rstrip('.') still works, but this is of course quite inflexible
compared to a regex pattern.
--
___
Python tracker
<https://bugs.python.o
brent s. added the comment:
"'\.' is an invalid escape sequence. Could you try it with a raw string?"
Well, a valid regex escape, but right. Point taken. I am under the impression,
however, that given the value in ptrn (in example.py) is already a string, it
should be
brent s. added the comment:
Oh for pete's sake. I wish I could edit comments.
Eric-
To make it clear:
*
VERSION: 2.7.16 (default, Mar 11 2019, 18:59:25)
[GCC 8.2.1 20181127]
PATTERN: \.*$
BEFORE: a.b
WITHOUT: a.b
DUMMY: a.bX
AFTER: a.b.
RSTRIP: a.b
==
BEFORE: a.b.
WITHOUT: a.b
Petter S added the comment:
The following message can still appear in the log when running the Django
development server:
Exception happened during processing of request from ('127.0.0.1', 50713)
Traceback (most recent call last):
File &q
Petter S added the comment:
Could potentially already be fixed in Django:
https://github.com/django/django/commit/7785e03ba89aafbd949191f126361fb9103cb980#diff-f6d1c75ec606389da5af6558bf57f171L51
--
___
Python tracker
<https://bugs.python.
Petter S added the comment:
No it is not fixed in Django, but I verified that adding ConnectionAbortedError
on this line
https://github.com/django/django/blob/c6581a40be3bb4c1e13861f0adbb3fe01f09107f/django/core/servers/basehttp.py#L55
fixes the error
Will S added the comment:
Documentation would be appreciated. I have a project that uses BaseManager,
Client, and Listener to create some servers and clients. I would like to update
the project to work with Python 3 and would prefer to update the clients and
the servers separately (i.e
Will S added the comment:
Just to follow up in case anyone comes across my last message later:
I just had to change the last line from
multiprocessing.reducer = pickle2reducer.Pickle2Reducer()
to
multiprocessing.context._default_context.reducer =
pickle2reducer.Pickle2Reducer
New submission from S Safihre:
I have a Python 2.7 C-extension that was made for performance, however, I
noticed something strange on Windows:
When I run locally python setup.py install and it installs it the "egg" way,
the performance of calling the function in the module 500x in
New submission from s-ball :
GNU gettext msgfmt can merge several po files into one single mo file.
The current version of msgfmt can only compile one po file to one mo file.
After looking at the code, the enhancement should be simple to implement.
Command line: if one output file is given
s-ball added the comment:
Ok, I have created a fork, and started coding on a local branch. But it will
take some time, because I assume that I am supposed to write tests for the
msgfmt module...
--
___
Python tracker
<https://bugs.python.
s-ball added the comment:
I have followed SilentGhost's advice and begun by thoroughly testing the
current behaviour. I then realized that I was wrong, and that (probably by
chance) msgfmt.py partially followed my requirements, but pybabel did not and
GNU gettext msgfmt did not real
s-ball added the comment:
After some more thinking about it, my opinion is that the proposed path for
issue 9741 does not address at all my requirements. So I will try to propose a
pull request addressing both issues here.
--
___
Python tracker
1 - 100 of 290 matches
Mail list logo