You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/10/01 14:58:47 UTC

[GitHub] wohali commented on issue #1632: Fix Jenkins

wohali commented on issue #1632: Fix Jenkins
URL: https://github.com/apache/couchdb/issues/1632#issuecomment-425939413
 
 
   @nickva 
   
   The naughty thing that I had to do was, in the CentOS 6 Docker image, I installed python3 to /usr/local/bin/python and placed /usr/local/bin ahead of /usr/bin in the path. This is because CentOS 6 has Python 2.6, which is too old for some of the things we're doing in our code already...and I took great pains to ensure that all of the Python scripts we run in `make check` and `make release` and `make dist` work without change in both python 2 and python 3.
   
   What I'd do is run `2to3` on all 4 scripts, and apply any changes it requests, then change it to `python3`. That'll be better for the future, when the distros decide to remove python 2.7 anyway. The error we're getting on Jenkins for CentOS6 for Python 3 is:
   
   ```python
   make[1]: Entering directory `/tmp/tmp.ILBeu2AdWN/apache-couchdb-2.2.0-fbb5588'
   Traceback (most recent call last):
     File "dev/run", line 592, in <module>
       main()
     File "dev/run", line 80, in main
       ctx = setup()
     File "dev/run", line 94, in setup
       setup_configs(ctx)
     File "dev/run", line 65, in wrapper
       res = func(*args, **kwargs)
     File "dev/run", line 203, in setup_configs
       write_config(ctx, node, env)
     File "dev/run", line 239, in write_config
       content = hack_default_ini(ctx, node, content)
     File "dev/run", line 289, in hack_default_ini
       flags=re.MULTILINE)
   TypeError: sub() got an unexpected keyword argument 'flags'
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services