Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#39433 closed defect (fixed)

py27-numba installation not functional

Reported by: david.zwicker@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: py27-numba

Description

I just installed py27-numba with the latest macports (2.1.3) and the installation worked without errors, see log below. However, when I try to import numba in python the following error occurs:

In [1]: import numba
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-6d1098de51de> in <module>()
----> 1 import numba

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numba/__init__.pyc in <module>()
     16 PY3 = sys.version_info[0] == 3
     17 
---> 18 from numba import utils, typesystem
     19 
     20 def get_include():

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numba/typesystem/__init__.py in <module>()
     17 
     18 from .universe import *
---> 19 from .defaults import *
     20 from .typeutils import *
     21 

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numba/typesystem/defaults.py in <module>()
     10 from . import promotion, constants, lowering
     11 from . import numbatypes as numba_domain
---> 12 from . import llvmtypes as llvm_domain
     13 from . import ctypestypes as ctypes_domain
     14 

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numba/typesystem/llvmtypes.py in <module>()
      3 from numba.typesystem.itypesystem import consing, tyname
      4 from numba.typesystem import universe
----> 5 from llvmmath.ltypes import l_longdouble
      6 
      7 domain_name = "llvm"

ImportError: No module named llvmmath.ltypes

macports installation log:

[local/bin] > install py27-numba
--->  Computing dependencies for py27-numba
--->  Dependencies to be installed: py27-cffi py27-pycparser py27-llvmpy py27-meta-devel
--->  Fetching archive for py27-pycparser
--->  Attempting to fetch py27-pycparser-2.09.1_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/py27-pycparser
--->  Attempting to fetch py27-pycparser-2.09.1_0.darwin_12.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/py27-pycparser
--->  Installing py27-pycparser @2.09.1_0
--->  Activating py27-pycparser @2.09.1_0
--->  Cleaning py27-pycparser
--->  Fetching archive for py27-cffi
--->  Attempting to fetch py27-cffi-0.6_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/py27-cffi
--->  Attempting to fetch py27-cffi-0.6_0.darwin_12.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/py27-cffi
--->  Installing py27-cffi @0.6_0
--->  Activating py27-cffi @0.6_0
--->  Cleaning py27-cffi
--->  Fetching archive for py27-llvmpy
--->  Attempting to fetch py27-llvmpy-0.11.2_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/py27-llvmpy
--->  Attempting to fetch py27-llvmpy-0.11.2_0.darwin_12.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/py27-llvmpy
--->  Installing py27-llvmpy @0.11.2_0
--->  Activating py27-llvmpy @0.11.2_0
--->  Cleaning py27-llvmpy
--->  Fetching archive for py27-meta-devel
--->  Attempting to fetch py27-meta-devel-0.4.1_20130222.darwin_12.noarch.tbz2 from http://lil.fr.packages.macports.org/py27-meta-devel
--->  Attempting to fetch py27-meta-devel-0.4.1_20130222.darwin_12.noarch.tbz2.rmd160 from http://lil.fr.packages.macports.org/py27-meta-devel
--->  Installing py27-meta-devel @0.4.1_20130222
--->  Activating py27-meta-devel @0.4.1_20130222
--->  Cleaning py27-meta-devel
--->  Fetching archive for py27-numba
--->  Attempting to fetch py27-numba-0.9.0_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/py27-numba
--->  Attempting to fetch py27-numba-0.9.0_0.darwin_12.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/py27-numba
--->  Installing py27-numba @0.9.0_0
--->  Activating py27-numba @0.9.0_0
--->  Cleaning py27-numba
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

Change History (4)

comment:1 Changed 11 years ago by david.zwicker@…

Cc: david.zwicker@… added

Cc Me!

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

Cc: david.zwicker@… removed
Keywords: numba llvm removed
Owner: changed from macports-tickets@… to stromnov@…

comment:3 Changed 11 years ago by stromnov (Andrey Stromnov)

Resolution: fixed
Status: newclosed

Thanks! Fixed in r107029.

comment:4 Changed 11 years ago by cooljeanius (Eric Gallager)

If the installation completed without errors, shouldn't it be depends_run instead of depends_lib?

Note: See TracTickets for help on using tickets.