Git Product home page Git Product logo

Comments (15)

yakky avatar yakky commented on August 11, 2024

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.

henning avatar henning commented on August 11, 2024

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.

yakky avatar yakky commented on August 11, 2024

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.

yakky avatar yakky commented on August 11, 2024

#24 should address native libraries installation documentation

from djangocms-installer.

henning avatar henning commented on August 11, 2024

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.

henning avatar henning commented on August 11, 2024

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.

yakky avatar yakky commented on August 11, 2024

Yes, it's supposed to run before the project is created and exit raising exception

from djangocms-installer.

henning avatar henning commented on August 11, 2024

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.

yakky avatar yakky commented on August 11, 2024

Could you please check #25 if it makes clearer how to solve missing libraries issues?

from djangocms-installer.

henning avatar henning commented on August 11, 2024

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.

yakky avatar yakky commented on August 11, 2024

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.

henning avatar henning commented on August 11, 2024

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.

yakky avatar yakky commented on August 11, 2024

Ooops :)

from djangocms-installer.

henning avatar henning commented on August 11, 2024

yeah, cool! thanks :)

from djangocms-installer.

yakky avatar yakky commented on August 11, 2024

Thanks!

from djangocms-installer.

Related Issues (20)

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.