[MacPorts] #44275: py-pint @0.5.1_0 compat directory not installed
MacPorts
noreply at macports.org
Tue Jul 8 04:33:11 PDT 2014
#44275: py-pint @0.5.1_0 compat directory not installed
----------------------+--------------------------------
Reporter: jeisch@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.1
Keywords: py-pint | Port: py-pint
----------------------+--------------------------------
With pint @0.5.1_0 installed, trying to import pint from python 2.7 gives
the following error:
{{{
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/pint/context.py in <module>()
17 import weakref
18
---> 19 from .compat import ChainMap
20 from .util import ParserHelper, string_types
21
ImportError: No module named compat
}}}
Listing the directory does not show the compat directory:
{{{
[mac:python2.7/site-packages/pint] user% ls -al
total 568
drwxr-xr-x 18 root wheel 612 Jun 10 15:50 .
drwxr-xr-x 177 root wheel 6018 Jul 7 15:26 ..
-rw-r--r-- 1 root wheel 2855 Jun 3 21:47 __init__.py
-rw-r--r-- 1 root wheel 3395 Jun 7 13:55 __init__.pyc
-rw-r--r-- 1 root wheel 1494 Jun 3 21:47 constants_en.txt
-rw-r--r-- 1 root wheel 7994 Jun 3 21:47 context.py
-rw-r--r-- 1 root wheel 11092 Jun 7 13:55 context.pyc
-rw-r--r-- 1 root wheel 10180 Jun 3 21:47 default_en.txt
-rw-r--r-- 1 root wheel 5593 Jun 3 21:47 formatting.py
-rw-r--r-- 1 root wheel 5764 Jun 7 13:55 formatting.pyc
-rw-r--r-- 1 root wheel 3139 Jun 3 21:47 measurement.py
-rw-r--r-- 1 root wheel 4195 Jun 7 13:55 measurement.pyc
-rw-r--r-- 1 root wheel 36355 Jun 3 21:47 quantity.py
-rw-r--r-- 1 root wheel 36110 Jun 7 13:55 quantity.pyc
-rw-r--r-- 1 root wheel 46978 Jun 3 21:47 unit.py
-rw-r--r-- 1 root wheel 53567 Jun 7 13:55 unit.pyc
-rw-r--r-- 1 root wheel 13383 Jun 3 21:47 util.py
-rw-r--r-- 1 root wheel 18890 Jun 7 13:55 util.pyc
}}}
reverting to @0.4.2_0 brings back the compat.py file:
{{{
[mac:python2.7/site-packages/pint] user% ls
__init__.py context.pyc unit.py
__init__.pyc default_en.txt unit.pyc
compat.py measurement.py util.py
compat.pyc measurement.pyc util.pyc
constants_en.txt quantity.py
context.py quantity.pyc
}}}
Note that pint switched to a folder for the compat module a while back:
https://github.com/hgrecco/pint/tree/master/pint
--
Ticket URL: <https://trac.macports.org/ticket/44275>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list