Error message "name module "build_utils.apple_accelerate" not found while installing pandas

165 views
Skip to first unread message

rkanh...@gmail.com

unread,
Feb 6, 2019, 10:55:30 AM2/6/19
to BeagleBoard
Hi,

I have 4GB memory in the beaglebone black board received and 92% space is used. First I tried to connect the board using serial from iMac and able to talk to the system.

After that I connected the board from windows 10 and connected through ssh and did pandas installation using command "pip install pandas". After some time it came back with following error.

>
>import platform
issues with named module "_build_utils.apple_accelerate". Subsequently I am unable to install pandas.

How to resolve this "build_utils.apple_accelerate" issue?

2. How can add additional space with mmc card?

Please help.

Thanks.

Ram.

Dennis Lee Bieber

unread,
Feb 6, 2019, 4:11:42 PM2/6/19
to beagl...@googlegroups.com
On Tue, 5 Feb 2019 23:14:55 -0800 (PST),
rkanh...@gmail.com declaimed the
following:

>
>After that I connected the board from windows 10 and connected through ssh
>and did pandas installation using command "pip install pandas". After some
>time it came back with following error.
>
>>
>>import platform
>issues with named module "_build_utils.apple_accelerate". Subsequently I am
>unable to install pandas.
>

That does not appear to be any sort of Python related error traceback.
Don't paraphrase error messages -- cut&paste the exact text (not an image
please).

The platform module should not be calling anything with _build_utils in
the name.

>How to resolve this "build_utils.apple_accelerate" issue?
>
>2. How can add additional space with mmc card?
>

By not using the eMMC... Download the LXQT OS
http://beagleboard.org/latest-images write it to an 8-32GB uSD card, insert
the uSD card, and reboot the BBB.

OR -- if you do not need x-window (graphical environment), download the
IoT image, write it to a 4-32GB uSD card, mount it and follow the
instructions to turn it into a flasher image. Then reboot to let it flash
the IoT image to the eMMC (after which you need to remove it as it will
attempt to reflash each time you boot with it -- you can, after booting off
eMMC, mount the card and convert it back to non-flasher mode). The IoT
image is about half the size of the LXQT image.


--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/

Jim F

unread,
Feb 6, 2019, 4:32:41 PM2/6/19
to beagl...@googlegroups.com
For installing pandas, try apt-get instead. If that doesn't work, then as Dennis said, just copy/paste the whole error message.

$ apt-cache search pandas
python-pandas - data structures for "relational" or "labeled" data
python-pandas-doc - documentation and examples for pandas
python3-pandas - data structures for "relational" or "labeled" data - Python 3
<snip>

There are several options. Choose python-pandas or python3-pandas and install from apt instead.

Jim

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/a2676462-86fa-4559-87c9-c53f00532c8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ram Kanhirotentavida

unread,
Feb 7, 2019, 10:44:20 AM2/7/19
to beagl...@googlegroups.com
Thanks for your quick response. Listed the error message I get regarding the build_utils.apple_accelerate error with pandas installation.
        File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 966, in add_subpackage
        caller_level = 2)
      File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 935, in get_subpackage
        caller_level = caller_level + 1)
      File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 872, in _get_configuration_from_setup_py        config = setup_module.configuration(*args)
      File "numpy/setup.py", line 10, in configuration
        from os.path import join as pjoin
      File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 966, in add_subpackage
        caller_level = 2)
      File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 935, in get_subpackage
        caller_level = caller_level + 1)
      File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py", line 847, in _get_configuration_from_setup_py        ('.py', 'U', 1))
      File "numpy/core/setup.py", line 13, in <module>
        import platform
    ImportError: No module named _build_utils.apple_accelerate

    ---------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-gqyqxr/pandas/

Thanks again for looking into this.

Regards,
Ram

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

Dennis Lee Bieber

unread,
Feb 7, 2019, 3:07:38 PM2/7/19
to beagl...@googlegroups.com
On Thu, 7 Feb 2019 07:43:56 -0800, Ram Kanhirotentavida
<rkanh...@gmail.com> declaimed the
following:

> File "/usr/lib/python2.7/dist-packages/numpy/distutils/misc_util.py",
>line 847, in _get_configuration_from_setup_py ('.py', 'U', 1))
> File "numpy/core/setup.py", line 13, in <module>
> import platform
> ImportError: No module named _build_utils.apple_accelerate
>

That still looks strange... Line 13 of numpy/core/setup does import
_build_utils, but the line is:


from numpy._build_utils.apple_accelerate import (
uses_accelerate_framework, get_sgemv_fix
)

"""
from __future__ import division, print_function

import os
import sys
import pickle
import copy
import warnings
import platform
from os.path import join
from numpy.distutils import log
from distutils.dep_util import newer
from distutils.sysconfig import get_config_var
from numpy._build_utils.apple_accelerate import (
uses_accelerate_framework, get_sgemv_fix
)
from numpy.compat import npy_load_module
"""

import platform is on line 8


I'd echo the other response: if you are installing for a system
provided Python -- use apt-get, as that should be a tested/good package,
whereas pip has to download a generic source tree and then run setup
functions to build anything needed locally (and apparently either the numpy
that pip is fetching doesn't have the _build_utils files, OR there is a
numpy already installed which doesn't have said file, but keeps pip from
downloading a different numpy.

Dennis Lee Bieber

unread,
Feb 7, 2019, 3:17:41 PM2/7/19
to beagl...@googlegroups.com
On Thu, 7 Feb 2019 07:43:56 -0800, Ram Kanhirotentavida
<rkanh...@gmail.com> declaimed the
following:

As a follow-up to my prior comments...

The readme for _build_utils:

=======
WARNING
=======

This directory (numpy/_build_utils) is *not* part of the public numpy API,
- it is internal build support for numpy.
- it is only present in source distributions or during an in place build
- it is *not* installed with the rest of numpy

{Note the last line -- if you have a numpy install already, the pandas pip
build may detect it and not download a fresh numpy source tree}

Ram Kanhirotentavida

unread,
Feb 7, 2019, 10:56:37 PM2/7/19
to beagl...@googlegroups.com
Thanks for the detailed response. I will try apt-get and update the status and results.

Regards,
Ram

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

jeremy...@gmail.com

unread,
Mar 9, 2019, 8:22:01 AM3/9/19
to BeagleBoard
Check your numpy version (should be 1.12.0 or higher)
Reply all
Reply to author
Forward
0 new messages