[PyQt] pylupdate5.exe - found it but ...

Phil Thompson phil at riverbankcomputing.com
Fri Oct 14 10:41:28 BST 2016


On 12 Oct 2016, at 10:48 pm, Timothy W. Grove <tim_grove at sil.org> wrote:
> 
> Well, I think I've found pylupdate5.exe; it was in the Python35 Scripts directory. Only when running it against my project .pro file I get the following error:
> 
> C:\Users\Samuel>C:\Python35\Scripts\pylupdate5.exe H:\workspace\SooSL.pro
> 
> Traceback (most recent call last):
>  File "c:\python35\lib\runpy.py", line 184, in _run_module_as_main
>    "__main__", mod_spec)
>  File "c:\python35\lib\runpy.py", line 85, in _run_code
>    exec(code, run_globals)
>  File "C:\Python35\Scripts\pylupdate5.exe\__main__.py", line 9, in <module>
>  File "c:\python35\lib\site-packages\PyQt5\pylupdate_main.py", line 187, in main
>    fetchedTor.setCodecForTr(codecForTr)
> AttributeError: 'MetaTranslator' object has no attribute 'setCodecForTr'
> 
> 
> Any ideas?

It wil be fixed in tonight's snapshot. Just change the call from setCodecForTr() to setCodec().

Thanks,
Phil


More information about the PyQt mailing list