feelfreelinux / octo4a

Use your old Android device as an OctoPrint server.
GNU Affero General Public License v3.0
1.53k stars 145 forks source link

error installing 1.2.6 on fire hd 8 (android 9) #475

Closed darkzeroat closed 4 months ago

darkzeroat commented 5 months ago

not sure wheres the problem the updated installer works on my newer tablet but not on my old fire hd 8

octo4a log.txt

hope this helps you resolve the issue if possible

matt012345 commented 4 months ago

I believe I am having the same problem when attempting to download octo4a on my kindle fire HD8. I have tried version 1.2.6 three times as well as various older versions. octo4a.log

hhocker commented 4 months ago

I have a fire 8 doing octoprint as well and it seems that 1.10.0 has an issue updating on mine. I post here becuase I am seeing the same line as both of you

error: can't find Rust compiler

I am wondering if there is an issue downloading a Rust compiler or if a package used by 1.10 is now requiring that and the app does not pull one in. Even the recent release of 1.2.6 does not work for me.

hhocker commented 4 months ago

@darkzeroat and @matt012345 the new 1.10.1 release rolls back netifaces back from the version requiring Rust. you might see if it will allow it to upgrade on your machine now. I am struggling to get it to install for me but will report if I figure out the issue.

hhocker commented 4 months ago

Ok. I have figured out that if you have an existing working installation it should work. The rust error should be able to be bypassed if you dont get an error about cc1 not being found.

However I had issues compiling CFFI for the argon2 framework with GCC errors so here are the steps I followed from a fresh install:

  1. First download Octo4A 1.2.6 and install it.
  2. Attempt to install the latest OctoPrint, this step will likely fail
  3. Setup SSH and remote into the alpine environment
  4. I had to upgrade the base alpine system to a newer version from 3.17 to 3.18, had problems with 3.19. (steps abbreviated from here https://wiki.alpinelinux.org/wiki/Upgrading_Alpine)
  5. sed -i 's/3.17/3.18/g' /etc/apk/repositories
  6. apk update
  7. apk add --upgrade apk-tools
  8. apk upgrade --available
  9. sync
  10. Run apk add py3-argon2-cffi to install the argon2-cffi package requirements to prevent needing to build with gcc. GCC has been having issues finding cc1 for me.
  11. You should now be able to go into the downloaded octoprint in the root folder and install 1.10.1
    cd /root/Octo*
    pip install . 
  12. Once you are done with the build and install step reboot your phone / tablet. Once that reboot finished try launching the app and seeing if OctoPrint server comes online. It should successfully come online and be ready to go.
kekkodance commented 4 months ago

do you have a solution for psutil doing the same cc1 error when upgrading from the octoprint ui?

hhocker commented 4 months ago

No I sure dont, I am not sure what is causing errors with the CC1 compiler. I never could recreate a fix.

So I would enable web ssh in the app or SSH in via terminal then try the following:

/ ! \  Untested, not sure what it will do to the environment but this will pull and install v 5.9.6 / ! \
apk add py3-psutil --no-cache --upgrade --repository="http://dl-cdn.alpinelinux.org/alpine/v3.19/community"

To pull the necessary 5.9.6 that 1.10 is calling out.

kekkodance commented 4 months ago

@hhocker i can't manage to install octolapse like this, cc1plus is erroring out and i can't figure out what package is doing it.

hhocker commented 4 months ago

Interesting. I hadn't considered the issue of building plugins. I presumed they were some sort of precompiled scripts. I am hoping that Filip is successful in launching the new version soon. It seems odd that there have been a rash of GCC errors crop up recently.

feelfreelinux commented 4 months ago

Well, the new release should be here later today. Just writing some release notes, and testing out the changes a bit more :)

feelfreelinux commented 4 months ago

Released https://github.com/feelfreelinux/octo4a/releases/tag/2.0.0 which should resolve this issue :)