Re: Error when passing from python 3.5.4 to python 3.6

Bill Deegan <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAEyG4CFcy6UKwA1AjtKxEgj_OPR5Y+m=gdw839N-LZU=TEUBFQ@mail.gmail.com>
Please try with newest scons and report back.

On Fri, Jul 17, 2020 at 3:35 PM Pierre-Luc Boily <[email protected]>
wrote:

> I was pretty sure the problem was in qt5 tool and not in scons ?
>
> File "C:\SVN\3rdParty\devTool\site_scons\site_tools\qt5_init.py", line 373:
> cpp, cpp_contents, out_sources)
> File "C:\SVN\3rdParty\devTool\site_scons\site_tools\qt5_init.py", line 229:
> if cpp and re.search(inc_moc_cpp, cpp_contents, re.M):
> File "C:\Python\Python3.6.8\lib\re.py", line 182:
>
> Le ven. 17 juill. 2020, à 15 h 48, Bill Deegan <[email protected]>
> a écrit :
>
>> Please update your SCons version to 4.0.1 and retry.
>> Note if you've installed scons via pip, you  should pip uninstall scons,
>> and then pip install scons as there's a windows specific pip+scons issue.
>>
>> On Fri, Jul 17, 2020 at 9:09 AM Pierre-Luc Boily <
>> [email protected]> wrote:
>>
>>> Hello,
>>>
>>> Sorry to post this here, this is not direclty linked to scons, but to qt5
>>> tools.  I thought that maybe someone faced this problem before in the
>>> scons
>>> code.
>>>
>>>
>>> https://bitbucket.org/dirkbaechle/scons_qt5/issues/14/from-python-354-to-368-raise-sourceerror
>>>
>>> python : 3.6.8
>>> scons : 3.0.5
>>> os : windows 10
>>>
>>> Trying to update my python from 3.5.4 to 3.6.8 version and I stumbled on
>>> the
>>> exception below. I found something similar to this page :
>>>
>>> https://stackoverflow.com/questions/58328587/python-3-7-4-re-error-bad-escape-s-at-position-0
>>> .
>>> but I don`t understand... :
>>>
>>> PS C:\SVN\products\faa_mx\integ> scons -n
>>> scons: Reading SConscript files ...
>>> error: bad escape \m at position 37:
>>> File "C:\SVN\products\faa_mx\integ\SConstruct", line 30:
>>> sc_manager.build()
>>> File
>>>
>>> "C:\SVN\products\faa_mx\integ\cm\env\scons\utilities\sconscriptManager.py",
>>> line 44:
>>> duplicate=0)
>>> File
>>>
>>> "c:\python\python3.6.8\lib\site-packages\scons\SCons\Script\SConscript.py",
>>> line 668:
>>> return method(*args, **kw)
>>> File
>>>
>>> "c:\python\python3.6.8\lib\site-packages\scons\SCons\Script\SConscript.py",
>>> line 605:
>>> return _SConscript(self.fs, files, **subst_kw)
>>> File
>>>
>>> "c:\python\python3.6.8\lib\site-packages\scons\SCons\Script\SConscript.py",
>>> line 286:
>>> exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
>>> File
>>>
>>> "C:\SVN\products\faa_mx\integ\sr\speech\ASREngineSpawner\ASREngineSpawner.sc",
>>> line 12:
>>> lib_tgt = env.build_library(envService, ['ASREngineSpawner.cpp',
>>> 'ProcessManager.cpp'] + env.Glob('.ui'))
>>> File
>>>
>>> "C:\SVN\products\faa_mx\integ\cm\env\scons\adacelBuilders\pseudoBuilders.py",
>>> line 95:
>>> source=tgt)
>>> File
>>> "c:\python\python3.6.8\lib\site-packages\scons\SCons\Environment.py",
>>> line 260:
>>> return MethodWrapper.call(self, target, source, *args, **kw)
>>> File
>>> "c:\python\python3.6.8\lib\site-packages\scons\SCons\Environment.py",
>>> line 224:
>>> return self.method(*nargs, **kwargs)
>>> File "c:\python\python3.6.8\lib\site-packages\scons\SCons\Builder.py",
>>> line
>>> 645:
>>> return self.execute(env, target, source, OverrideWarner(kw), ekw)
>>> File "c:\python\python3.6.8\lib\site-packages\scons\SCons\Builder.py",
>>> line
>>> 564:
>>> tlist, slist = self.create_nodes(env, target, source)
>>> File "c:\python\python3.6.8\lib\site-packages\scons\SCons\Builder.py",
>>> line
>>> 528:
>>> target, source = self.emitter(target=tlist, source=slist, env=env)
>>> File "c:\python\python3.6.8\lib\site-packages\scons\SCons\Builder.py",
>>> line
>>> 353:
>>> target, source = e(target, source, env)
>>> File "C:\SVN\3rdParty\devTool\site_scons\site_tools\qt5_init.py", line
>>> 373:
>>> cpp, cpp_contents, out_sources)
>>> File "C:\SVN\3rdParty\devTool\site_scons\site_tools\qt5_init.py", line
>>> 229:
>>> if cpp and re.search(inc_moc_cpp, cpp_contents, re.M):
>>> File "C:\Python\Python3.6.8\lib\re.py", line 182:
>>> return _compile(pattern, flags).search(string)
>>> File "C:\Python\Python3.6.8\lib\re.py", line 301:
>>> p = sre_compile.compile(pattern, flags)
>>> File "C:\Python\Python3.6.8\lib\sre_compile.py", line 562:
>>> p = sre_parse.parse(p, flags)
>>> File "C:\Python\Python3.6.8\lib\sre_parse.py", line 855:
>>> p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
>>> File "C:\Python\Python3.6.8\lib\sre_parse.py", line 416:
>>> not nested and not items))
>>> File "C:\Python\Python3.6.8\lib\sre_parse.py", line 502:
>>> code = _escape(source, this, state)
>>> File "C:\Python\Python3.6.8\lib\sre_parse.py", line 401:
>>> raise source.error("bad escape %s" % escape, len(escape))
>>>
>>>
>>>
>>>
>>> --
>>> Sent from: http://scons.1086193.n5.nabble.com/Users-f16930.html
>>> _______________________________________________
>>> Scons-users mailing list
>>> [email protected]
>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>
>> _______________________________________________
>> Scons-users mailing list
>> [email protected]
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
> _______________________________________________
> Scons-users mailing list
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
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.