centraldedados / datacentral

Tools for generating portable data portals
58 stars 9 forks source link

[First issue :)] I'm unable to generate the static files #1

Closed vied12 closed 10 years ago

vied12 commented 10 years ago
$ make html
. `pwd`/.env/bin/activate; python generate.py
      i     | Directory repos doesn't exist, creating it.
Traceback (most recent call last):
  File "generate.py", line 245, in <module>
    generate()
  File "/tmp/datacentral/.env/local/lib/python2.7/site-packages/click/core.py", line 384, in __call__
    return self.main(*args, **kwargs)
  File "/tmp/datacentral/.env/local/lib/python2.7/site-packages/click/core.py", line 370, in main
    self.invoke(ctx)
  File "/tmp/datacentral/.env/local/lib/python2.7/site-packages/click/core.py", line 524, in invoke
    ctx.invoke(self.callback, **ctx.params)
  File "/tmp/datacentral/.env/local/lib/python2.7/site-packages/click/core.py", line 236, in invoke
    return callback(*args, **kwargs)
  File "generate.py", line 137, in generate
    shutil.rmtree(os.path.join(output_dir, "css"))
  File "/usr/lib/python2.7/shutil.py", line 239, in rmtree
    onerror(os.listdir, path, sys.exc_info())
  File "/usr/lib/python2.7/shutil.py", line 237, in rmtree
    names = os.listdir(path)
OSError: [Errno 2] No such file or directory: '_output/css'
make: *** [html] Error 1
rlafuente commented 10 years ago

Fixed in 348c423ae44a74eb27ab6ea9c16d60e572250b01 -- thanks ;-)