Comments (11)
This is working.
Try using the latest version of grip, deleting any styles downloaded from GitHub (currently grip/instance/style-cache
), and clearing your browser cache.
GitHub
localhost
from grip.
okay, sorry about the noise. Would you be so kind to provide instructions to install grip from a source tree?
from grip.
Not a problem, @faxm0dem. Certainly!
First some questions. What version of Python do you have installed (python -V
)? Do you have pip (pip -V
)? If not, do you have setuptools?
With pip, upgrading should be as easy as
$ pip install --upgrade grip
But you said you can't currently do that. Perhaps you should get that fixed? It's the underlying problem, and I'm sure you'll have issues with other Python libraries if you don't. Try uninstalling Python completely, then re-installing it. If you install Python 3.4, it should come bundled with pip. (If you want Python 2.7, follow these instructions to get pip.) If you do this, you should be able to run pip install grip
normally.
Anyway. If you can't do any of that for whatever reason, you can still download grip separately. Either by grabbing the latest release and unzipping it, or by cloning the repository with git clone http://github.com/joeyespo/grip.git
.
From there, open a terminal in the new grip
directory and enter the following:
$ python setup.py install
Note that using setup.py directly, as opposed to using pip, you'll have to manually upgrade and uninstall the package later by deleting files in Python's site-packages directory.
Does that help?
from grip.
Thanks a lot for taking this much time to answer a pynoob. This helped a lot.
That being said, I really must be something wrong, as the two issues still don't seem to be solved ( #62 and #63). I removed my ~/.local
directory and reinstalled grip using pip install grip --user
(pip is working again after a system upgrade).
from grip.
You're welcome!
Did you mean pip install grip --upgrade
or pip install grip --user
?
Also, try prefixing it with sudo, i.e. sudo pip install --upgrade grip
and see if that helps. (The next version of grip shouldn't require sudo access.)
from grip.
pip install grip --upgrade --user
Not using sudo
Requirement already up-to-date: grip in ./.local/lib/python2.7/site-packages
Requirement already up-to-date: Flask==0.10.1 in ./.local/lib/python2.7/site-packages (from grip)
Requirement already up-to-date: Jinja2==2.7.3 in ./.local/lib/python2.7/site-packages (from grip)
Requirement already up-to-date: Markdown==2.4.1 in /usr/lib/python2.7/dist-packages (from grip)
Requirement already up-to-date: MarkupSafe==0.23 in ./.local/lib/python2.7/site-packages (from grip)
Requirement already up-to-date: Pygments==1.6 in /usr/lib/python2.7/dist-packages (from grip)
Requirement already up-to-date: Werkzeug==0.9.6 in ./.local/lib/python2.7/site-packages (from grip)
Requirement already up-to-date: docopt==0.6.1 in ./.local/lib/python2.7/site-packages (from grip)
Requirement already up-to-date: itsdangerous==0.24 in ./.local/lib/python2.7/site-packages (from grip)
Requirement already up-to-date: path-and-address==0.2.0 in ./.local/lib/python2.7/site-packages (from grip)
Requirement already up-to-date: requests==2.3.0 in /usr/lib/python2.7/dist-packages (from grip)
Cleaning up...
from grip.
Hmm. That looks normal. I do know sometimes pip has trouble upgrading packages. If you can fully uninstall grip first, that might help. You can confirm Grip's version with grip --version
. If it's "2.0.1", then this really could be a Grip bug.
Also, I haven't used pip install --user
before, so perhaps that's causing trouble. Could you sudo pip install
just to see if that works, then uninstall and try again with --user
? That way we at least know if it's working or if Python / pip really is broken on your setup.
(If security is your concern, you could try it on a VM or cloud machine.)
from grip.
I just checked with a collegue with a clean install who tried too using virtualenv
and he's having the exact same issues: ###title
!= ### title
and the links not working. Version is indeed 2.0.1
from grip.
Ok, great.
That's still bizarre though--all rendering actually happens on GitHub with its Markdown API, not locally by Grip. Could you copy / paste the following into a new README.md file, render it with grip, take a screenshot and post that here?
###Title 1
Body 1
### Title 2
Body 2
I wonder if I'll see an artifact I'll recognize. Thanks for being patient with this.
from grip.
https://gist.github.com/faxm0dem/cfd66c9747611884c7d9
from grip.
Haha, ok. I know what's going on. I didn't think to try it with grip --gfm
until just now; I thought you were running grip normally without arguments.
This is actually working as expected. If you want Title 1
to render like a README.md
file, simply drop the --gfm
argument. That's actually used when you want to render like user comments or issues. (More details here.)
Try it out. Copy / paste that into a new comment here and preview it. It'll look like your screenshot.
Cheers.
from grip.
Related Issues (20)
- Question: navigation
- table of contents: link to sections
- Spelling of "Trust Over IP" HOT 1
- There is no longer any need for the hack, as GitHub now supports [LaTeX equations in Markdown](https://github.blog/changelog/2022-05-19-render-mathematical-expressions-in-markdown/) natively using MathJax. It would be great, however, if grip could display such equations correctly in its preview.
- grip reports not finding README (but does not try to open that file)
- Create CONTRIBUTION.md to guide open source developers to contribute to this project
- Render only difference
- grip is not working w/ latest flask and werkzeug versions HOT 2
- Use grip --export in flask.
- Having issues with latest release, 4.6.2 HOT 1
- Tag for 4.6.2 missing HOT 2
- GitHub API Rate Limit HOT 1
- GRIP (possible regression) giving me an error for some reason HOT 18
- [BUG] pip install HOT 1
- data-color-mode and data-light-theme are not set, so no colors are used
- Style doesn't look like GitHub for Code Blocks / Inline Code HOT 7
- Support Markdown extension: Alerts
- Getting the latest grip?
- Render doesn't work
- A Bunch of 404 errors on GET HOT 1
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 grip.