hyde-old icon indicating copy to clipboard operation
hyde-old copied to clipboard

Add 'cssmin' to requirements.txt

Open srid opened this issue 15 years ago • 4 comments

$ python hyde.py  -g -s ~/blog -d ~/blog-deploy 
INFO:Pre processing /Users/user/blog[2011-02-05 16:51:40,922]
INFO:Processing /index.html[2011-02-05 16:51:40,923]
INFO:Processing /about/about.html[2011-02-05 16:51:41,385]
INFO:Processing /archives/firstpost.html[2011-02-05 16:51:41,413]
INFO:Processing /archives/archives.html[2011-02-05 16:51:41,426]
INFO:Processing /media/css/base.css[2011-02-05 16:51:41,438]
Generation Failed
Traceback (most recent call last):
  File "/Users/sridharr/code/hyde/hydeengine/__init__.py", line 417, in process_all
    self.process(resource)
  File "/Users/sridharr/code/hyde/hydeengine/__init__.py", line 377, in process
    return self.processor.process(item)
  File "/Users/sridharr/code/hyde/hydeengine/processor.py", line 111, in process
    processor.process(resource)
  File "/Users/sridharr/code/hyde/hydeengine/media_processors.py", line 102, in process
    import cssmin
ImportError: No module named cssmin

srid avatar Feb 06 '11 00:02 srid

cssmin is optional. Not everybody needs it.

Maybe create "recommended.txt"?

valpackett avatar Feb 06 '11 11:02 valpackett

cssmin is optional. Not everybody needs it.

If it is optional, then why does the default example mentioned in README fail to run? To explain, I followed the "Running with Hyde" section, specifically step 1 (Initializer) and 2 (Generator).

Maybe create "recommended.txt"?

I suggest that the optional dependencies be put in setup.py as extras_require. See the documentation or SQLObject's setup.py for an example.

srid avatar Feb 07 '11 03:02 srid

yeah - recommended seems like a good idea. Will do.

navilan avatar Feb 07 '11 04:02 navilan

What @srid said. The README example failing first-hand really gives a bad first impression...

zenbum avatar Sep 11 '12 17:09 zenbum