Opened 10 years ago

Closed 10 years ago

#44947 closed defect (fixed)

py(25)-jenkins-job-builder - fails to build

Reported by: mkae (Marko Käning) Owned by: mkae (Marko Käning)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: pixilla (Bradley Giesbrecht)
Port: py25-jenkins-job-builder, py-jenkins-job-builder

Description

Only the py25-version of port py-jenkins-job-builder has a problem according to http://build.macports.org/builders/buildports-mtln-x86_64/builds/17269!

DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_mports_dports_python_py-jenkins-job-builder/py25-jenkins-job-builder/work/jenkins-job-builder-0.8.1" && /opt/local/bin/python2.5 setup.py --no-user-cfg build'
DEBUG: Executing command line:  cd "/opt/local/var/macports/build/_opt_mports_dports_python_py-jenkins-job-builder/py25-jenkins-job-builder/work/jenkins-job-builder-0.8.1" && /opt/local/bin/python2.5 setup.py --no-user-cfg build 
Traceback (most recent call last):
  File "setup.py", line 19, in <module>
    pbr=True)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
  File "/opt/local/lib/python2.5/site-packages/setuptools/dist.py", line 239, in __init__
    self.fetch_build_eggs(attrs.pop('setup_requires'))
  File "/opt/local/lib/python2.5/site-packages/setuptools/dist.py", line 263, in fetch_build_eggs
    parse_requirements(requires), installer=self.fetch_build_egg
  File "/opt/local/lib/python2.5/site-packages/pkg_resources.py", line 568, in resolve
    dist = best[req.key] = env.best_match(req, self, installer)
  File "/opt/local/lib/python2.5/site-packages/pkg_resources.py", line 806, in best_match
    return self.obtain(req, installer) # try and download/install
  File "/opt/local/lib/python2.5/site-packages/pkg_resources.py", line 818, in obtain
    return installer(requirement)
  File "/opt/local/lib/python2.5/site-packages/setuptools/dist.py", line 313, in fetch_build_egg
    return cmd.easy_install(req)
  File "/opt/local/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 609, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/opt/local/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 639, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/opt/local/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 825, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/opt/local/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 1031, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/opt/local/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 1016, in run_setup
    run_setup(setup_script, args)
  File "/opt/local/lib/python2.5/site-packages/setuptools/sandbox.py", line 69, in run_setup
    lambda: execfile(
  File "/opt/local/lib/python2.5/site-packages/setuptools/sandbox.py", line 120, in run
    return func()
  File "/opt/local/lib/python2.5/site-packages/setuptools/sandbox.py", line 71, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 19, in <module>
    pbr=True)
  File "/opt/local/var/macports/build/_opt_mports_dports_python_py-jenkins-job-builder/py25-jenkins-job-builder/work/.tmp/easy_install-GGGuJ_/pbr-0.10.0/pbr/util.py", line 81, in <module>
  File "/opt/local/var/macports/build/_opt_mports_dports_python_py-jenkins-job-builder/py25-jenkins-job-builder/work/.tmp/easy_install-GGGuJ_/pbr-0.10.0/pbr/hooks/__init__.py", line 18, in <module>
  File "/opt/local/var/macports/build/_opt_mports_dports_python_py-jenkins-job-builder/py25-jenkins-job-builder/work/.tmp/easy_install-GGGuJ_/pbr-0.10.0/pbr/hooks/backwards.py", line 19, in <module>
  File "/opt/local/var/macports/build/_opt_mports_dports_python_py-jenkins-job-builder/py25-jenkins-job-builder/work/.tmp/easy_install-GGGuJ_/pbr-0.10.0/pbr/packaging.py", line 91
    throw_on_error=True, buffer=False, env=dict(PIP_USE_WHEEL=b"true"))
                                                                    ^
SyntaxError: invalid syntax
Command failed:  cd "/opt/local/var/macports/build/_opt_mports_dports_python_py-jenkins-job-builder/py25-jenkins-job-builder/work/jenkins-job-builder-0.8.1" && /opt/local/bin/python2.5 setup.py --no-user-cfg build 
Exit code: 1

But also the py3*-versions show an error in the build log although the ports install fine (example output for 3.4 version):

Copying jenkins_job_builder.egg-info to /opt/local/var/macports/build/_opt_mports_dports_python_py-jenkins-job-builder/py34-jenkins-job-builder/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/jenkins_job_builder-0.8.1-py3.4.egg-info
running install_scripts
Installing jenkins-jobs script to /opt/local/var/macports/build/_opt_mports_dports_python_py-jenkins-job-builder/py34-jenkins-job-builder/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/jenkins_jobs/modules/hipchat_notif.py", line 77
    jenkins_jobs.errors.JenkinsJobsException), e:
                                             ^
SyntaxError: invalid syntax

  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/jenkins_jobs/modules/scm.py", line 465
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 871-872: truncated \uXXXX escape

It seems like this needs upstream reporting?

Change History (2)

comment:1 Changed 10 years ago by mkae (Marko Käning)

As Python 2.5 is going to be removed from MP soonish its variant has been removed in r125320.

Python 3.* variants were also removed for now. A bug report to JJB's devs has still to be submitted.

comment:2 Changed 10 years ago by mkae (Marko Käning)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.