rmcgibbo / slidedeck

Beautiful HTML5 slides in markdown. A easy-to-use fork of the google-io-2012 slide deck
317 stars 47 forks source link

slidedeck installed from pip missing `data` directory #20

Closed wavebeem closed 10 years ago

wavebeem commented 10 years ago

Operating system

Ubuntu Server 13.10

Installation method

sudo aptitude install python-pip
sudo pip install jinja2 markdown watchdog
sudo pip install slidedeck

Problem

Running slidedeck create lightning-talk-jison yields the following error:

Traceback (most recent call last):
  File "/usr/local/bin/slidedeck", line 75, in <module>
    main()
  File "/usr/local/bin/slidedeck", line 65, in main
    create.create_project(args.path)
  File "/usr/local/lib/python2.7/dist-packages/slidedeck/create.py", line 24, in create_project
    shutil.copytree(data_dir, directory, ignore=callback)
  File "/usr/lib/python2.7/shutil.py", line 171, in copytree
    names = os.listdir(src)
OSError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/slidedeck/data'

Workaround

Cloning the GitHub repo and running setup.py as instructed installed correctly, but as far as I can tell there's no way to uninstall using that script.

rmcgibbo commented 10 years ago

I'll take a look at this. I think it's probably missing something from the MANIFEST file.

rmcgibbo commented 10 years ago

(ps. thanks for the very thorough bug report!)

rmcgibbo commented 10 years ago

I was able to reproduce this issue on my machine when installing from pip. I pushed a new release to pypi and it appears to fix the issue.

wavebeem commented 10 years ago

Awesome. Do you know if it's possible to purge the installation I created using setup.py now that I can use pip to install?

kyleabeauchamp commented 10 years ago

Might have to manually delete it from python site-packages?

On 4/18/14, Brian Mock notifications@github.com wrote:

Awesome. Do you know if it's possible to purge the installation I created using setup.py now that I can use pip to install?


Reply to this email directly or view it on GitHub: https://github.com/rmcgibbo/slidedeck/issues/20#issuecomment-40839842

rmcgibbo commented 10 years ago

you should be able to pip uninstall slidedeck, even if you installed it with setup.py

wavebeem commented 10 years ago

Good on pip for being able to that.

I just installed with pip and was able to create and render a slide deck.

You're more than welcome for the detail, it's the least I can do.