Giter Site home page Giter Site logo

magpie's Introduction

magpie

Security Notice

Magpie is no longer under active development. There has been a disclosure of a bug that exposes the entire filesystem through Magpie.

image

magpie: [ma]rkdown, [g]it, [pie]thon

Git-backed Evernote replacement

Quickstart

Pre-requisites

(outside of PyPI):

  • Python 2.7
  • Pip/Easy Install
  • Git
  • libmagic (OS X specific issue; it's already installed on most Linux distros)
  • cygwin (Windows only requirement; see issue #4)

Installing magpie

If you're a Python person, and you are using virtual environments, just:

pip install magpie

If you don't know what Python virtual environments are:

sudo pip install magpie

Setup Git Repo

git init

Locally:

mkdir -p /path/to/notes/repo/
cd /path/to/notes/repo/
git init

On Github

On Bitbucket

git config

Depending on what your environment is like, you may get a nasty error the first time you try to do something useful. This happened to me when I setup magpie to work with supervisor. In order to resolve this, I had to set the user.name and user.email fields in git config. The error message on the magpie page will tell you the syntax.

Launch magpie

In a Python virtualenv:

magpie

If you installed magpie with sudo:

sudo magpie

Connect

In browser, go to http://localhost:8080

Configure

On the main page, there should be a link to configure magpie. (Alternatively, http://localhost:8080/config)

Enter as much info here as you want. Username / Password are not required, but recommended. The only required field is repo. The path from "Init Git Repo" above should be entered here.

Home Dir Config

As of version 0.0.4, if you have a ".magpie" directory in your home directory, you can store config files there, instead of the default path. You'll need to make this directory after installing magpie and before running it. Alternatively, you can create the directory and move the config files there manually.

What is magpie?

I love Evernote, but I no longer trust my data to cloud providers. Magpie is an attempt to make a reasonably sufficient Evernote replacement where the users control their data.

Basically, magpie is just a web tool for managing text files in a git repo. In it, you can create notebooks (which are just folders); create, edit, and delete notes (which are just files). That's pretty much it. However, when you make any of these changes, they are automatically committed to git.

Demo

A demo of magpie is available here

(If you make changes and they disappear, it's because the demo resets itself every 15 minutes.)

What isn't magpie?

  • Complete (see contributing)
  • Secure (magpie is only as safe as you make it. If your git repo is hosted on a public server, people will be able to read your notes. If you run it on an open network, people may be able to access your notes. Etc.)
  • Shiny (This is a side project written and maintained - so far - by a single person. It's never going to be as good or as useable as Evernote.)

Features

  • Markdown & HTML notes are rendered on the page
  • Uses git as a backend

    • Easy backups (if you know git): clone once, then push/pull to backup notes
    • track history, etc, just like with git (using git, not via magpie's web interface ... yet?)
  • Render "[ ]" and "[x]" as check boxes. Clicking them changes and saves the note.
  • Email yourself notes (see emailing notes)
  • Scrape PDFs to make them searchable in magpie (see pdf_scraper)

Image Attribution

Logo/favicon courtesy of Kieran Palmer, as licensed under CC BY-SA 2.0 Generic.

magpie's People

Contributors

alet avatar charlesthomas avatar cooperra avatar erickr avatar erwyn avatar jackolantern avatar matthewi avatar peterjeschke avatar thornbill avatar tomleo avatar tony-o avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magpie's Issues

400 errors caused by bad characters pasted in to textarea.

Maybe this problem is unique to my system. My 'server' is a first generation AppleTV running Debian wheezy. But I've had several problems getting 400 errors during save operations after pasting in content from external sources. There's probably a better solution available, but here's how I solved it on my system:

First, I copied ununicode.py to the 'handler/' directory.

Next , I added an import statement at line 10 of 'handler/note.py':

10 from base import BaseHandler
11 import ununicode

Then I added this at line 54 of 'handler/note.py':

if not confirmed:
 53             note_contents = open(path).read()
 54             note_contents = ununicode.toascii(note_contents)
 55             self.render('note.html', notebook_name=notebook_name,

This solved the problem for me.

can't install magpie

After running "pip install magpie" I get this error from my log files.

"InstallationError: Command /usr/bin/python -c "import setuptools, tokenize;file='/private/tmp/pip_build_root/py-bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-hvqdnY-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/py-bcrypt"

Any ideas? I'm on OSX 10.8.5 and have installed pip, git, Python, and libmagic. (though when I type libmagic in the terminal it return "command not found" But when I try installing it again it says that it is already installed)

Issue install Magpie

wsgiref seems to have issues...

Downloading/unpacking wsgiref==0.1.2 (from magpie)
  Downloading wsgiref-0.1.2.zip
  Running setup.py (path:/tmp/pip_build_silas/wsgiref/setup.py) egg_info for package wsgiref
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_silas/wsgiref/setup.py", line 5, in <module>
        import ez_setup
      File "/tmp/pip_build_silas/wsgiref/ez_setup/__init__.py", line 170
        print "Setuptools version",version,"or greater has been installed."
                                 ^
    SyntaxError: Missing parentheses in call to 'print'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_silas/wsgiref/setup.py", line 5, in <module>

    import ez_setup

  File "/tmp/pip_build_silas/wsgiref/ez_setup/__init__.py", line 170

    print "Setuptools version",version,"or greater has been installed."

                             ^

SyntaxError: Missing parentheses in call to 'print'

----------------------------------------
Cleaning up...

I'm running arch.

git submodule dependency failure

I have this in my terminal, and if I go to the repository url, there's no link to checkout…:

Clone of 'https://github.com/domchristie/to-markdown.git' into submodule path 'magpie/static/js/to-markdown' failed

Magpie doesn't write anything

Hello,

I just installed Magpie (So I potentially did crappy things with it), but I just can't figure out what's not working: whenever I try to create a notebook, everything seems to works well (nothing alarming in my console) but… nothing is created.

Any help?

magpie fails to start

(ENV)tom@tom-ThinkPad-T510 ~/hacking/py_magpie $ magpie
Traceback (most recent call last):
  File "/home/tom/hacking/py_magpie/ENV/bin/magpie", line 8, in <module>
    load_entry_point('magpie==0.0.4', 'console_scripts', 'magpie')()
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 318, in load_entry_point
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 2221, in load_entry_point
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 1954, in load
  File "/home/tom/hacking/py_magpie/ENV/local/lib/python2.7/site-packages/magpie/server.py", line 38, in <module>
    parse_config_file(config_path.web)
  File "/home/tom/hacking/py_magpie/ENV/local/lib/python2.7/site-packages/magpie/config/__init__.py", line 8, in __getattr__
    return_path = path.join(path, key + '.cfg')
TypeError: join() takes exactly one argument (2 given)

Magpie Fails to run

Traceback (most recent call last):
  File "/usr/local/bin/magpie", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Sphinx==1.2.2

Run on ubuntu12.04 VM using vagrant

The commands I used (as root):

apt-get install python-setuptools python-dev
easy_install pip
pip install magpie
git config --global user.name "John Doe"
git config --global user.email [email protected]

Encoding issues still - internal server error 500

We are still having encoding issues at different places as it seems.

The following reproduces one issue:

  1. Create notebook containing utf8 characters, for example "testnotebook åäö"
  2. Create a note containing utf8 characters, for example "test åäö"
  3. Add a few tasks to the note, for example:
    [ ] task 1
    [ ] task 2
  4. Save
  5. Try to edit the note, and on save the internal server error shows.

Have seen a few more but need to detail the way to reproduce them. Whats the state of python 3, is it reasonable to use that as a requirement instead of 2.7, if it at all might help us here?

Can't set path to repo

I followed the instructions to install (had to use 'sudo' to run the pip command) and initialized a new git repo, then started magpie from that directory. Loaded localhost:8080, but the page warned "Your "repo" setting (/path/to/notes/repo/) is not a valid directory". I clicked to a settings form, set the path, and got a 500 when I saved:

[I 140611 12:28:11 web:1728] 200 GET /config (127.0.0.1) 4.39ms
[E 140611 12:28:19 web:1305] Uncaught exception POST /config (127.0.0.1)
    HTTPRequest(protocol='http', host='localhost:8080', method='POST', uri='/config', version='HTTP/1.1', remote_ip='127.0.0.1', headers={'Content-Length': '64', 'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Host': 'localhost:8080', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0', 'Dnt': '1', 'Connection': 'keep-alive', 'Referer': 'http://localhost:8080/config', 'Content-Type': 'application/x-www-form-urlencoded'})
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1218, in _when_complete
        callback()
      File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1239, in _execute_method
        self._when_complete(method(*self.path_args, **self.path_kwargs),
      File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 2395, in wrapper
        return method(self, *args, **kwargs)
      File "/usr/local/lib/python2.7/dist-packages/magpie/handler/config.py", line 32, in post
        config_file = open(self.settings.config_path.web, 'w')
    IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/magpie/config/web.cfg'

From the look of it, it's trying to write a config file to the directory that magpie was installed to rather than a dotfile in my user directory. Or pip was supposed to be able to run without 'sudo' and target my home directory but required extra setup not in the instructions.

Any thoughts?

Consider Adding MathJax Support

I often use TexMath style math expressions in my notes. So as an experiment I added the following to head section of base.html

 <script type="text/x-mathjax-config">
        MathJax.Hub.Config({
            tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
        });
    </script>
    <script type="text/javascript"
        src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
    </script>

It works very well for me and my math expressions no render beuatifully.

How to setup a dev environment

Hello,

I'd like to setup a dev environment to work on magpie's code, but I don't know a lot of things about how to do this for Python. How to setup a dev environment so that I don't install stuff (like tornado or filemagick) system wide?

Regards,

Can't access web based config

Hi there,
I've installed Magpie on my Debian VM using the doc, (I got python, pip, git and libmagic-dev )
I've simply done sudo pip install magpie + create git repo (No issue) + sudo magpie and I don't see any error when I start magpie.
However if I access the IP of my VM:8080, I just got an "Unable to connect" type of error.

Any idea what could be wrong?

Thank you!

sh not available on Windows.

When installing magpie using pip install magpie the procedure errors out when attempting to install sh:

ImportError: sh 1.09 is currently only supported on linux and osx. please install pbs 0.110 (http://pypi.python.org/pypi/pbs) for windows support.

I did not see linux/osx as requirements in the documentation, and do not have the know-how on how to make magpie use pbs instead of sh on Windows. I could install pbs on its own, but the magpie installers insists on using sh.

I'm running msysgit bash on Windows 7 64-bit. Python version 2.7.

Table Support: Consider using python_mistune in place of python_markdown2

Since pipe tables are more or less the 'default' table style in most of the markdown tools I've used, I have a lot of them in my notes. Unfortunately, python_markdown2 supports only the wiki-tables format.

So I did a 'pip install mistune' and edited 'handler/note.py' to change the import:

from mistune import markdown

Then I added a touch of css to 'template/base.html' to make the tables render a little nicer:

<style>
        td {padding-left: 5px; padding-right: 5px; padding-top: 3px; vertical-align: top;}
        th {padding-left: 5px; padding-right: 5px;}
        textarea {font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace;}
    </style>

Obviously, the last line has nothing to do with tables, I just preferred specifying mono-spaced fonts for the text area.

Anyway, my pipe tables no work just fine.

.gitignore in notes repo

I added a .gitignore to my notes repo and now it shows up as a notebook tab in magpie 0.1.0 (see attached image).

Also, it might be a good feature for magpie to also ignore notebooks in the gitignore file. For example, hide my "archive" notebook if I have it in .gitignore. Thanks.

magpie

Internal server error on search

Installed magpie and added some notes from another notes-system as .md files. When using the search, I get the following error message in the console:

[E 140613 22:31:02 web:1305] Uncaught exception GET /search?q=test (127.0.0.1)
HTTPRequest(protocol='http', host='localhost:8080', method='GET', uri='/search?q=test', version='HTTP/1.1', remote_ip='127.0.0.1', headers={'Accept-Language': 'sv-SE,sv;q=0.8,en-US;q=0.6,en;q=0.4,da;q=0.2,de;q=0.2,nb;q=0.2', 'Accept-Encoding': 'gzip,deflate,sdch', 'Host': 'localhost:8080', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8', 'User-Agent': 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36', 'Connection': 'keep-alive', 'Referer': 'http://localhost:8080/')
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1218, in _when_complete
callback()
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1239, in _execute_method
self._when_complete(method(_self.path_args, *_self.path_kwargs),
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 2395, in wrapper
return method(self, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/magpie/handler/search.py", line 42, in get
string = self._highlight(string, query)
File "/usr/local/lib/python2.7/dist-packages/magpie/handler/base.py", line 25, in _highlight
highlight)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128)

Unable to build using setup.py

I was trying to build it manually using "sudo python setup.py install" and it wasn't working. The error I got is:

~/Documents/magpie$ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to magpie.egg-info/requires.txt
writing magpie.egg-info/PKG-INFO
writing top-level names to magpie.egg-info/top_level.txt
writing dependency_links to magpie.egg-info/dependency_links.txt
writing entry points to magpie.egg-info/entry_points.txt
package init file 'magpie/static/__init__.py' not found (or not a regular file)
package init file 'magpie/template/__init__.py' not found (or not a regular file)
reading manifest file 'magpie.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'magpie.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/magpie
copying magpie/server.py -> build/lib.linux-x86_64-2.7/magpie
copying magpie/__init__.py -> build/lib.linux-x86_64-2.7/magpie
creating build/lib.linux-x86_64-2.7/magpie/config
copying magpie/config/__init__.py -> build/lib.linux-x86_64-2.7/magpie/config
creating build/lib.linux-x86_64-2.7/magpie/handler
copying magpie/handler/search.py -> build/lib.linux-x86_64-2.7/magpie/handler
copying magpie/handler/base.py -> build/lib.linux-x86_64-2.7/magpie/handler
copying magpie/handler/config.py -> build/lib.linux-x86_64-2.7/magpie/handler
copying magpie/handler/__init__.py -> build/lib.linux-x86_64-2.7/magpie/handler
copying magpie/handler/login.py -> build/lib.linux-x86_64-2.7/magpie/handler
copying magpie/handler/note.py -> build/lib.linux-x86_64-2.7/magpie/handler
copying magpie/handler/notebook.py -> build/lib.linux-x86_64-2.7/magpie/handler
copying magpie/handler/index.py -> build/lib.linux-x86_64-2.7/magpie/handler
copying magpie/config/pdf_scraper.cfg -> build/lib.linux-x86_64-2.7/magpie/config
copying magpie/config/web.cfg -> build/lib.linux-x86_64-2.7/magpie/config
copying magpie/config/email_notes.cfg -> build/lib.linux-x86_64-2.7/magpie/config
creating build/lib.linux-x86_64-2.7/magpie/static
error: can't copy 'magpie/static/img': doesn't exist or not a regular file

Does anyone know what is wrong?

Notes are missing newlines

When adding a simple text note with just text on multiple lines, it would be nice to have them automatically converted into something like <br> or actually rendered as newlines when showing the note, without having to manually add a <br> or something else to split the lines.

Install failed with Exception

I tried to install with sudo pip install magpie but the install failed with an SSLError. Here are the last 40 lines of ~/.pip/pip.log containing the Exception Traceback:

$ cat .pip/pip.log | tail -n 40
  Ignoring link https://pypi.python.org/packages/source/t/tornado/tornado-3.2.1.tar.gz#md5=d11986d4639aa9f71a31da1ebf40dc19 (from https://pypi.python.org/simple/tornado/), version 3.2.1 doesn't match ==3.2
  Ignoring link https://pypi.python.org/packages/source/t/tornado/tornado-3.2.2.tar.gz#md5=bf37082723ace27f508400d65cf111fe (from https://pypi.python.org/simple/tornado/), version 3.2.2 doesn't match ==3.2
  Ignoring link https://pypi.python.org/packages/source/t/tornado/tornado-4.0.1.tar.gz#md5=2b28e37b95aa653369a31a440242a24a (from https://pypi.python.org/simple/tornado/), version 4.0.1 doesn't match ==3.2
  Ignoring link https://pypi.python.org/packages/source/t/tornado/tornado-4.0.2.tar.gz#md5=985c0e704b765c33a6193d49d1935588 (from https://pypi.python.org/simple/tornado/), version 4.0.2 doesn't match ==3.2
  Ignoring link https://pypi.python.org/packages/source/t/tornado/tornado-4.0.tar.gz#md5=8f4ccc60340b9cd3ae7af6ea7a1e4d0f (from https://pypi.python.org/simple/tornado/), version 4.0 doesn't match ==3.2
  Ignoring link https://pypi.python.org/packages/source/t/tornado/tornado-4.1.tar.gz#md5=a06ea343375f2247344257ef691641f9 (from https://pypi.python.org/simple/tornado/), version 4.1 doesn't match ==3.2
  Ignoring link https://pypi.python.org/packages/source/t/tornado/tornado-4.1b2.tar.gz#md5=c2aea149f627f36be4df6e2fc37d3399 (from https://pypi.python.org/simple/tornado/), version 4.1b2 doesn't match ==3.2
  Ignoring link https://pypi.python.org/packages/source/t/tornado/tornado-4.2b1.tar.gz#md5=6729264a76b2de11cb8bee629e57c67e (from https://pypi.python.org/simple/tornado/), version 4.2b1 doesn't match ==3.2
  Downloading from URL https://pypi.python.org/packages/source/t/tornado/tornado-3.2.tar.gz#md5=bd83cee5f1a5c5e139e87996d00b251b (from https://pypi.python.org/simple/tornado/)
Cleaning up...
  Removing temporary dir /tmp/pip_build_root...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1197, in prepare_files
    do_download,
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1375, in unpack_url
    self.session,
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 572, in unpack_http_url
    download_hash = _download_url(resp, link, temp_location)
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 433, in _download_url
    for chunk in resp_read(4096):
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 421, in resp_read
    chunk_size, decode_content=False):
  File "/usr/lib/python2.7/dist-packages/urllib3/response.py", line 225, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/usr/lib/python2.7/dist-packages/urllib3/response.py", line 174, in read
    data = self._fp.read(amt)
  File "/usr/lib/python2.7/httplib.py", line 567, in read
    s = self.fp.read(amt)
  File "/usr/lib/python2.7/socket.py", line 380, in read
    data = self._sock.recv(left)
  File "/usr/lib/python2.7/ssl.py", line 341, in recv
    return self.read(buflen)
  File "/usr/lib/python2.7/ssl.py", line 260, in read
    return self._sslobj.read(len)
SSLError: The read operation timed out

I am using Ubuntu 14.04 and I have Python 2.7.6.

Demo offline

I wanted to get an impression of Magpie, but unfortunately the demo is offline.
How does it look like?

Automated Travis test misconfigured

All of the pull requests are marked as having failed tests, because Travis is misconfigured: it is trying to run tests with a git identify set, resulting in failures like:

ErrorReturnCode_128:

RAN: '/usr/bin/git commit -m creating /tmp/magpie_testing_git_repo/git_tests/new_note'

STDOUT:

STDERR:

*** Please tell me who you are.

Run

git config --global user.email "[email protected]"

git config --global user.name "Your Name"

to set your account's default identity.

Omit --global to set the identity only in this repository.

fatal: empty ident name (for <travis@testing-worker-linux-f25aadab-1-1616-linux-5-49020081.(none)>) not allowed

unable to launch magpie on OSX 10.9.3

Looks like Sphinx is missing but pip says it's installed.

Traceback (most recent call last): File "/usr/local/bin/magpie", line 5, in <module> from pkg_resources import load_entry_point File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module> working_set.require(__requires__) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve raise DistributionNotFound(req) # XXX put more info here pkg_resources.DistributionNotFound: Sphinx==1.2.2

Mention dependency

On OS X, I needed to brew install libmagic before magpie would work. I don't think this is mentioned in the instructions (at least in the README).

New note should start an edit window directly

Currently, the user first have to name the note before starting taking notes.

I propose to change the flow to be:

  1. Click New note
  2. Full textarea for editing(autosave should work here to)
  3. Name the note, preferrably in a field below the textarea.
  4. Save

Would also be great if we could auto-suggest a name for the note after the notes have been added. NvPy takes whatever is on the first line of the note, makes sense more often than you can think. :)

Explain the security issue?

It seems that the dropbox link which disclosed the security vulnerability is a dead link. Would you mind explaining it so that other developers can learn from it?

Cant PIP install on Arch linux

Not sure what logs you need but here is what I think is relevant:

Downloading wsgiref-0.1.2.zip
  Downloading from URL https://pypi.python.org/packages/source/w/wsgiref/wsgiref-0.1.2.zip#md5=29b146e6ebd0f9fb119fe321f7bcf6cb (from https://pypi.python.org/simple/wsgiref/)
  Running setup.py (path:/tmp/pip_build_jake/wsgiref/setup.py) egg_info for package wsgiref
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_jake/wsgiref/setup.py", line 5, in <module>
        import ez_setup
      File "/tmp/pip_build_jake/wsgiref/ez_setup/__init__.py", line 170
        print "Setuptools version",version,"or greater has been installed."
                                 ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build_jake/wsgiref/setup.py", line 5, in <module>

    import ez_setup

  File "/tmp/pip_build_jake/wsgiref/ez_setup/__init__.py", line 170

    print "Setuptools version",version,"or greater has been installed."

                             ^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...
  Removing temporary dir /tmp/pip_build_jake...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_jake/wsgiref
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python3.4/site-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python3.4/site-packages/pip/req.py", line 1229, in prepare_files
    req_to_install.run_egg_info()
  File "/usr/lib/python3.4/site-packages/pip/req.py", line 325, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/usr/lib/python3.4/site-packages/pip/util.py", line 697, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_jake/wsgiref 

500: Internal Server Error

Hi there.

I install magpie without any issues. I can launch it the first time. As soon as I configure the git location (local) it gives me error 500 on some pages. I can still manually access the config page but can not use the tool. Here is the uncaught exception.

Ubuntu 14.04 LTS

[E 140702 18:07:28 web:1305] Uncaught exception GET / (127.0.0.1)
HTTPRequest(protocol='http', host='localhost:8080', method='GET', uri='/', version='HTTP/1.1', remote_ip='127.0.0.1', headers={'Accept-Language': 'en-US,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Host': 'localhost:8080', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8', 'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0', 'Connection': 'keep-alive', 'Referer': 'http://localhost:8080/config', 'Cookie': 'session=t1h20jzh9pkiZQqng1qZIsQ5f7kr5ZRQJqcDUK0BvZYXetXCX2oqp2EtRXr902h7'})
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1218, in _when_complete
callback()
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1239, in _execute_method
self._when_complete(method(_self.path_args, *_self.path_kwargs),
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 2395, in wrapper
return method(self, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/magpie/handler/index.py", line 23, in get
self.application.git.status()
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 769, in call
return RunningCommand(cmd, call_args, stdin, stdout, stderr)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 330, in init
self.wait()
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 334, in wait
self._handle_exit_code(self.process.wait())
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 348, in _handle_exit_code
self.process.stderr
ErrorReturnCode_128:

  RAN: '/usr/bin/git status'

  STDOUT:


  STDERR:
fatal: This operation must be run in a work tree

manually running git status in the git repo dir returns
git status
On branch master
Initial commit
nothing to commit (create/copy files and use "git add" to track)

pip install magpie (0.0.3) fails to install magic library

After pip install magpie, these are the libs that are installed:

$ Successfully installed magpie Jinja2 MarkupSafe Pygments Sphinx argparse backports.ssl-match-hostname docutils filemagic markdown2 py-bcrypt pyPdf sh tornado
$ Cleaning up...

Then, after:
$ magpie

Traceback (most recent call last):
File "/Users/bmentges/.virtualenvs/tasks/bin/magpie", line 8, in
load_entry_point('magpie==0.0.3', 'console_scripts', 'magpie')()
File "/Users/bmentges/.virtualenvs/tasks/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 318, in load_entry_point
File "/Users/bmentges/.virtualenvs/tasks/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2221, in load_entry_point
File "/Users/bmentges/.virtualenvs/tasks/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1954, in load
File "/Users/bmentges/.virtualenvs/tasks/lib/python2.7/site-packages/magpie/server.py", line 14, in
from magpie.handler import urls
File "/Users/bmentges/.virtualenvs/tasks/lib/python2.7/site-packages/magpie/handler/init.py", line 4, in
from note import NoteHandler
File "/Users/bmentges/.virtualenvs/tasks/lib/python2.7/site-packages/magpie/handler/note.py", line 4, in
from magic import Magic
File "/Users/bmentges/.virtualenvs/tasks/lib/python2.7/site-packages/magic/init.py", line 18, in
from magic.identify import Magic, MagicError
File "/Users/bmentges/.virtualenvs/tasks/lib/python2.7/site-packages/magic/identify.py", line 16, in
from magic import api
File "/Users/bmentges/.virtualenvs/tasks/lib/python2.7/site-packages/magic/api.py", line 22, in
raise ImportError('Unable to find magic library')

Please update requirements to include this library

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.