Re: untar builder fails with error

daggs <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <trinity-6377db49-7848-45ba-b3c9-186d41e0e001-1667920897648@3c-app-mailcom-bs03>
> On 11/7/22 03:53, daggs wrote:
> > Greetings Mats,
> 
> >> this improves things because before you were getting a list of tarInfo
> >> objects from getmembers(), effectively filtering out non-file entries -
> >> but such objects presumably aren't directly useful to SCons; now you're
> >> getting the string version, which is presumably the same as the .name
> >> attribute.  Any reason not to go ahead and convert those to File nodes
> >> at the same time?
> > 
> > if I'm not mistaken, the File obj wasn't found
> 
> 

I've decided to debug it on my home setup, it uses scons 4.4.0 and python 3.10.8
the code I'm using is this: https://dpaste.com/CA5CGYWNC and I'm getting this:
dagg@NCC-5001D ~/workspace/scons_untar $ scons .
scons: Reading SConscript files ...
AttributeError: 'map' object has no attribute 'side_effect':
  File "/home/dagg/workspace/scons_untar/SConstruct", line 40:
    thirdPartyEnvironment.UnTar(source="apr-1.3.3")
  File "/usr/lib/python3.10/site-packages/SCons/Environment.py", line 238:
    return super().__call__(target, source, *args, **kw)
  File "/usr/lib/python3.10/site-packages/SCons/Util.py", line 737:
    return self.method(*nargs, **kwargs)
  File "/usr/lib/python3.10/site-packages/SCons/Builder.py", line 663:
    return self._execute(env, target, source, OverrideWarner(kw), ekw)
  File "/usr/lib/python3.10/site-packages/SCons/Builder.py", line 579:
    _node_errors(self, env, tlist, slist)
  File "/usr/lib/python3.10/site-packages/SCons/Builder.py", line 291:
    if t.side_effect:

Dagg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.