Matthias,

I did have python libraries in /usr/local but I uninstalled them. Then I 
did a pull of most recent master branch followed by a  

make distclean

and

make

and I had the failure to build numpy in the detailed in the log attached to 
my Feb 27, 2021, 7:26:36 PM post.

regards
brett

On Sunday, February 28, 2021 at 10:21:45 AM UTC-6 Matthias Koeppe wrote:

> Whether numpy is installed in the system or not does not matter for the 
> Sage installation. Sage uses its own virtual environment without access to 
> system Python packages.
> Please switch to the latest development branch using "git checkout" and 
> use "make distclean" so that the source tree is clean
> Check that /usr/local/ does not contain libraries that shadow system 
> libraries. In particular, check /usr/local/lib/pkgconfig
> Then a new build using "make build" should work; if there is a new 
> failure, please send the logs, including config.log
>
>
>
>
>
> On Saturday, February 27, 2021 at 5:26:36 PM UTC-8 brettpim wrote:
>
>> No luck.  I am not sure what to do next.
>>
>> On Saturday, February 27, 2021 at 6:22:35 PM UTC-6 brettpim wrote:
>>
>>> True, and removing libopenblas did not help; I am still getting the same 
>>> error.  I put libopenblas back but not numpy and am trying again
>>>
>>>
>>> On Saturday, February 27, 2021 at 4:10:51 PM UTC-6 dim...@gmail.com 
>>> wrote:
>>>
>>>> by right, one ought to read the last part of the output of ./configure 
>>>> for advice on 
>>>> packages to to install, and follow it. 
>>>>
>>>> Without libopenblas-dev installed you're going to build it, and 
>>>> everything that depends on it, from source... 
>>>>
>>>> On Sat, Feb 27, 2021 at 9:45 PM brettpim <br...@math.carleton.ca> 
>>>> wrote: 
>>>> > 
>>>> > I have finally tracked down and removed all installations of numpy; I 
>>>> also removed libopenblas. I have done make bootstrap-clean distclean; 
>>>> ./configure; and started make again. I will report the results 
>>>> > 
>>>> > On Saturday, February 27, 2021 at 2:02:59 PM UTC-6 brettpim wrote: 
>>>> >> 
>>>> >> also my git branches I am working on would be lost if I wiped 
>>>> everything. 
>>>> >> 
>>>> >> On Saturday, February 27, 2021 at 1:50:18 PM UTC-6 brettpim wrote: 
>>>> >>> 
>>>> >>> make bootstrap-clean distclean did not solve the problem. I have 
>>>> considered removing python3 from my system and reinstalling it but there 
>>>> are so many other things I have that depend on python3 and would be 
>>>> removed. I don't want to have to reinstall such a huge list. I am not sure 
>>>> what to do next. One thought is to delete my entire sage directory and 
>>>> pull 
>>>> it afresh but I am not sure this will address the issue that blas is not 
>>>> being found properly. 
>>>> >>> 
>>>> >>> 
>>>> >>> On Saturday, February 27, 2021 at 11:18:04 AM UTC-6 brettpim wrote: 
>>>> >>>> 
>>>> >>>> DIma, 
>>>> >>>> 
>>>> >>>> I found that pip installs in /usr/local when it is run as sudo. I 
>>>> have not found anything definitive that says it should not be run as sudo 
>>>> but just in case I sudo pip uninstalled all the packages in /usr/local and 
>>>> pip installed them as a user which puts them all in $HOME/.local. But even 
>>>> after this there something is still wrong with my numpy install and I am 
>>>> still working on. 
>>>> >>>> 
>>>> >>>> While I am investigating my numpy problem I will try the serious 
>>>> clean-up you suggest. My build was an attempt at a re-build after a git 
>>>> pull so the clean-up is justified. I will report back 
>>>> >>>> 
>>>> >>>> thanks 
>>>> >>>> brett 
>>>> >>>> On Saturday, February 27, 2021 at 2:06:03 AM UTC-6 
>>>> dim...@gmail.com wrote: 
>>>> >>>>> 
>>>> >>>>> On Sat, Feb 27, 2021 at 4:07 AM brettpim <br...@math.carleton.ca> 
>>>> wrote: 
>>>> >>>>> > 
>>>> >>>>> > /usr/local/ is where pip has installed my python packages so 
>>>> don't these files belong here? 
>>>> >>>>> > 
>>>> >>>>> > 
>>>> >>>>> > On Friday, February 26, 2021 at 5:20:03 PM UTC-6 
>>>> dim...@gmail.com wrote: 
>>>> >>>>> >> 
>>>> >>>>> >> looks like you have a copy of (c)blas in /usr/local - and this 
>>>> leads to trouble 
>>>> >>>>> 
>>>> >>>>> oops, sorry, it's a wrong guess, I suppose. 
>>>> >>>>> 
>>>> >>>>> What is the branch you are installing? master from github, which 
>>>> is Sage 9.2 ? 
>>>> >>>>> Or the development branch, 9.3.beta7? 
>>>> >>>>> 
>>>> >>>>> Was it an attempt to re-build after git pull,or a fresh install? 
>>>> >>>>> Fresh install should work, but for an update, you might need a 
>>>> serious clean-up: 
>>>> >>>>> 
>>>> >>>>> make bootstrap-clean distclean 
>>>> >>>>> 
>>>> >>>>> Sage has a bit fragile system of re-creating missing .pc files 
>>>> for 
>>>> >>>>> (c)blas/lapack, and 
>>>> >>>>> recent changes in the build system might have confused it (so 
>>>> that's 
>>>> >>>>> why a fresh rebuild 
>>>> >>>>> might be needed) 
>>>> >>>>> 
>>>> >>>>> 
>>>> >>>>> >> 
>>>> >>>>> >> On Fri, 26 Feb 2021, 21:57 brettpim, <br...@math.carleton.ca> 
>>>> wrote: 
>>>> >>>>> >>> 
>>>> >>>>> >>> 
>>>> >>>>> >>> I am trying to install sage from the master branch on PC 
>>>> running Ubuntu 20.04. 
>>>> >>>>> >>> The make is failing to build numpy-1.19.1. 
>>>> >>>>> >>> It is complaining about not finding cblas or blas. 
>>>> >>>>> >>> 
>>>> >>>>> >>> In my config.log it finds openblas and so decides it will not 
>>>> install is as SPKG 
>>>> >>>>> >>> 
>>>> >>>>> >>> but when I run python3: 
>>>> >>>>> >>> >>> import numpy 
>>>> >>>>> >>> >>> numpy.show_config() 
>>>> >>>>> >>> 
>>>> >>>>> >>> it reports 
>>>> >>>>> >>> 
>>>> >>>>> >>> blas_info: 
>>>> >>>>> >>> libraries = ['blas', 'blas'] 
>>>> >>>>> >>> library_dirs = ['/usr/lib/x86_64-linux-gnu'] 
>>>> >>>>> >>> include_dirs = ['/usr/local/include', '/usr/include'] 
>>>> >>>>> >>> language = c 
>>>> >>>>> >>> define_macros = [('HAVE_CBLAS', None)] 
>>>> >>>>> >>> blas_opt_info: 
>>>> >>>>> >>> define_macros = [('NO_ATLAS_INFO', 1), ('HAVE_CBLAS', None)] 
>>>> >>>>> >>> libraries = ['blas', 'blas'] 
>>>> >>>>> >>> library_dirs = ['/usr/lib/x86_64-linux-gnu'] 
>>>> >>>>> >>> include_dirs = ['/usr/local/include', '/usr/include'] 
>>>> >>>>> >>> language = c 
>>>> >>>>> >>> 
>>>> >>>>> >>> which makes me think there is something wrong with blas. 
>>>> >>>>> >>> 
>>>> >>>>> >>> -- 
>>>> >>>>> >>> You received this message because you are subscribed to the 
>>>> Google Groups "sage-devel" group. 
>>>> >>>>> >>> To unsubscribe from this group and stop receiving emails from 
>>>> it, send an email to sage-devel+...@googlegroups.com. 
>>>> >>>>> >>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/sage-devel/a8054ce0-69ee-4537-80ed-f51ced0f7c8cn%40googlegroups.com.
>>>>  
>>>>
>>>> >>>>> > 
>>>> >>>>> > -- 
>>>> >>>>> > You received this message because you are subscribed to the 
>>>> Google Groups "sage-devel" group. 
>>>> >>>>> > To unsubscribe from this group and stop receiving emails from 
>>>> it, send an email to sage-devel+...@googlegroups.com. 
>>>> >>>>> > To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/sage-devel/4c7f11e6-246d-4f58-b6d2-dfcbaf0b284bn%40googlegroups.com.
>>>>  
>>>>
>>>> > 
>>>> > -- 
>>>> > You received this message because you are subscribed to the Google 
>>>> Groups "sage-devel" group. 
>>>> > To unsubscribe from this group and stop receiving emails from it, 
>>>> send an email to sage-devel+...@googlegroups.com. 
>>>> > To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/sage-devel/249a4e39-19bb-423b-8103-1501e5c691can%40googlegroups.com.
>>>>  
>>>>
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/509382e8-f024-4a6d-a652-1a4e6b599c1fn%40googlegroups.com.

Reply via email to