Opened 8 years ago

Closed 17 months ago

#51932 closed defect (fixed)

pypi2port: UnicodeEncodeError: 'ascii' codec can't encode character

Reported by: mojca (Mojca Miklavec) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: contrib Version:
Keywords: Cc:
Port: pypi2port

Description

pypi2port seems to have some issues with (non)Unicode.

$pypi2port -s python-ly
...
Traceback (most recent call last):
  File "/opt/local/bin/pypi2port", line 770, in <module>
    main(sys.argv[1:])
  File "/opt/local/bin/pypi2port", line 714, in main
    search(pkg_name)
  File "/opt/local/bin/pypi2port", line 69, in search
    print(package)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xb5' in position 112: ordinal not in range(128)

Change History (3)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Owner: gaurav@… deleted
Status: newassigned

See #54507

comment:2 Changed 17 months ago by jmroot (Joshua Root)

Component: portscontrib

comment:3 Changed 17 months ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: assignedclosed

In da2eee9cc46c29e42ab04cf8c48c78cb093a5ced/macports-contrib (master):

pypi2port: use PyPI's JSON API

The XML-RPC API is deprecated. Also remove search option since that API
has been permanently disabled on PyPI.

Closes: #51932

Note: See TracTickets for help on using tickets.