[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-04-24 Thread Kjell Braden


Kjell Braden  added the comment:

Fair enough, PR updated.

--

___
Python tracker 
<https://bugs.python.org/issue39148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-04-21 Thread Kjell Braden


Kjell Braden  added the comment:

Please let me know if there is anything else I can do to get this going.

--

___
Python tracker 
<https://bugs.python.org/issue39148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-04-05 Thread Kjell Braden


Kjell Braden  added the comment:

PR is up. Any chance we get this reviewed for inclusion in 3.9.0a6 / 3.8.3rc1?

--

___
Python tracker 
<https://bugs.python.org/issue39148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-23 Thread Kjell Braden


Change by Kjell Braden :


--
keywords: +patch
pull_requests: +18482
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/19121

___
Python tracker 
<https://bugs.python.org/issue39148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-23 Thread Kjell Braden


Kjell Braden  added the comment:

./configure is not run on Windows, but I believe the define should go here:

https://github.com/python/cpython/blob/8510f430781118d9b603c3a2f06945d6ebc5fe42/PC/pyconfig.h#L678

--

___
Python tracker 
<https://bugs.python.org/issue39148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-22 Thread Kjell Braden


Kjell Braden  added the comment:

Just to confirm, for some reason ENABLE_IPV6 is not set when compiling 
_overlapped. I'm not familiar enough with the windows build infrastructure to 
submit a PR though.

--
versions: +Python 3.9

___
Python tracker 
<https://bugs.python.org/issue39148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-22 Thread Kjell Braden


Kjell Braden  added the comment:

I tried some debugging with Python 3.9.0a4 and it looks like unparse_address in 
overlapped.c 
(https://github.com/python/cpython/blob/v3.9.0a4/Modules/overlapped.c#L689) 
raises the error. Almost seems like ENABLE_IPV6 is not set...

--

___
Python tracker 
<https://bugs.python.org/issue39148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-22 Thread Kjell Braden


Change by Kjell Braden :


Removed file: https://bugs.python.org/file48996/udp_ipv6_server.py

___
Python tracker 
<https://bugs.python.org/issue39148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-03-22 Thread Kjell Braden


Change by Kjell Braden :


--
nosy: +kbr
Added file: https://bugs.python.org/file48996/udp_ipv6_server.py

___
Python tracker 
<https://bugs.python.org/issue39148>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40040] ProactorEventLoop fails on recvfrom with IPv6 sockets

2020-03-22 Thread Kjell Braden


Kjell Braden  added the comment:

sorry - is a duplicate of https://bugs.python.org/issue39148

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue40040>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40040] ProactorEventLoop fails on recvfrom with IPv6 sockets

2020-03-22 Thread Kjell Braden


New submission from Kjell Braden :

on Windows 10 with Python 3.8.2 and Python 3.9.0a4, the ProactorEventLoop 
raises "OSError: [WinError 87] The parameter is incorrect" when recvfrom on an 
AF_INET6 socket returns data:


DEBUG:asyncio:Using proactor: IocpProactor
INFO:asyncio:Datagram endpoint local_addr=('::', 1) remote_addr=None 
created: (<_ProactorDatagramTransport fd=288>, <__main__.Prot object at 
0x028739A09580>)
ERROR:root:error_received
Traceback (most recent call last):
  File "...\Python\Python39\lib\asyncio\proactor_events.py", line 548, in 
_loop_reading
res = fut.result()
  File "...\Python\Python39\lib\asyncio\windows_events.py", line 808, in _poll
value = callback(transferred, key, ov)
  File "...\Python\Python39\lib\asyncio\windows_events.py", line 496, in 
finish_recv
return ov.getresult()
OSError: [WinError 87] The parameter is incorrect


The same code works without issues on python 3.7 or when using 
WindowsSelectorEventLoopPolicy.

--
components: asyncio
files: udp_ipv6_server.py
messages: 364794
nosy: asvetlov, kbr, yselivanov
priority: normal
severity: normal
status: open
title: ProactorEventLoop fails on recvfrom with IPv6 sockets
type: behavior
versions: Python 3.8, Python 3.9
Added file: https://bugs.python.org/file48995/udp_ipv6_server.py

___
Python tracker 
<https://bugs.python.org/issue40040>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2624] swig support in distutils should use the build and temp dirs

2009-02-08 Thread Kjell Braden

Kjell Braden fn...@pentabarf.de added the comment:

Except that the _wrap.c file would still be created at the wrong place,
yes, you're right.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2624
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2624] swig support in distutils should use the build and temp dirs

2008-04-13 Thread Kjell Braden

Kjell Braden [EMAIL PROTECTED] added the comment:

Note that the language specific files can't be handled via py_modules
because this is processed before their generation.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2624
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2624] swig support in distutils should use the build and temp dirs

2008-04-13 Thread Kjell Braden

Changes by Kjell Braden [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file10017/python_distutils+swig.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2624
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2624] swig support in distutils should use the build and temp dirs

2008-04-13 Thread Kjell Braden

Changes by Kjell Braden [EMAIL PROTECTED]:


--
components: +Distutils -Demos and Tools

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2624
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2624] swig support in distutils should use the build and temp dirs

2008-04-12 Thread Kjell Braden

New submission from Kjell Braden [EMAIL PROTECTED]:

Distutils should tell swig to create it's C wrapper file into the
temporary directory (eg. build/temp.linux-i686-2.5) and to write the
language specific files to the library directory (eg.
build/lib.linux-i686-2.5).

Rationale:
Without the language specific files, python swig extensions won't be
able to run, so they should definetly be distributed by distutils.
The wrapper files are build by-products and should therefore be in the
temporary directory, so they get cleaned up on setup.py clean.

--
components: Demos and Tools
messages: 65399
nosy: afflux
severity: normal
status: open
title: swig support in distutils should use the build and temp dirs
type: behavior
versions: Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2624
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2624] swig support in distutils should use the build and temp dirs

2008-04-12 Thread Kjell Braden

Kjell Braden [EMAIL PROTECTED] added the comment:

Without having it tested very much, the attached patch fixes this issue
for me.

--
keywords: +patch
Added file: http://bugs.python.org/file10017/python_distutils+swig.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2624
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com