Comments (5)
Can you try with the syncompress
command too ?
from django-pipeline.
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.
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.
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.
I've added warnings in documentation : 9d01d8f
from django-pipeline.
Related Issues (20)
- Do there any blockers to bump new release? HOT 5
- Elastic Beanstalk Deployment with Platform Python 3.7 on Amazon Linux 2 Can't HOT 1
- Replace docs `PipelineCachedStorage` references with `PipelineManifestStorage` HOT 4
- Files Not Found (dupe of #699) HOT 7
- Refused to apply style from because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. HOT 1
- Tox error due to slimit test HOT 1
- Not support Django 4.0 HOT 6
- pipeline compression skips over js when using yuglify HOT 1
- storages.backends.s3boto3.S3Boto3Storage HOT 2
- [Feature Request]: self.request to context in render_js HOT 1
- [Question][Bug] Infile paramater value wrong after updating from 1.6.14 to 2.0.7
- [QUESTION] Should not found files not raise an error while executing collectstatic HOT 3
- Remove `manifesto` support HOT 2
- Release new version HOT 2
- Support for Django 4.2 HOT 3
- Relative sourceMappingURL paths are not updated when concatenating files (breaks builds on Django 4+)
- Version 3.1.0 corrupting sourceURL index maps and producing broken javascript
- No static file generated by django-pipeline HOT 1
- Add cache breaking to <script> and <link> generation HOT 1
- Hashed filenames not being updated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-pipeline.