question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Install Wagtail in just 7 lines" doesn't works

See original GitHub issue

I try to install wagtail following the instruction on the front page:

pip install wagtail
wagtail start mysite
cd mysite
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver

Sadly it fail already on pip install wagtail:

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/lib/python3.6/dist-packages/modelcluster'
Consider using the `--user` option or check the permissions.

I’m using a clean EC2 instance on AWS started from https://aws.amazon.com/cloud9/ with Python 3.6.7. I guess I should use a virtual environment.

The point is: if it can break so easily why showing those instruction? I just wanted to test wagtail and launched an VM in the cloud to try it, this give me a bad first impression.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
gasmancommented, Feb 14, 2019

I like the idea of using pip install --user - it’s a good middle ground that avoids the two extremes of giving people advice that contradicts real-world best practices, versus “here’s how to install Wagtail in 7 commands once you’ve read a whole load of documentation about Python virtualenvs” 😃 And for people who are already familiar with virtualenvs, it should hopefully be self-explanatory enough that they should be able to confidently adapt the instructions accordingly. Thanks @BenSturmfels!

Any objections to this approach? I’ll go ahead and update the page if not.

1reaction
tomdysoncommented, Mar 26, 2019

Thanks very much for the feedback @gagarine. We discussed some options in the last core team meeting and agreed on this:

image

the link goes to https://docs.python.org/3/tutorial/venv.html. Do you think this gives the right level of help to beginners?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wagtail & Django issues - python - Stack Overflow
I've found that ManifestStaticFilesStorage doesn't always work correctly depending on how the templates are constructed and the static files ...
Read more >
Installing Wagtail - YouTube
Wagtail has become a very popular CMS in the last year. Start with this video to see how to get it up and...
Read more >
How to Install Wagtail with Docker - LearnWagtail.com
Installing Wagtail is SUPER easy. In about 7 lines of (actual) code you can get up and running. Those instructions are found directly...
Read more >
Your first Wagtail site
Before installing Wagtail, it is necessary to install the libjpeg and zlib libraries, which provide support for working with JPEG, PNG and GIF...
Read more >
Release 4.1.1 Torchbox - Wagtail Documentation
Add a STATIC_ROOT setting, if your project does not have one already: ... Note that this only works in development mode (DEBUG =...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found