All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 13516] New: utils/scanpypi: Failure when parsing diffoscope
Date: Wed, 03 Feb 2021 19:07:03 +0000	[thread overview]
Message-ID: <bug-13516-163@https.bugs.busybox.net/> (raw)

https://bugs.busybox.net/show_bug.cgi?id=13516

            Bug ID: 13516
           Summary: utils/scanpypi: Failure when parsing diffoscope
           Product: buildroot
           Version: 2020.02.3
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: conrad.ratschan at collins.com
                CC: buildroot at uclibc.org
  Target Milestone: ---

https://pypi.org/project/diffoscope/

The first failure is when the interpreter selected is python2 (#!/usr/bin/env
python) and the script attempts to parse diffoscopes' __init__.py which does
not specify an encoding (not required in python3) and has a copyright symbol in
a comment:

```
Traceback (most recent call last):
  File "./utils/scanpypi", line 754, in <module>
    main()
  File "./utils/scanpypi", line 702, in main
    package.load_setup()
  File "./utils/scanpypi", line 302, in load_setup
    setup = imp.load_module('setup', s_file, s_path, s_desc)
  File "/tmp/scanpypi-2xcRWc/python-diffoscope/diffoscope-166/setup.py", line
6, in <module>
  File
"/tmp/scanpypi-2xcRWc/python-diffoscope/diffoscope-166/diffoscope/__init__.py",
line 4
SyntaxError: Non-ASCII character '\xc2' in file
/tmp/scanpypi-2xcRWc/python-diffoscope/diffoscope-166/diffoscope/__init__.py on
line 4, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for
details
```

The second issue is if I force it to use python3 to get around the previous
issue, diffoscope's setup.py contains a explicit check for python3 > 3.7 which
fails out the scanpypi script

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2021-02-03 19:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-03 19:07 bugzilla at busybox.net [this message]
2021-02-16 21:35 ` [Buildroot] [Bug 13516] utils/scanpypi: Failure when parsing diffoscope bugzilla at busybox.net
2021-02-20 16:45 ` bugzilla at busybox.net

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=bug-13516-163@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.