Menu

#1235 Compiling with python3 not possible (CentOS 8)

3.0 Series
closed-out-of-date
nobody
None
5
2019-10-25
2019-10-21
No

On CentOS 8, scons is only provided for python3 (package python3-scons in the PowerTools repo).

Using that, compilation breaks early in the process with the following error message:

[root@hyperticker nsis-3.04-src]# scons-3 SKIPUTILS="NSIS Menu"
scons: Reading SConscript files ...
TypeError: cannot use a string pattern on a bytes-like object:
File "/root/nsis-3.04-src/SConstruct", line 263:
for v in re.compile(r'^\H{[v]?(\S+)}', re.M).finditer(File('#/Docs/src/history.but').get_contents()): # Try to parse the Halibut history file

I guess the scripts needs some slight modifications to work with python3 natively.

Discussion

  • Anders

    Anders - 2019-10-21

    Did you try trunk instead of 3.04?

     
    • Jason

      Jason - 2019-10-23

      I setup a CentOS 8 machine and can confirm that it's fixed in trunk.

       
  • Stefan Winter

    Stefan Winter - 2019-10-25

    Yes, I confirm it works with trunk. Thanks!

     
  • Anders

    Anders - 2019-10-25
    • status: open --> closed-out-of-date
     

Log in to post a comment.