Replies: 6 comments
-
That is odd indeed. What I can recommend is trying something like this:
If that fails, and appdirs is not found try this:
You're using a Mac by looks of it and your prompts are tad interesting ;-), but the install dir is a little unfamiliar to me too. Essentially if Run contexts can vary wildly alas, so one way to real sure of the the Hope that helps. It's always hard to be sure without poking around more, and looks like a Python environment issue rather than anything to do with this scrip per se. Note that pip can accept and install dir too. |
Beta Was this translation helpful? Give feedback.
-
Thanks for responding. Here's what I found with the above. `root@MacbookPro ➜ degoo git:(master) ✗ python3 Python 3.9.7 (default, Oct 30 2021, 16:26:10)
[ that worked ]
I'm somewhat familiar with Python, so I may be missing something here. I'm using Macports for Python3:
|
Beta Was this translation helpful? Give feedback.
-
I think I figured out how to get around it. Your code is presently calling a hard-coded path /usr/bin/python3, where Macports is in /opt/local/bin/python3. So, even if you modify the top of one file (ie: degoo_ls), the other code is still calling a different location. So to get around this:
This is weird, and I double-checked my password and typed it in very carefully. Another note here, I think really the same issue applies even when calling directly (initially) with python3, the other code is referencing another location and associated libs. In this case, I got stuck in a loop with degoo_login and it would not let me CTRL-D or CTRL-C out of it, I had to kill the shell :) |
Beta Was this translation helpful? Give feedback.
-
Not calling it per se. What you're referring to there is called a shebang. It's just a convention to let a shell know what program to run, but no shell is obliged to respect it, and it's not a Python thing. See more here: See here: https://en.wikipedia.org/wiki/Shebang_(Unix) That said a more portable shebang I think is probably:
But to be honest I've not given it much thought as I don't pot much, and when I do it's Linux/Windows, I don't have any Mac experience. If that works better as shebang for you on a Mac, I can try it her eon Linux to and use that shebang in the hope it's more portable. |
Beta Was this translation helpful? Give feedback.
-
I think coding this in a portable manner is going to be better for a larger audience. So I would vote for the shebang bang bang :) Thanks again! |
Beta Was this translation helpful? Give feedback.
-
I too purchased the 10TB lifetime package to suddenly realize that it cannot be used for General Backup. Having a tool for MAC, Windows, Mobile would be great - let's start with a MAC as it is the closest you get Linux. The initial tool can be very simple and then expanded.
That's it for now. I am willing to send a little cash donation to get this thing completed before end of 2021. Let me know |
Beta Was this translation helpful? Give feedback.
-
I am just starting to test this out. I installed from requirements.txt -- MacOS Monterey under Macports. pip and pythong are 3.9:
This is just output from degoo_ls, but degoo_login does the same thing, it's here for context.
What am I missing?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions