Giter Site home page Giter Site logo

Comments (5)

cyberdelia avatar cyberdelia commented on August 22, 2024

Can you try with the syncompress command too ?

from django-pipeline.

markstahler avatar markstahler commented on August 22, 2024

Unfortunately it gives the same error:

Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "G:\Code\project\lib\site-packages\django\core\management\__init__.py", line 438, in execute_manager
    utility.execute()
  File "G:\Code\project\lib\site-packages\django\core\management\__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "G:\Code\project\lib\site-packages\django\core\management\base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "G:\Code\project\lib\site-packages\django\core\management\base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "G:\Code\project\lib\site-packages\pipeline\management\commands\synccompress.py", line 39, in handle
    packager.pack_stylesheets(package, sync=sync, force=force)
  File "G:\Code\project\lib\site-packages\pipeline\packager.py", line 47, in pack_stylesheets
    variant=variant, **kwargs)
  File "G:\Code\project\lib\site-packages\pipeline\packager.py", line 67, in pack
    asset_url=self.individual_url(output_filename), **kwargs)
  File "G:\Code\project\lib\site-packages\pipeline\compressors\__init__.py", line 62, in compress_css
    css = getattr(self.css_compressor(verbose=self.verbose), 'compress_css')(css)
  File "G:\Code\project\lib\site-packages\pipeline\compressors\yui\__init__.py", line 16, in compress_css
    return self.compress_common(css, 'css', settings.PIPELINE_YUI_CSS_ARGUMENTS)
  File "G:\Code\project\lib\site-packages\pipeline\compressors\yui\__init__.py", line 10, in compress_common
    return self.execute_command(command, content)
  File "G:\Code\project\lib\site-packages\pipeline\compressors\__init__.py", line 236, in execute_command
    pipe.stdin.write(content)
IOError: [Errno 22] Invalid argument

from django-pipeline.

cyberdelia avatar cyberdelia commented on August 22, 2024

Oh, wait a minute, we are waiting for a script that call yuicompressor.jar with java not the yuicompressor.jar directly. This is provided by most unix packaging system. Mine look like this, hopes this help :

#!/bin/sh
java -jar "/usr/local/Cellar/yuicompressor/2.4.6/libexec/yuicompressor-2.4.6.jar" $@

Maybe I should add a warning in the documentation.

from django-pipeline.

markstahler avatar markstahler commented on August 22, 2024

I even tested this by adding 'java -jar ' as a prefix to command which did not fix the problem. I just wrote a small program and it appears that the absolute path which includes spaces (on Windows) is screwing the execution up.

yui = 'java -jar C:/Documents and Settings/mark/Documents/NetBeansProjects/mark/bin/yuicompressor.jar --type=css '

does not work but 'java -jar g:\code\project\bin ... ' does in fact work.

I will have to use one of those bash scripts for my Linux system. I will try and use a batch file for Windows. Thanks for the assistance

from django-pipeline.

cyberdelia avatar cyberdelia commented on August 22, 2024

I've added warnings in documentation : 9d01d8f

from django-pipeline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.