public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin-apps@cygwin.com
Subject: Re: Moving from python2 to python3
Date: Tue, 29 Dec 2020 10:04:00 -0500	[thread overview]
Message-ID: <d85b216d-91f2-7eb3-cee6-6fcf1a3d9ed4@cornell.edu> (raw)
In-Reply-To: <878s9gom2e.fsf@Rainer.invalid>

On 12/29/2020 7:04 AM, Achim Gratz wrote:
> Marco Atzeri via Cygwin-apps writes:
>> all python packages have been updated.
>>
>> /usr/bin/python
>> /usr/bin/python3
>>
>> both point now to python3.8 as default using alternatives.
> 
> You broke the CI:
> 
> Traceback (most recent call last):
>    File "./scallywag", line 69, in <module>
>      response = urllib.request.urlopen(req, json.dumps(data).encode('utf-8'))
>    File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
>      return opener.open(url, data, timeout)
>    File "/usr/lib/python3.8/urllib/request.py", line 525, in open
>      response = self._open(req, data)
>    File "/usr/lib/python3.8/urllib/request.py", line 542, in _open
>      result = self._call_chain(self.handle_open, protocol, protocol +
>    File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
>      result = func(*args)
>    File "/usr/lib/python3.8/urllib/request.py", line 1379, in http_open
>      return self.do_open(http.client.HTTPConnection, req)
>    File "/usr/lib/python3.8/urllib/request.py", line 1350, in do_open
>      h.request(req.get_method(), req.selector, req.data, headers,
>    File "/usr/lib/python3.8/http/client.py", line 1255, in request
>      self._send_request(method, url, body, headers, encode_chunked)
>    File "/usr/lib/python3.8/http/client.py", line 1301, in _send_request
>      self.endheaders(body, encode_chunked=encode_chunked)
>    File "/usr/lib/python3.8/http/client.py", line 1250, in endheaders
>      self._send_output(message_body, encode_chunked=encode_chunked)
>    File "/usr/lib/python3.8/http/client.py", line 1010, in _send_output
>      self.send(msg)
>    File "/usr/lib/python3.8/http/client.py", line 950, in send
>      self.connect()
>    File "/usr/lib/python3.8/http/client.py", line 923, in connect
>      self.sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
> AttributeError: module 'socket' has no attribute 'TCP_NODELAY'

An internet search led me to this:

   https://bugs.python.org/issue41374

As explained in that report, the TCP_* macros weren't defined in the build of 
python on Cygwin because <netinet/tcp.h> was not included (see 
https://github.com/python/cpython/blob/592527f3ee59616eca2bd1da771f7c14cee808d5/Modules/socketmodule.h#L11). 
  Is that still the case in the current python sources?

Ken

  parent reply	other threads:[~2020-12-29 15:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-28 18:11 Ken Brown
2020-12-04 21:04 ` Marco Atzeri
2020-12-29 10:49   ` Marco Atzeri
2020-12-29 12:04     ` Achim Gratz
2020-12-29 13:13       ` Marco Atzeri
2020-12-29 16:42         ` Achim Gratz
2020-12-29 17:02           ` Marco Atzeri
2020-12-29 20:27             ` Marco Atzeri
2020-12-29 20:57               ` Achim Gratz
2020-12-29 21:23                 ` Marco Atzeri
2020-12-30  7:21                   ` Achim Gratz
2020-12-30 11:14                     ` Marco Atzeri
2020-12-30 14:10                       ` ASSI
2020-12-30 15:41                         ` Ken Brown
2020-12-30 18:13                           ` Marco Atzeri
2020-12-29 15:04       ` Ken Brown [this message]
2020-12-29 15:46         ` Marco Atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d85b216d-91f2-7eb3-cee6-6fcf1a3d9ed4@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).