You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Peter Kovacs <pe...@apache.org> on 2020/02/27 17:14:45 UTC

setting scons up for linux

Hello Damjan,


I did try to setup scons for Linux.

I copied the

1) FreeBSD file to Linux File.

2) replaced FreeBSD to Linux

3) added a entry to main/site_scons/globals.py

I do now get following Error Message:

~/workspace/AOO/gitbox/main$ scons
*** Error loading site_init file './site_scons/site_init.py':
*** cannot import site init file './site_scons/site_init.py':
ImportError: cannot import name ABC:
   File "/usr/lib/scons/SCons/Script/Main.py", line 1389:
     _exec_main(parser, values)
   File "/usr/lib/scons/SCons/Script/Main.py", line 1352:
     _main(parser)
   File "/usr/lib/scons/SCons/Script/Main.py", line 954:
     _load_all_site_scons_dirs(d.get_internal_path())
   File "/usr/lib/scons/SCons/Script/Main.py", line 807:
     _load_site_scons_dir(d)
   File "/usr/lib/scons/SCons/Script/Main.py", line 741:
     exec fp in site_m
   File "./site_scons/site_init.py", line 26:
     from globals import *
   File "/home/legine/workspace/AOO/gitbox/main/site_scons/globals.py", 
line 39:
     from linux import *
   File 
"/home/legine/workspace/AOO/gitbox/main/site_scons/platform/linux.py", 
line 23:
     import aooplatform
   File 
"/home/legine/workspace/AOO/gitbox/main/site_scons/platform/aooplatform.py", 
line 22:
     from abc import ABC, abstractmethod


Do you have an Idea what needs to be done?

Thanks

All the Best

Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: setting scons up for linux

Posted by Damjan Jovanovic <da...@apache.org>.
That's really great :).

I am very busy for the next few weeks and can't contribute much. I was
trying to port AllLangResTarget.mk to SCons but it's really hard, it needs
advanced features like custom builders, custom scanners, up to 10 new
target types, etc. When I have more time, I need to find a small
AllLangResTarget module to experiment with.

The next big thing we probably need to deal with is the library naming
(main/Repository.mk vs main/solenv/inc/libs.mk).

On Fri, Feb 28, 2020 at 11:13 PM Peter Kovacs <pe...@apache.org> wrote:

> Okay, after moving to python3 and installing latest scon the fileaccess
> build for Linux.
>
> I can push on Sunday the OS setup to gitbox.
>
> What are the next steps from here?
>
> I try to deliver a Mac and OS/2 profile.
>
> And I will have a look at the converter, too.
>
>
> All the Best
>
> Peter
>
> Am 27.02.20 um 18:27 schrieb Damjan Jovanovic:
> > You need a recent Python 3:
> > ImportError: cannot import name ABC:
> >
> > On Thu, Feb 27, 2020 at 7:14 PM Peter Kovacs <pe...@apache.org> wrote:
> >
> >> Hello Damjan,
> >>
> >>
> >> I did try to setup scons for Linux.
> >>
> >> I copied the
> >>
> >> 1) FreeBSD file to Linux File.
> >>
> >> 2) replaced FreeBSD to Linux
> >>
> >> 3) added a entry to main/site_scons/globals.py
> >>
> >> I do now get following Error Message:
> >>
> >> ~/workspace/AOO/gitbox/main$ scons
> >> *** Error loading site_init file './site_scons/site_init.py':
> >> *** cannot import site init file './site_scons/site_init.py':
> >> ImportError: cannot import name ABC:
> >>     File "/usr/lib/scons/SCons/Script/Main.py", line 1389:
> >>       _exec_main(parser, values)
> >>     File "/usr/lib/scons/SCons/Script/Main.py", line 1352:
> >>       _main(parser)
> >>     File "/usr/lib/scons/SCons/Script/Main.py", line 954:
> >>       _load_all_site_scons_dirs(d.get_internal_path())
> >>     File "/usr/lib/scons/SCons/Script/Main.py", line 807:
> >>       _load_site_scons_dir(d)
> >>     File "/usr/lib/scons/SCons/Script/Main.py", line 741:
> >>       exec fp in site_m
> >>     File "./site_scons/site_init.py", line 26:
> >>       from globals import *
> >>     File "/home/legine/workspace/AOO/gitbox/main/site_scons/globals.py",
> >> line 39:
> >>       from linux import *
> >>     File
> >> "/home/legine/workspace/AOO/gitbox/main/site_scons/platform/linux.py",
> >> line 23:
> >>       import aooplatform
> >>     File
> >>
> "/home/legine/workspace/AOO/gitbox/main/site_scons/platform/aooplatform.py",
> >>
> >> line 22:
> >>       from abc import ABC, abstractmethod
> >>
> >>
> >> Do you have an Idea what needs to be done?
> >>
> >> Thanks
> >>
> >> All the Best
> >>
> >> Peter
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> >> For additional commands, e-mail: dev-help@openoffice.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>
>

Re: setting scons up for linux

Posted by Peter Kovacs <pe...@apache.org>.
Okay, after moving to python3 and installing latest scon the fileaccess 
build for Linux.

I can push on Sunday the OS setup to gitbox.

What are the next steps from here?

I try to deliver a Mac and OS/2 profile.

And I will have a look at the converter, too.


All the Best

Peter

Am 27.02.20 um 18:27 schrieb Damjan Jovanovic:
> You need a recent Python 3:
> ImportError: cannot import name ABC:
>
> On Thu, Feb 27, 2020 at 7:14 PM Peter Kovacs <pe...@apache.org> wrote:
>
>> Hello Damjan,
>>
>>
>> I did try to setup scons for Linux.
>>
>> I copied the
>>
>> 1) FreeBSD file to Linux File.
>>
>> 2) replaced FreeBSD to Linux
>>
>> 3) added a entry to main/site_scons/globals.py
>>
>> I do now get following Error Message:
>>
>> ~/workspace/AOO/gitbox/main$ scons
>> *** Error loading site_init file './site_scons/site_init.py':
>> *** cannot import site init file './site_scons/site_init.py':
>> ImportError: cannot import name ABC:
>>     File "/usr/lib/scons/SCons/Script/Main.py", line 1389:
>>       _exec_main(parser, values)
>>     File "/usr/lib/scons/SCons/Script/Main.py", line 1352:
>>       _main(parser)
>>     File "/usr/lib/scons/SCons/Script/Main.py", line 954:
>>       _load_all_site_scons_dirs(d.get_internal_path())
>>     File "/usr/lib/scons/SCons/Script/Main.py", line 807:
>>       _load_site_scons_dir(d)
>>     File "/usr/lib/scons/SCons/Script/Main.py", line 741:
>>       exec fp in site_m
>>     File "./site_scons/site_init.py", line 26:
>>       from globals import *
>>     File "/home/legine/workspace/AOO/gitbox/main/site_scons/globals.py",
>> line 39:
>>       from linux import *
>>     File
>> "/home/legine/workspace/AOO/gitbox/main/site_scons/platform/linux.py",
>> line 23:
>>       import aooplatform
>>     File
>> "/home/legine/workspace/AOO/gitbox/main/site_scons/platform/aooplatform.py",
>>
>> line 22:
>>       from abc import ABC, abstractmethod
>>
>>
>> Do you have an Idea what needs to be done?
>>
>> Thanks
>>
>> All the Best
>>
>> Peter
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
>> For additional commands, e-mail: dev-help@openoffice.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Re: setting scons up for linux

Posted by Damjan Jovanovic <da...@apache.org>.
You need a recent Python 3:
ImportError: cannot import name ABC:

On Thu, Feb 27, 2020 at 7:14 PM Peter Kovacs <pe...@apache.org> wrote:

> Hello Damjan,
>
>
> I did try to setup scons for Linux.
>
> I copied the
>
> 1) FreeBSD file to Linux File.
>
> 2) replaced FreeBSD to Linux
>
> 3) added a entry to main/site_scons/globals.py
>
> I do now get following Error Message:
>
> ~/workspace/AOO/gitbox/main$ scons
> *** Error loading site_init file './site_scons/site_init.py':
> *** cannot import site init file './site_scons/site_init.py':
> ImportError: cannot import name ABC:
>    File "/usr/lib/scons/SCons/Script/Main.py", line 1389:
>      _exec_main(parser, values)
>    File "/usr/lib/scons/SCons/Script/Main.py", line 1352:
>      _main(parser)
>    File "/usr/lib/scons/SCons/Script/Main.py", line 954:
>      _load_all_site_scons_dirs(d.get_internal_path())
>    File "/usr/lib/scons/SCons/Script/Main.py", line 807:
>      _load_site_scons_dir(d)
>    File "/usr/lib/scons/SCons/Script/Main.py", line 741:
>      exec fp in site_m
>    File "./site_scons/site_init.py", line 26:
>      from globals import *
>    File "/home/legine/workspace/AOO/gitbox/main/site_scons/globals.py",
> line 39:
>      from linux import *
>    File
> "/home/legine/workspace/AOO/gitbox/main/site_scons/platform/linux.py",
> line 23:
>      import aooplatform
>    File
> "/home/legine/workspace/AOO/gitbox/main/site_scons/platform/aooplatform.py",
>
> line 22:
>      from abc import ABC, abstractmethod
>
>
> Do you have an Idea what needs to be done?
>
> Thanks
>
> All the Best
>
> Peter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
> For additional commands, e-mail: dev-help@openoffice.apache.org
>
>