-
-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install crashes and corrupts every time at the same point "python setup.py egg_info #325
Comments
I am not gonna lie, I am noob, but somehow I made it working. I did steps I saw in OctoPrintHandlerRepository.kt file between lines 122-144 and used the fix by @sashokbg in #319. Here is how to do it using SSH commands, so you dont have to modify the .apk!
|
Thank You! This worked. If only I had found this before factory resetting my phone and forgetting to save the backup. Oh well. |
@Jano952 can confirm that this is working for me also. Thank you! |
@Jano952 You are amazing 😄 |
Im having the same Problem on a Redmi Note 5 and cant get past this step. Where do i see the needed IP Adress from the phone? Log into SSH from your computer or whatever. (ssh root@IP -p PORT) |
@drhealx In details wifi connect or DHCP clients in router panel |
@KubaArrow Thanks, that worked so far but i still have a corrupted installation after the other steps. I'll try it again later, maybe i did something wrong |
@drhealx did you force stop Octo4A? It checks for succesfull instalation only after you totally stop the app. I had to go to Android settings -> apps -> Octoprint for Android and force stop it, otherwise it kept running in background somehow. |
@Jano952 yes, i stopped it by tapping on "App info" -> "force stop". But i recognized that in the following Step: Edit: Oh, i now see that theres a Space between "intall" and the "dot", think i didnt type that and this can be the issue, i'll try that again Edit2: Did it again step by step and now it worked. Thanks for the help |
Can confirm....this worked for me as well! Thank you for coming up with this solution!!!!! Now I can use my Galaxy Note 8 to run my printer instead of this old raspberry pi! |
I wasn't getting an error, the app was just crashing partway through installation and when I reopened it I would get the "Installation Corrupted" text. Jano952's instructions fixed it for me. |
Followed and seems to be working for me. Thanks! |
@Jano952 hey is there any chance you could give better directions on how to do this for someone that pretty much knows nothing about android but can follow directions really well. The thing I cant understand or figure out is what you mean is #4 of your instructions. I can ssh into my raspberry pi's with no issue but do not understand at all on android |
@RickzFPV Once you setup the SSH it is easy job (In Win10 you can simply use command prompt to run ssh). Sadly I dont have blog, but maybe I can create video about it. I hope the install script will simply get fixed in coming days and nothing will have to be changed. |
Where are you stuck, enabling SSH? It is an option in settings will prompt for a password. Install Putty and SSH to your Phone IP with port 8022 which was the default. Once you get connected username is root with the password you specified then give it these commands one at a time. pip3 install --upgrade setuptools wheel tornado --no-cache-dir Install Plugin Extras option on the phone Go into App Settings and Force Close the App then you should be good. |
@micah-simmler Thank you So much Got it going on the tablet. I have one of the blue Tracphones running android 11that I would also like to set it up on. when I try and log in through putty it tells me refused. is there a setting I need to change in the phone to get it going |
Just make sure It is enabled and you are on the right port should be it not sure what else it could be. I just tried it on mine without SSH Enabled and it says connection refused. I know Putty Defaults to port 22 for SSH but Octo4a is 8022 |
ok I will give it a try again |
@micah-simmler is there something I am missing with a setting on the phone or something with this Blue view 2 it keeps kicking back a network error connection refused. The tablet is good to go but can't for the life of me get into the phone |
worked here too thx |
I tried to do this on a B131DL BV2 and after the failed install it will try to enable ssh but then immediately kill it. So it seems it can't install enough to try the fix on it. |
If your getting the SSH network error-Connection refused via whatever client (PuTTY/Terminal/CMD),you can try via your browser directly. I found going to the address http://(PHONES IP ADDRESS):5002/ will prompt for the ssh credentials you set in the config on the app (user:root, pass:whatever you set). You'll be viewing a live terminal session from the linux OS the app sets up. You can enter the commands directly on this page just like in an SSH client. Just continue the above instructions from step 5 down and you should be good to go. Note: If your going to copy paste the commands, when pasting into the web terminal use: Ctrl+Shift+V. Also remember that the Octoprint's web console for management is on port 5000 NOT 5002, so managing Octoprint will be at http://(PHONES IP ADDRESS):5000/. |
One thing to look for is make sure you know what IP your phone was assigned by default they randomize the MAC address and I kept getting different IP addresses until I set it to use my device MAC. |
For some reason, when I get to step 7, it says operation not permitted. Does anyone know why this would be? I get tthe prompt to replace and tell it "A" to replace them all, but each one fails saying "(warning) cannot set modif./access times" "Operation Not Permitted" EDIT: I continued to follow the steps and ignored the errors and it works great now. Thank you so much for this! |
Jano952, Thank you for sharing this method , believe is the only that works for the majoraty. just two small notes for who is using an android box with ethernet connection like me. The first start is necessary to remove camera permissions if you set this before. Also to enable the server is necessary to turn ON wifi even if you are using only ethernet , if not will not pic an IP. My box is an Amnlogic S912 8 core 1.5 Ghz , 2 GB ram android 6.0.1 rooted. It works like a charm now. |
I'm not going to ask you how you managed to get this fix, but you have all my admiration! It has worked for me too!!! Thank you!!! |
For me worked only the 0.0.5. on a Samsung Galaxy Nexus 10 tablet. Pity not working the new version 1.1.2 |
@SR10638 I bought one of the Invavo Quadra's myself and it is way superior to running octo4A. It looks like though they finally fixed the problem with the new release for most people. I personally tested the new release on android 9, 10, 12, and 13 and had no issues. I think they broke something in android 11 that will probably never get fixed, so those devices seem like they will not work. I am using the octoprint delpoy now and running 4 printers from the quadra, and 3 printers from my raspberry pi 4, for my small print farm. Makes things so much easier |
@RickzFPV Before you SSH - make a network with another phone (hotspot) and have the android phone you are trying to SSH into connected to this network as well as the computer you are using to SSH. This worked out for me really well to be able to access the android phone via SSH. |
I have this error: unzip: cannot find or open octoprint.zip, octoprint.zip.zip or octoprint.zip.ZIP. and i dont know how to fix this, can you help me please? |
@futhgar I tried your suggestion but still got the "connection refused" message. I'm not sure how you get around this issue, since the problem is that the octo4 app kills ssh almost immediately after enabling it. |
Android is so awesome Sent from my iPhoneOn Jan 7, 2023, at 3:03 AM, aravindkarthik96 ***@***.***> wrote:
I am not gonna lie, I am noob, but somehow I made it working. I did steps I saw in OctoPrintHandlerRepository.kt file between lines 122-144 and used the fix by @sashokbg in #319. Here is how to do it using SSH commands, so you dont have to modify the .apk!
Install Octo4A, let it install OctoPrint. Let the setup go, let it crash.
Start the Octo4A, you can see it is corrupted, but dont reinstall !
Go to Config, enable OpenSSH and set Port and Password.
Log into SSH from your computer or whatever. (ssh ***@***.*** -p PORT)
Now enter command, always wait for finish:
pip3 install --upgrade setuptools wheel tornado --no-cache-dir
I am not sure with the next command, it is probably not needed, but i put it in:
curl -s https://raw.githubusercontent.com/feelfreelinux/octo4a/master/scripts/setup-octo4a.sh | bash -s
Then enter this, once asked, overwrite all files:
unzip octoprint.zip
And finally this command (ALSO COPY THE DOT):
cd Octo* && pip3 install .
I also installed plugin extras from the setting menu
Now Force stop the app somehow (I needed to go to app setting and force stop on my Huaweii P20 Pro, I did similar on Redmi Note 4)
Turn on the Octo4A, and it should work !
This worked for me as well on Samsung S8. It showed a lot of errors during those SSH commands, so I was skeptical, but it worked after all :)
Running step 5 (pip3 install --upgrade setuptools wheel tornado --no-cache-dir) gives me the error "-ash: pip3: not found". I'm unsure why. Any ideas? On a LG V30 running Android 9.
Hey folks if you are facing this issue then run the following before step 5
apk add --update --no-cache python3 && ln -sf python3 /usr/bin/pyth on
apk add py3-pip
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
I have this error: unzip: cannot find or open octoprint.zip, octoprint.zip.zip or octoprint.zip.ZIP. and i dont know how to fix this, can you help me please? Did you manage to get round this im having the same error |
@willuk1987 what version are you trying to use the new 1.2.0 fixed it so you don’t have to do the workaround anymore |
@RickzFPV i think i messed up i started on a fresh s7 but was still running android 7 I'm updating to 9 now and ill see if it works I'm using the most recent version, so hopefully will work once i update the os |
Hey, I've been having the corrupted installation issue as well, and I've tried installing on 2 different devices. A galaxy core prime running android 5.1, and a LG G5 with android 7. neither of them has worked even after I tried Jano952's trick multiple times. I think the problem has something to do with when I do step #7. After every line when it says "inflating: Octoprint, etc." It then says "Operation not permitted" all the way down until that step finishes. looks like this: Also, after every step it says something in yellow print about using 'root' user can lead to permission errors. |
I can install and run octo4a version 0.5 just fine, but anything else gets corrupted and gives the problem stated above. |
I’m not sure how to help because I don’t have any devices that old to test with I can only go back to Android 9 |
Hey all, I am still having issues with getting Octolapse to work, or getting any plugin, but Octoprint essentially is working and was able to control my printer over OTG. |
thanks, running: cd Octo* and then: pip3 install Octoprint actually worked both on my galaxy core prime with android 5 and my LG G5 with android 7. I was getting some weird "Operation not permitted" errors too but this seems to have fixed it. |
I got it running on an Huawei Honor 8 (android 7). I didn't test how well it works in practice or installed plugins yet, but I can go in octoprint on my PC browser at least. After having the 'installation corrupted' error, and then having the 'operation not permitted' problem (as stated above), at least it run. I just did exactly what was said in the two comments above, but I'll reiterate my exact steps in case it helps somebody else:
I hope it helps someone. On my side, I still have to get an USB OTG adapter, so I'll update with results if I have some. |
For the ones that still can't make it work, try to set OctoPrint manually through termux, thread for reference. In short:
For camera support, install IP Webcam, DroidCam or any other app that provides a URL with the camera feed and put it in OctoPrint configs. For timelapse, change the path to |
i Got This error on step 8: Building wheel for OctoPrint (pyproject.toml) ... error × Building wheel for OctoPrint (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. |
well this got me to a point where the app is no longer saying that installation is corrupted, so those final steps were helpful for me, thank you! I've still gotta keep chopping away at it, but progress is progress! 😁🙏 |
This simple method worked perfectly on the Honor 8 FDR-L19 (4/64 GB). And I already thought there was no getting around the Raspberry Pi, thank you and Jano952 |
What you did is basically discard the local package
In short, this repo is failing as introducing a lot of bugs and compatibility issue, due to The approach from @mactep works like a charm and you have full control of what you are doing
|
Step 7 fails because the folder exists already so it needs to be deleted before running the unzip command |
I am getting permission denied error on step 7 and this error on step 8 Any Ideas UPDATE: I wiped my android phone to try this again, turns out you don't need any of these steps to fix the issue if your installation failed at 50% while installing dependencies. All you need to do is go to ssh terminal and run "pip install octoprint" then you force close your octo4a app, start the app again and it should work. Note: I am still left with this issue where octa4a detects my otg port but octoprint is not showing any ports |
A few months ago this program worked fine on my Galaxy Note 8 but then there was an update on my phone that restarted it and at this point it never installs and always corrupts.
The text was updated successfully, but these errors were encountered: