RuntimeError: Failed to build media files

412 views
Skip to first unread message

nav...@launchyard.com

unread,
Jan 20, 2014, 4:16:00 AM1/20/14
to revie...@googlegroups.com
i'm trying to install reviewboard from github-repo on ubuntu system under virtual environment. , i have installed all the required dependencies but when i'm issuing command like
python setup.py install

getting following exception:
RuntimeError: Failed to build media files 
Traceback (most recent call last):
  File "contrib/internal/build-media.py", line 19, in <module>
    ret = call_command('collectstatic', interactive=False, verbosity=2)
  File "/home/naveen/env3/local/lib/python2.7/site-packages/Django-1.5.5-py2.7.egg/django/core/management/__init__.py", line 161, in call_command
    return klass.execute(*args, **defaults)
  File "/home/naveen/env3/local/lib/python2.7/site-packages/Django-1.5.5-py2.7.egg/django/core/management/base.py", line 255, in execute
    output = self.handle(*args, **options)
  File "/home/naveen/env3/local/lib/python2.7/site-packages/Django-1.5.5-py2.7.egg/django/core/management/base.py", line 385, in handle
    return self.handle_noargs(**options)
  File "/home/naveen/env3/local/lib/python2.7/site-packages/Django-1.5.5-py2.7.egg/django/contrib/staticfiles/management/commands/collectstatic.py", line 164, in handle_noargs
    collected = self.collect()
  File "/home/naveen/env3/local/lib/python2.7/site-packages/Django-1.5.5-py2.7.egg/django/contrib/staticfiles/management/commands/collectstatic.py", line 121, in collect
    for original_path, processed_path, processed in processor:
  File "/home/naveen/env3/local/lib/python2.7/site-packages/pipeline/storage.py", line 32, in post_process
    packager.pack_stylesheets(package)
  File "/home/naveen/env3/local/lib/python2.7/site-packages/pipeline/packager.py", line 94, in pack_stylesheets
    variant=package.variant, **kwargs)
  File "/home/naveen/env3/local/lib/python2.7/site-packages/pipeline/packager.py", line 103, in pack
    paths = self.compile(package.paths, force=True)
  File "/home/naveen/env3/local/lib/python2.7/site-packages/pipeline/packager.py", line 97, in compile
    return self.compiler.compile(paths, force=force)
  File "/home/naveen/env3/local/lib/python2.7/site-packages/pipeline/compilers/__init__.py", line 49, in compile
    return list(executor.map(_compile, paths))
  File "/home/naveen/env3/local/lib/python2.7/site-packages/concurrent/futures/_base.py", line 549, in map
    yield future.result()
  File "/home/naveen/env3/local/lib/python2.7/site-packages/concurrent/futures/_base.py", line 404, in result
    return self.__get_result()
  File "/home/naveen/env3/local/lib/python2.7/site-packages/concurrent/futures/_base.py", line 356, in __get_result
    raise self._exception
pipeline.exceptions.CompilerError: /usr/bin/env: lessc: No such file or directory

Traceback (most recent call last):
  File "setup.py", line 229, in <module>
    "Topic :: Software Development :: Quality Assurance",
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/home/naveen/env3/local/lib/python2.7/site-packages/setuptools/command/install.py", line 73, in run
    self.do_egg_install()
  File "/home/naveen/env3/local/lib/python2.7/site-packages/setuptools/command/install.py", line 93, in do_egg_install
    self.run_command('bdist_egg')
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/home/naveen/env3/local/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 177, in run
    self.run_command("egg_info")
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 80, in run
    self.run_command('build_media')
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 100, in run
    raise RuntimeError('Failed to build media files')
RuntimeError: Failed to build media files

Can anyone help me out on this

Christian Hammond

unread,
Jan 20, 2014, 4:19:18 AM1/20/14
to revie...@googlegroups.com
Hi,

Building Review Board requires a number of development tools, including node.js, lessc, and uglifyjs.

Are you planning to do development with this, or just install it?

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com


--
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

nav...@launchyard.com

unread,
Jan 20, 2014, 4:24:46 AM1/20/14
to revie...@googlegroups.com, chi...@chipx86.com

I'm just trying to install it

Christian Hammond

unread,
Jan 20, 2014, 4:25:40 AM1/20/14
to revie...@googlegroups.com
I don't recommend installing from Git then. We provide a guide to installing Review Board with our pre-built packages.


Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com


On Mon, Jan 20, 2014 at 1:24 AM, <nav...@launchyard.com> wrote:

I'm just trying to install it

--

nav...@launchyard.com

unread,
Jan 20, 2014, 4:30:21 AM1/20/14
to revie...@googlegroups.com, chi...@chipx86.com
i did tried that to install but got the error for PIL module (I do not think PIL nodule is compatible with 2.7, is it?)
 

Christian Hammond

unread,
Jan 20, 2014, 4:32:25 AM1/20/14
to revie...@googlegroups.com
You're going to have that problem either way.

PIL should be compatible with 2.7. We use it. Most likely, your Linux distro provides a package for it, usually under the name "python-imaging" or similar.

Make sure you do not use pip for anything Review Board-related. Use easy_install only. pip, while popular, does not support many of the packaging features we require.

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com


On Mon, Jan 20, 2014 at 1:30 AM, <nav...@launchyard.com> wrote:
i did tried that to install but got the error for PIL module (I do not think PIL nodule is compatible with 2.7, is it?)
 

--

nav...@launchyard.com

unread,
Jan 20, 2014, 4:37:02 AM1/20/14
to revie...@googlegroups.com, chi...@chipx86.com
ok, I'll try to install again from scratch from http://www.reviewboard.org/docs/manual/1.6/admin/installation/linux/

And will let you know , if any problem occurs.

Thanks for quick response. 

Christian Hammond

unread,
Jan 20, 2014, 4:37:36 AM1/20/14
to revie...@googlegroups.com
That link is for the old, unsupported 1.6 release. You want the 1.7 manual.

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org


--

nav...@launchyard.com

unread,
Jan 20, 2014, 6:47:28 AM1/20/14
to revie...@googlegroups.com, chi...@chipx86.com
HI Christian,

I have followed installation process for reviewboard here. step by step While review-board installing dependencies, for PIL it says like:

Best match: PIL 1.1.7
Processing PIL-1.1.7.tar.gz
Writing /tmp/easy_install-Ej6TvT/PIL-1.1.7/setup.cfg
Running PIL-1.1.7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Ej6TvT/PIL-1.1.7/egg-dist-tmp-mU2avT
WARNING: '' not a valid package name; please use only.-separated package names in setup.py
_imaging.c:3017:5: warning: initialization from incompatible pointer type [enabled by default]
     (inquiry) image_length, /*sq_length*/
     ^
_imaging.c:3017:5: warning: (near initialization for ‘image_as_sequence.sq_length’) [enabled by default]
_imaging.c:3077:5: warning: initialization from incompatible pointer type [enabled by default]
     (inquiry) NULL, /*mp_length*/
     ^
_imaging.c:3077:5: warning: (near initialization for ‘pixel_access_as_mapping.mp_length’) [enabled by default]
libImaging/Quant.c: In function ‘rehash_collide’:
libImaging/Quant.c:154:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    *valp=(void *)((*(int *)valp)+(*(int *)&newval));
          ^
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version       1.1.7
platform      linux2 2.7.5+ (default, Sep 19 2013, 13:48:49)
              [GCC 4.8.1]
--------------------------------------------------------------------
*** TKINTER support not available (Tcl/Tk 8.5 libraries needed)
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS support not available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.
zip_safe flag not set; analyzing archive contents...
Image: module references __file__
Adding PIL 1.1.7 to easy-install.pth file
Installing pilprint.py script to /home/naveen/env-review72/bin
Installing pilconvert.py script to /home/naveen/env-review72/bin
Installing pilfont.py script to /home/naveen/env-review72/bin
Installing pilfile.py script to /home/naveen/env-review72/bin
Installing pildriver.py script to /home/naveen/env-review72/bin


I'm assuming that , it is not going to install PIL properly and while creating a site ...it throws pkg_resources.DistributionNotFound: PIL.


i did installed python-imaging library using apt-get, but that error still haunting me. 

Please show the path for enlightenment :) 
Reply all
Reply to author
Forward
Message has been deleted
0 new messages