Comments (15)
I don't think there is any portable way to check for correct libraries installation.
It could be addressed in documentation and pre-installation checklist, though.
from djangocms-installer.
ok, yeah, I understand the portability thing, and guessed so.
in that case, the doc, and maybe testing it before even writing the manage.py and project dir might be desireable. I'd like to try to add this chnage myself, not sure when I'll find the time to do so, though.
from djangocms-installer.
https://github.com/nephila/aldryn-installer/blob/master/aldryn_installer/install/__init__.py#L23 should be enough to check for proper libraries to be installed at runtime
from djangocms-installer.
#24 should address native libraries installation documentation
from djangocms-installer.
Get's close to what I believe would be super-userfriendly :)
OK, that's already quite good to explain the dependencies, thanlks ;)
Still two things I'd propose to become really super-userfriendly:
- do the pillow check earlier before the install(if we know it will fail with improper pillow install, no need to start generating the project etc.) - I currently understand it's only running after the django project creation, right?
- the error message can tell unexperienced users more clearly what to do to get rid of the error(uninstall pillow, install something like libjpeg-dev, reinstall pillow) - I myself have 15 years of Linux experience so I know, but probably quite some cms devs have an easier life to be told this one more sentence
from djangocms-installer.
Hmm, strange, the code of main.py looks like the check is very well run before te django project is created.
But when using it here at the pycon Django tutorial i had all the project data created before the installer stopped with an unfinished install... we might have been using an older version? I'll check.
from djangocms-installer.
Yes, it's supposed to run before the project is created and exit raising exception
from djangocms-installer.
I double checked - it seems like it's right the in the case of insufficient Pillow install, it stops without having created anything, which is good.
So only some better hint for some people that do not know about devel libraries and such things might be helpful like: "Please install pillow with proper libjpeg support (e.g. on Ubuntu apt-get install libjpeg-dev, pip uninstall Pillow, pip install Pillow)"
I seem still getting another error that makes the install stop with an error, but having created the django project already, will investigate that and put it in another bugreport when i know more about it
from djangocms-installer.
Could you please check #25 if it makes clearer how to solve missing libraries issues?
from djangocms-installer.
It's getting close! :)
Two things still - considering we're doing that to lower the entry barrier
to get started as much as possible - also for people with neither longterm
Python nor sytem management/compiling knowledge:
- point out which part of docs to look for: "... The libraries section /
libraries.rst of the docs" - even better an exact file/path/url (the latter
is most likely to be easiest as it doesn't depend on wherever the user
installed aldryn installer) where the user can find it, he probably doesn't
know when he just installed it via pip - it's helpful to note that it's not just libjpeg, but especially on binary
distributions libjpeg-dev(or similar) that must be in place. Thats a common
misunderstanding and an FAQ why it doesnt work even though the lib is
installed. It might work for mac users working with brew, but is an issue
for linux binary distributions which get more common for less experienced
people.
Am 20.10.2013 10:34 schrieb "Iacopo Spalletti" [email protected]:
Could you please check #25https://github.com/nephila/aldryn-installer/pull/25if it makes clearer how to solve missing libraries issues?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/23#issuecomment-26668795
.
from djangocms-installer.
Updated. I guess that's the most we can go without writing an actual tutorial on how to solve python packages installation issues :)
from djangocms-installer.
Sure it's not the installer doc's task to give people overall knowledge about the whole python universe, I agree. Just the pointers that help to find the right solutions. In short words.
But somehow I don't see a change that matches your last comment(saying you did something reflecting my ideas from my last comment) - did you forget to push it?
from djangocms-installer.
Ooops :)
from djangocms-installer.
yeah, cool! thanks :)
from djangocms-installer.
Thanks!
from djangocms-installer.
Related Issues (20)
- Move to github actions
- Update tooling / packaging
- Use black
- Remove support for Python 2 / Django 1.11 HOT 1
- djangocms 'staticfiles' is not a registered tag library. Must be one of: HOT 4
- pip installing from extra-index-url HOT 2
- installation... HOT 2
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Add django CMS 3.8
- Update pre-commit versions
- Use django-app-enabler as patching engine
- Install additional applications during project creation
- djangocms -p mysite mysite
- Specify package version requirement using == instead of >= HOT 1
- Not working in PythonAnywhere or Heroku servers (bad project.db path) HOT 1
- djangocms-installer does not install django and djangocms-admin-style HOT 3
- django-cms 3.9.0 is out! HOT 7
- Docs: Required libraries seem to be outdated
- After djangocms-installer is installed it cannot be run because of missing pytz
- optional argument --bootstrap with value no install djangocms-bootstrap4 HOT 3
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 djangocms-installer.