Opened 5 years ago

Closed 3 years ago

#58781 closed defect (fixed)

gunits @2.18.1: requires module python_requests to match python used

Reported by: kencu (Ken) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gunits

Description (last modified by kencu (Ken))

when first installing or when trying to update currencies with gunit_cur, this error occurs:

Trying to update currency.units (will use existing file if this fails)
./units_cur currency.units
Traceback (most recent call last):
  File "./units_cur", line 57, in <module>
    import requests
ImportError: No module named requests

it can be solved by requiring the python_requests module to match the python version being used (currently random, see 58780 )

Change History (2)

comment:1 Changed 5 years ago by kencu (Ken)

Description: modified (diff)

comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In d5b0ccd4bd0dc65462b0de6e50e9a51476357ba9/macports-ports (master):

gunits: Update to 2.21

Use a specific python.

Closes: #58780

Add dependency on the python requests module.

Closes: #58781

Install currency data in a standard directory and mark the file as
writable by everyone so that gunits_cur can update it.

Closes: #58782

Note: See TracTickets for help on using tickets.