librelist archives

« back to archive

Fwd: Problem running tests

Fwd: Problem running tests

From:
Andy Ray Terrel
Date:
2012-07-16 @ 18:16
Hello all,

I'm trying to run on a Mac and I keep getting the following error (for
almost any example/test).  I have done the submodule init/update and
then tried a setup.py install afterwards.  Any help would be
appreciated.

-- Andy

$ python test_forloop.py
Did you forget to update submodule minivect?
Run 'git submodule init' followed by 'git submodule update'
Traceback (most recent call last):
  File "test_forloop.py", line 9, in <module>
    from numba.decorators import numba_compile
  File "/Users/aterrel/soft/lib/python2.7/site-packages/numba/__init__.py",
line 4, in <module>
    from . import minivect
ImportError: cannot import name minivect

Re: [numba] Fwd: Problem running tests

From:
mark florisson
Date:
2012-07-16 @ 18:29
On 16 July 2012 19:16, Andy Ray Terrel <andy.terrel@gmail.com> wrote:
> Hello all,
>
> I'm trying to run on a Mac and I keep getting the following error (for
> almost any example/test).  I have done the submodule init/update and
> then tried a setup.py install afterwards.  Any help would be
> appreciated.
>
> -- Andy
>
> $ python test_forloop.py
> Did you forget to update submodule minivect?
> Run 'git submodule init' followed by 'git submodule update'
> Traceback (most recent call last):
>   File "test_forloop.py", line 9, in <module>
>     from numba.decorators import numba_compile
>   File "/Users/aterrel/soft/lib/python2.7/site-packages/numba/__init__.py",
> line 4, in <module>
>     from . import minivect
> ImportError: cannot import name minivect

Thanks for the report, the minivect package is not correctly added to
setup.py. You can however add numba to your PYTHONPATH and it should
work without installing.

Re: [numba] Fwd: Problem running tests

From:
Andy Ray Terrel
Date:
2012-07-16 @ 18:41
On Mon, Jul 16, 2012 at 1:29 PM, mark florisson
<markflorisson88@gmail.com> wrote:
> On 16 July 2012 19:16, Andy Ray Terrel <andy.terrel@gmail.com> wrote:
>> Hello all,
>>
>> I'm trying to run on a Mac and I keep getting the following error (for
>> almost any example/test).  I have done the submodule init/update and
>> then tried a setup.py install afterwards.  Any help would be
>> appreciated.
>>
>> -- Andy
>>
>> $ python test_forloop.py
>> Did you forget to update submodule minivect?
>> Run 'git submodule init' followed by 'git submodule update'
>> Traceback (most recent call last):
>>   File "test_forloop.py", line 9, in <module>
>>     from numba.decorators import numba_compile
>>   File "/Users/aterrel/soft/lib/python2.7/site-packages/numba/__init__.py",
>> line 4, in <module>
>>     from . import minivect
>> ImportError: cannot import name minivect
>
> Thanks for the report, the minivect package is not correctly added to
> setup.py. You can however add numba to your PYTHONPATH and it should
> work without installing.

In that case I don't have the extension module found. I just copied
things over by hand and am getting the tests to pass but both examples
give errors.  Is that normal?

-- Andy

Re: [numba] Fwd: Problem running tests

From:
mark florisson
Date:
2012-07-16 @ 18:53
On 16 July 2012 19:41, Andy Ray Terrel <andy.terrel@gmail.com> wrote:
> On Mon, Jul 16, 2012 at 1:29 PM, mark florisson
> <markflorisson88@gmail.com> wrote:
>> On 16 July 2012 19:16, Andy Ray Terrel <andy.terrel@gmail.com> wrote:
>>> Hello all,
>>>
>>> I'm trying to run on a Mac and I keep getting the following error (for
>>> almost any example/test).  I have done the submodule init/update and
>>> then tried a setup.py install afterwards.  Any help would be
>>> appreciated.
>>>
>>> -- Andy
>>>
>>> $ python test_forloop.py
>>> Did you forget to update submodule minivect?
>>> Run 'git submodule init' followed by 'git submodule update'
>>> Traceback (most recent call last):
>>>   File "test_forloop.py", line 9, in <module>
>>>     from numba.decorators import numba_compile
>>>   File "/Users/aterrel/soft/lib/python2.7/site-packages/numba/__init__.py",
>>> line 4, in <module>
>>>     from . import minivect
>>> ImportError: cannot import name minivect
>>
>> Thanks for the report, the minivect package is not correctly added to
>> setup.py. You can however add numba to your PYTHONPATH and it should
>> work without installing.
>
> In that case I don't have the extension module found. I just copied
> things over by hand and am getting the tests to pass but both examples
> give errors.  Is that normal?
>
> -- Andy

You need to build the extension modules inplace, run 'python setup.py
build_ext --inplace'.

Re: [numba] Fwd: Problem running tests

From:
Andy Ray Terrel
Date:
2012-07-16 @ 18:56
On Mon, Jul 16, 2012 at 1:53 PM, mark florisson
<markflorisson88@gmail.com> wrote:
> On 16 July 2012 19:41, Andy Ray Terrel <andy.terrel@gmail.com> wrote:
>> On Mon, Jul 16, 2012 at 1:29 PM, mark florisson
>> <markflorisson88@gmail.com> wrote:
>>> On 16 July 2012 19:16, Andy Ray Terrel <andy.terrel@gmail.com> wrote:
>>>> Hello all,
>>>>
>>>> I'm trying to run on a Mac and I keep getting the following error (for
>>>> almost any example/test).  I have done the submodule init/update and
>>>> then tried a setup.py install afterwards.  Any help would be
>>>> appreciated.
>>>>
>>>> -- Andy
>>>>
>>>> $ python test_forloop.py
>>>> Did you forget to update submodule minivect?
>>>> Run 'git submodule init' followed by 'git submodule update'
>>>> Traceback (most recent call last):
>>>>   File "test_forloop.py", line 9, in <module>
>>>>     from numba.decorators import numba_compile
>>>>   File "/Users/aterrel/soft/lib/python2.7/site-packages/numba/__init__.py",
>>>> line 4, in <module>
>>>>     from . import minivect
>>>> ImportError: cannot import name minivect
>>>
>>> Thanks for the report, the minivect package is not correctly added to
>>> setup.py. You can however add numba to your PYTHONPATH and it should
>>> work without installing.
>>
>> In that case I don't have the extension module found. I just copied
>> things over by hand and am getting the tests to pass but both examples
>> give errors.  Is that normal?
>>
>> -- Andy
>
> You need to build the extension modules inplace, run 'python setup.py
> build_ext --inplace'.

Oh yes I always forget about the whole inplace thing.

But more to the point.  Are the examples known to be broken?  I'd like
to get a comparison for SciPy in a few days.

-- Andy

Re: [numba] Fwd: Problem running tests

From:
Jon Riehl
Date:
2012-07-16 @ 22:34
Hi Andy/all,

Sorry to be slightly off topic, but you wouldn't happen to have a link
to the Mandelbrot driver code you demonstrated at APUG?

If you want to roll an integration, you can find our implementation in
.../tests/test_mandelbrot.py.

FWIW, I have a branch that implements complex arithmetic on x86-64
systems, and might want to demo a version that uses complex numbers.

Thanks,
-Jon

Re: [numba] Fwd: Problem running tests

From:
Andy Ray Terrel
Date:
2012-07-17 @ 02:51
Yeah I checked out the mandel driver code but I didn't get it computing for me.

https://github.com/aterrel/apug

-- Andy

On Mon, Jul 16, 2012 at 5:34 PM, Jon Riehl <jon.riehl@gmail.com> wrote:
> Hi Andy/all,
>
> Sorry to be slightly off topic, but you wouldn't happen to have a link
> to the Mandelbrot driver code you demonstrated at APUG?
>
> If you want to roll an integration, you can find our implementation in
> .../tests/test_mandelbrot.py.
>
> FWIW, I have a branch that implements complex arithmetic on x86-64
> systems, and might want to demo a version that uses complex numbers.
>
> Thanks,
> -Jon

Re: [numba] Fwd: Problem running tests

From:
Travis Oliphant
Date:
2012-07-17 @ 03:41
Andy, 

Make sure you are on the master branch.   There is a devel branch with the
AST, but I have not been able to get it to work for me, yet.  The master 
branch works. 

We are in the process of merging the two trees. 

-Travis

On Jul 16, 2012, at 9:51 PM, Andy Ray Terrel wrote:

> Yeah I checked out the mandel driver code but I didn't get it computing for me.
> 
> https://github.com/aterrel/apug
> 
> -- Andy
> 
> On Mon, Jul 16, 2012 at 5:34 PM, Jon Riehl <jon.riehl@gmail.com> wrote:
>> Hi Andy/all,
>> 
>> Sorry to be slightly off topic, but you wouldn't happen to have a link
>> to the Mandelbrot driver code you demonstrated at APUG?
>> 
>> If you want to roll an integration, you can find our implementation in
>> .../tests/test_mandelbrot.py.
>> 
>> FWIW, I have a branch that implements complex arithmetic on x86-64
>> systems, and might want to demo a version that uses complex numbers.
>> 
>> Thanks,
>> -Jon