Git Product home page Git Product logo

Comments (5)

dw-0 avatar dw-0 commented on May 30, 2024

Hi,
I upgraded my Python version from 3.7 to 3.9 just to test this issue you are reporting but i can't reproduce it...
The check which is done is pretty simple...

if [ $(python3 --version | cut -d"." -f2) -ge 7 ]; then
    <do stuff>
else
    <error message>
fi

So as soon as [ $(python3 --version | cut -d"." -f2) -ge 7 ] evaluates to true, which is does when the second number in the python 3 version number is greater or equal to 7, the moonraker installation will start.

So something like if [ $(python3 --version | cut -d"." -f2) -ge 7 ]; then echo "true"; fi will still print true to my console now.

from kiauh.

melvinisken avatar melvinisken commented on May 30, 2024

I just tested, using if [ $(python3 --version | cut -d"." -f2) -ge 7 ]; then echo "true"; fi on command line does result in "true", but if I select 1 - install -> 2 - moonraker it results in the same error message. Weird.

edit: and I even upgraded to buster before. I think I will start with a blank installation and test again.

from kiauh.

dw-0 avatar dw-0 commented on May 30, 2024

I have to do some rework on the moonraker installer anyways. I will rewrite the python version check a little bit, make it its own function and then we can try again if that works out. At the moment i really have no clue why this is not working for you.

EDIT:
I have rewritten the python check now. Please update KIAUH and test again.
4fe964e#diff-7ff809d509cdc196b5d375006145e674746de91e96c328fb4b3322d707043027
But tbh i am not pretty convinced that this will change anything, since it more or less still relais on the same commands and processing of their output. Now it will just check the major version AND the minor version of python.

from kiauh.

melvinisken avatar melvinisken commented on May 30, 2024

In the meantime I just wiped the installation and set up a fresh rasbian lite image and here it works without issues. I don't know what the problem could have been.
Thank you very much anyways!

from kiauh.

dw-0 avatar dw-0 commented on May 30, 2024

Interesting. So i guess it might be due to the manual update of python3 then?
I also encountered issues when trying to install moonraker with a manually updated python3 version.
Setting up the virtual environment failed then iirc.

But im happy to hear, that everything works now for you! Cheers.

from kiauh.

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.