After your Numpy fix were you able to run the Unit tests for NuPIC? I could
only run integration and swarm.

On Wed, Aug 19, 2015 at 9:36 AM, Matthew Taylor <[email protected]> wrote:

> Thanks, both of you!
>
>
> ---------
> Matt Taylor
> OS Community Flag-Bearer
> Numenta
>
> On Wed, Aug 19, 2015 at 6:27 AM, Pascal Weinberger <
> [email protected]> wrote:
>
>> https://github.com/numenta/nupic/wiki/Installing-and-Building-NuPIC
>>
>> For the tests :)
>> On Aug 19, 2015 3:27 PM, [email protected] wrote:
>>
>>> Thanks! I'll change that, where in thewiki is that?
>>>
>>> Try running the examples and tests in the folders :)
>>> On Aug 19, 2015 10:04 AM, "Takenori Sato" <[email protected]> wrote:
>>>
>>>> Thanks, but I confirmed "git pull" showed my repository was up-to-date.
>>>>
>>>>
>>>> I seem to fix the problem now. The problem was numpy.
>>>>
>>>> The command to install numpy on the wiki is:
>>>>
>>>> $ sudo apt-get install numpy
>>>>
>>>> But, there is no such a package.
>>>>
>>>> So I had installed a similar one.
>>>>
>>>> $ sudo apt-get install python-numpy
>>>>
>>>> Then, I got the error complaining about Python.h.
>>>>
>>>> After removing python-numpy, and installing with pip as follows,
>>>> the setup command finished without an error.
>>>>
>>>> $ sudo pip install numpy
>>>>
>>>>
>>>> Is there any command to check if the installation was successful or not?
>>>>
>>>> Thanks,
>>>> Takenori
>>>>
>>>>
>>>> On Wed, Aug 19, 2015 at 3:47 PM, Pascal Weinberger <
>>>> [email protected]> wrote:
>>>>
>>>>> Hey!
>>>>>
>>>>> This may be because of some recent updates that also caused travis to
>>>>> fail,
>>>>> You may try to update your code by pulling from github and try again.
>>>>> It should be building now :)
>>>>> On Aug 19, 2015 6:20 AM, "Takenori Sato" <[email protected]> wrote:
>>>>>
>>>>>> HI,
>>>>>>
>>>>>> I followed "Installing NuPIC on Ubuntu",
>>>>>> but got stuck with some errors as follows.
>>>>>>
>>>>>> I would appreciate if anyone gives me some hints to fix this.
>>>>>>
>>>>>> ...
>>>>>> Could not locate executable gfortran
>>>>>> Could not locate executable f95
>>>>>> Could not locate executable ifort
>>>>>> Could not locate executable ifc
>>>>>> Could not locate executable lf95
>>>>>> Could not locate executable pgfortran
>>>>>> Could not locate executable f90
>>>>>> Could not locate executable f77
>>>>>> Could not locate executable fort
>>>>>> Could not locate executable efort
>>>>>> Could not locate executable efc
>>>>>> Could not locate executable g77
>>>>>> Could not locate executable g95
>>>>>> Could not locate executable pathf95
>>>>>> don't know how to compile Fortran code on platform 'posix'
>>>>>> _configtest.c:1:5: warning: conflicting types for built-in function
>>>>>> ‘exp’ [enabled by default]
>>>>>>  int exp (void);
>>>>>>      ^
>>>>>> _configtest.o: In function `main':
>>>>>> /tmp/easy_install-uVwEo7/numpy-1.9.2/_configtest.c:6: undefined
>>>>>> reference to `exp'
>>>>>> collect2: error: ld returned 1 exit status
>>>>>> _configtest.o: In function `main':
>>>>>> /tmp/easy_install-uVwEo7/numpy-1.9.2/_configtest.c:6: undefined
>>>>>> reference to `exp'
>>>>>> collect2: error: ld returned 1 exit status
>>>>>> _configtest.c:1:5: warning: conflicting types for built-in function
>>>>>> ‘exp’ [enabled by default]
>>>>>>  int exp (void);
>>>>>>      ^
>>>>>> _configtest.c:1:20: fatal error: Python.h: No such file or directory
>>>>>>  #include <Python.h>
>>>>>>                     ^
>>>>>> compilation terminated.
>>>>>> _configtest.c:1:20: fatal error: Python.h: No such file or directory
>>>>>>  #include <Python.h>
>>>>>>                     ^
>>>>>> compilation terminated.
>>>>>> Traceback (most recent call last):
>>>>>>   File "setup.py", line 430, in <module>
>>>>>>     """)
>>>>>>   File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
>>>>>>     dist.run_commands()
>>>>>>   File "/usr/lib/python2.7/distutils/dist.py", line 953, in
>>>>>> run_commands
>>>>>>     self.run_command(cmd)
>>>>>>   File "/usr/lib/python2.7/distutils/dist.py", line 972, in
>>>>>> run_command
>>>>>>     cmd_obj.run()
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 
>>>>>> 73,
>>>>>> in run
>>>>>>     self.do_egg_install()
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 
>>>>>> 96,
>>>>>> in do_egg_install
>>>>>>     cmd.run()
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 
>>>>>> line
>>>>>> 381, in run
>>>>>>     self.easy_install(spec, not self.no_deps)
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 
>>>>>> line
>>>>>> 597, in easy_install
>>>>>>     return self.install_item(None, spec, tmpdir, deps, True)
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 
>>>>>> line
>>>>>> 648, in install_item
>>>>>>     self.process_distribution(spec, dist, deps)
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 
>>>>>> line
>>>>>> 694, in process_distribution
>>>>>>     [requirement], self.local_index, self.easy_install
>>>>>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 620,
>>>>>> in resolve
>>>>>>     dist = best[req.key] = env.best_match(req, ws, installer)
>>>>>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 858,
>>>>>> in best_match
>>>>>>     return self.obtain(req, installer) # try and download/install
>>>>>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 870,
>>>>>> in obtain
>>>>>>     return installer(requirement)
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 
>>>>>> line
>>>>>> 616, in easy_install
>>>>>>     return self.install_item(spec, dist.location, tmpdir, deps)
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 
>>>>>> line
>>>>>> 646, in install_item
>>>>>>     dists = self.install_eggs(spec, download, tmpdir)
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 
>>>>>> line
>>>>>> 834, in install_eggs
>>>>>>     return self.build_and_install(setup_script, setup_base)
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 
>>>>>> line
>>>>>> 1040, in build_and_install
>>>>>>     self.run_setup(setup_script, setup_base, args)
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", 
>>>>>> line
>>>>>> 1025, in run_setup
>>>>>>     run_setup(setup_script, args)
>>>>>>   File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line
>>>>>> 50, in run_setup
>>>>>>     lambda: execfile(
>>>>>>   File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line
>>>>>> 100, in run
>>>>>>     return func()
>>>>>>   File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line
>>>>>> 52, in <lambda>
>>>>>>     {'__file__':setup_script, '__name__':'__main__'}
>>>>>>   File "setup.py", line 251, in <module>
>>>>>>     if name is None or options is None:
>>>>>>   File "setup.py", line 243, in setup_package
>>>>>>     return (
>>>>>>   File "/usr/lib/python2.7/dist-packages/numpy/distutils/core.py",
>>>>>> line 169, in setup
>>>>>>     return old_setup(**new_attr)
>>>>>>   File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
>>>>>>     dist.run_commands()
>>>>>>   File "/usr/lib/python2.7/distutils/dist.py", line 953, in
>>>>>> run_commands
>>>>>>     self.run_command(cmd)
>>>>>>   File "/usr/lib/python2.7/distutils/dist.py", line 972, in
>>>>>> run_command
>>>>>>     cmd_obj.run()
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line
>>>>>> 177, in run
>>>>>>     self.run_command("egg_info")
>>>>>>   File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
>>>>>>     self.distribution.run_command(command)
>>>>>>   File "/usr/lib/python2.7/distutils/dist.py", line 972, in
>>>>>> run_command
>>>>>>     cmd_obj.run()
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/numpy/distutils/command/egg_info.py",
>>>>>> line 10, in run
>>>>>>     self.run_command("build_src")
>>>>>>   File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
>>>>>>     self.distribution.run_command(command)
>>>>>>   File "/usr/lib/python2.7/distutils/dist.py", line 972, in
>>>>>> run_command
>>>>>>     cmd_obj.run()
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/numpy/distutils/command/build_src.py",
>>>>>> line 153, in run
>>>>>>     self.build_sources()
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/numpy/distutils/command/build_src.py",
>>>>>> line 170, in build_sources
>>>>>>     self.build_extension_sources(ext)
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/numpy/distutils/command/build_src.py",
>>>>>> line 329, in build_extension_sources
>>>>>>     sources = self.generate_sources(sources, ext)
>>>>>>   File
>>>>>> "/usr/lib/python2.7/dist-packages/numpy/distutils/command/build_src.py",
>>>>>> line 386, in generate_sources
>>>>>>     source = func(extension, build_dir)
>>>>>>   File "numpy/core/setup.py", line 432, in generate_config_h
>>>>>>     if haveBuild:
>>>>>>   File "numpy/core/setup.py", line 42, in check_types
>>>>>>     except urllib2.URLError:
>>>>>>   File "numpy/core/setup.py", line 293, in check_types
>>>>>>     else:
>>>>>> SystemError: Cannot compile 'Python.h'. Perhaps you need to install
>>>>>> python-dev|python-devel.
>>>>>>
>>>>>>
>>>>>> I followed the wiki, so python-dev had been installed.
>>>>>>
>>>>>> $ sudo apt-get install python-dev
>>>>>> Reading package lists... Done
>>>>>> Building dependency tree
>>>>>> Reading state information... Done
>>>>>> python-dev is already the newest version.
>>>>>> 0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
>>>>>>
>>>>>> Also, this is a freshly installed machine for NuPIC.
>>>>>>
>>>>>> $ lsb_release -a
>>>>>> No LSB modules are available.
>>>>>> Distributor ID:    Ubuntu
>>>>>> Description:    Ubuntu 14.04.3 LTS
>>>>>> Release:    14.04
>>>>>> Codename:    trusty
>>>>>>
>>>>>> Thanks,
>>>>>> Takenori
>>>>>>
>>>>>
>>>>
>

Reply via email to