Re: [arts-users] failure to build arts v2.5.7

2022-10-18 Thread Lemke, Oliver
Hi Michael,

> On 18 Oct 2022, at 00:04, Schwartz, Michael J (US 329D) 
>  wrote:
> 
> Hello 
> I am trying to build the development version of arts and pyarts on a linux 
> system with gcc version 11.2.1 20220127 (Red Hat 11.2.1-9.1.0.2) (GCC).  I 
> also tried on a macbook, but will focus on the linux attempt. 
>  
> I downloaded the source and the arts-cat-data and arts-xml-data.  
> When I try to make arts, it goes well until nearly the end:
>  
> (mjschwar-env) dweezil:build$ make 
> -- ARTS version: 2.5.7 (git: 007883e7)
> [  0%] Built target auto_version.txt
> …
> [ 90%] Built target arts_developer-stamp
> [ 90%] Built target arts_user-stamp
> doc/uguide/CMakeFiles/arts_developer-stage1.dir/build.make:169: *** target 
> pattern contains no '%'.  Stop.
> make[1]: *** [CMakeFiles/Makefile2:2971: 
> doc/uguide/CMakeFiles/arts_developer-stage1.dir/all] Error 2
> make: *** [Makefile:160: all] Error 2
>  
> So this seems to be failing somewhere in the building or checking of 
> documentation. 

I'm not sure what the issue here is. Please send me line 169 of 
build/doc/uguide/CMakeFiles/arts_developer-stage1.dir/build.make to further 
look into this.

> I can (seemingly successfully) specifically make only the targets arts and 
> pyarts:
>  
> make arts
> make pyarts 
> cd python
> python3 -m pip install --user -e .
>  
>  
>  
> I then did
> conda install docutils matplotlib netCDF4 numpy pytest scipy setuptools xarray
> pip install lark-parser

This seems a bit suspicious to me. Did you really install these packages AFTER 
compiling ARTS? Since cmake does check for these packages during configuration, 
you should not have been able to compile ARTS if these were not installed. 
Which makes me wonder if you have two different Python versions installed, 
which might also lead to the error you're seeing below.

> but when I try to import pyarts,
>  
> $ python
> Python 3.9.13 (main, Oct 13 2022, 21:15:33) 
> [GCC 11.2.0] :: Anaconda, Inc. on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pyarts
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "/users/michael/ARTS/arts-2.5/build/python/pyarts/__init__.py", line 
> 8, in 
> from pyarts import arts  # noqa
> ImportError: cannot import name 'arts' from partially initialized module 
> 'pyarts' (most likely due to a circular import) 
> (/users/michael/ARTS/arts-2.5/build/python/pyarts/__init__.py)
> >>> 
>  
>  
> It seems that it is trying, during the initialization of pyarts, to import 
> arts from pyarts.
> This is the same error message that I get to with the install on my macbook.
>  
> Do you have any suggestions?


The import error indicates that Python cannot find the arts cpython library. 
Please double check that this file exists:

/users/michael/ARTS/arts-2.5/build/python/pyarts/arts.cpython-39-x86_64-linux-gnu.so

If the filename does not contain "-39-" but "-38-" or "-310-", that would 
indicate that during cmake configuration the wrong Python version was used. 
Double-check the output of cmake during configuration to make sure that it 
finds the same Python version which you are using later to import pyarts into. 
The output during configuration looks like this:

-- Found Python3: YOURPYTHONPATH/bin/python3.X (found version "3.X.X") found 
components: Interpreter Development.Module

Cheers,
Oliver






smime.p7s
Description: S/MIME cryptographic signature


[arts-users] failure to build arts v2.5.7

2022-10-17 Thread Schwartz, Michael J (US 329D)
Hello
I am trying to build the development version of arts and pyarts on a linux 
system with gcc version 11.2.1 20220127 (Red Hat 11.2.1-9.1.0.2) (GCC).  I also 
tried on a macbook, but will focus on the linux attempt.

I downloaded the source and the arts-cat-data and arts-xml-data.
When I try to make arts, it goes well until nearly the end:

(mjschwar-env) dweezil:build$ make
-- ARTS version: 2.5.7 (git: 007883e7)
[  0%] Built target auto_version.txt
…
[ 90%] Built target arts_developer-stamp
[ 90%] Built target arts_user-stamp
doc/uguide/CMakeFiles/arts_developer-stage1.dir/build.make:169: *** target 
pattern contains no '%'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:2971: 
doc/uguide/CMakeFiles/arts_developer-stage1.dir/all] Error 2
make: *** [Makefile:160: all] Error 2

So this seems to be failing somewhere in the building or checking of 
documentation.




I can (seemingly successfully) specifically make only the targets arts and 
pyarts:

make arts
make pyarts
cd python
python3 -m pip install --user -e .



I then did
conda install docutils matplotlib netCDF4 numpy pytest scipy setuptools xarray
pip install lark-parser


but when I try to import pyarts,

$ python
Python 3.9.13 (main, Oct 13 2022, 21:15:33)
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarts
Traceback (most recent call last):
  File "", line 1, in 
  File "/users/michael/ARTS/arts-2.5/build/python/pyarts/__init__.py", line 8, 
in 
from pyarts import arts  # noqa
ImportError: cannot import name 'arts' from partially initialized module 
'pyarts' (most likely due to a circular import) 
(/users/michael/ARTS/arts-2.5/build/python/pyarts/__init__.py)
>>>


It seems that it is trying, during the initialization of pyarts, to import arts 
from pyarts.
This is the same error message that I get to with the install on my macbook.

Do you have any suggestions?

Thank you, danke,  tack,

Michael