cguZZman / plugin.googledrive

The Google Drive addon for Kodi
GNU General Public License v3.0
211 stars 71 forks source link

Don't add account in Kodi nexus. #302

Closed luhanmcs closed 1 year ago

luhanmcs commented 1 year ago

I try with version 1.4.11 and 1.4.10-matrix and don't add account get error.

Screenshot_20221116-132930

Log:

[plugin.googledrive][MainThread-2217994608]: [plugin.googledrive] [1.4.10+matrix.2]/[1.3.9+matrix.2]

                                               Erro desconhecido:
                                               module 'inspect' has no attribute 'getargspec'
                                               Por favor, tente novamente.

                                               Traceback (most recent call last):
                                                 File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.clouddrive.common/clouddrive/common/ui/addon.py", line 702, in route
                                                   for name in inspect.getargspec(method)[0]:
                                                               ^^^^^^^^^^^^^^^^^^
                                               AttributeError: module 'inspect' has no attribute 'getargspec'

                                               show_error_dialog: True
billol25 commented 1 year ago

I can reply the error with last nightly version of KODI 20, error opening media with previous account, rolling back to KODI 20 beta1. With KODI 20 beta1 same error, rolling back to Alpha 3. Ok with Kodi 20 alpha 3.

adarshvadwitiya commented 1 year ago

Also happening with Android TV on Kodi 20-RC-1

PaulinHalenria commented 1 year ago

Got the same error, don't find anything when googling it except this thread

RedSquirrel87 commented 1 year ago

Same here with Kodi 20 rc2, I solved this issue by simply editing the file at: .kodi/addons/script.module.clouddrive.common/clouddrive/common/ui/addon.py by changing the getargspec with the new getfullargspec, so that at line 702: for name in inspect.getargspec(method)[0]: become for name in inspect.getfullargspec(method)[0]: and also this Google Drive extension came back to work.

RobElse1992 commented 1 year ago

Any ideas how we can do RedSquirrels fix on Android TV? Access to files is very limited on Android 12, I can't seem to find anything using Kodis built in file browser

RedSquirrel87 commented 1 year ago

Any ideas how we can do RedSquirrels fix on Android TV? Access to files is very limited on Android 12, I can't seem to find anything using Kodis built in file browser

On a PC you could edit that line in the source code of the clouddrive module, pack it in a ZIP package, move it on the device and then install it with the "install from a ZIP file" feature of Kodi replacing the installed one. Anyway I just created a pull request, maybe it will be fixed soon in the official repository too

adarshvadwitiya commented 1 year ago

Same here with Kodi 20 rc2, I solved this issue by simply editing the file at: .kodi/addons/script.module.clouddrive.common/clouddrive/common/ui/addon.py by changing the getargspec with the new getfullargspec, so that at line 702: for name in inspect.getargspec(method)[0]: become for name in inspect.getfullargspec(method)[0]: and also this Google Drive extension came back to work.

Cheers mate! This is working

makykiki commented 1 year ago

Very thanks RedSquirrel87 this works perfectly.

ClassickTech commented 1 year ago

Same here with Kodi 20 rc2, I solved this issue by simply editing the file at: .kodi/addons/script.module.clouddrive.common/clouddrive/common/ui/addon.py by changing the getargspec with the new getfullargspec, so that at line 702: for name in inspect.getargspec(method)[0]: become for name in inspect.getfullargspec(method)[0]: and also this Google Drive extension came back to work.

Where exactly would I find this in the source code? Also, your zip is not working for me or 20 Nexus stable.

JohnJohn45 commented 1 year ago

Thanks you for the tip. I will test modify zip addon directly and install it on my Android tv.

JohnJohn45 commented 1 year ago

Same here with Kodi 20 rc2, I solved this issue by simply editing the file at: .kodi/addons/script.module.clouddrive.common/clouddrive/common/ui/addon.py by changing the getargspec with the new getfullargspec, so that at line 702: for name in inspect.getargspec(method)[0]: become for name in inspect.getfullargspec(method)[0]: and also this Google Drive extension came back to work.

Where exactly would I find this in the source code? Also, your zip is not working for me or 20 Nexus stable.

Addon is here : https://mirrors.kodi.tv/addons/nexus/script.module.clouddrive.common/

You can edit addon.py file in the zip and install it

janglapuk commented 1 year ago

Haven't been able to try it, but this should solve the problem. Need someone to do the PR.

if not hasattr(inspect, 'getargspec'):
    inspect.getargspec = inspect.getfullargspec

The solution is taken from this comment: https://github.com/pyinvoke/invoke/issues/833#issuecomment-1293148106

ClassickTech commented 1 year ago

Haven't been able to try it, but this should solve the problem. Need someone to do the PR.

if not hasattr(inspect, 'getargspec'):
    inspect.getargspec = inspect.getfullargspec

The solution is taken from this comment: pyinvoke/invoke#833 (comment)

Where do you change this at?

ClassickTech commented 1 year ago

Same here with Kodi 20 rc2, I solved this issue by simply editing the file at: .kodi/addons/script.module.clouddrive.common/clouddrive/common/ui/addon.py by changing the getargspec with the new getfullargspec, so that at line 702: for name in inspect.getargspec(method)[0]: become for name in inspect.getfullargspec(method)[0]: and also this Google Drive extension came back to work.

Where exactly would I find this in the source code? Also, your zip is not working for me or 20 Nexus stable.

Addon is here : https://mirrors.kodi.tv/addons/nexus/script.module.clouddrive.common/

You can edit addon.py file in the zip and install it

I changed to getfullargspec and zipped. Add on still gives me error when trying to install by zip on Kodi 20

I-MacHunt commented 1 year ago

I can't get the files transferred to my Nvidia Shield as for some reason it will only copy the folders but not their contents.

barclayslb commented 1 year ago

Same here with Kodi 20 rc2, I solved this issue by simply editing the file at: .kodi/addons/script.module.clouddrive.common/clouddrive/common/ui/addon.py by changing the getargspec with the new getfullargspec, so that at line 702: for name in inspect.getargspec(method)[0]: become for name in inspect.getfullargspec(method)[0]: and also this Google Drive extension came back to work.

Cheers mate! This is working

thank you, that solve the problem !

janglapuk commented 1 year ago

Officialy, this issue already fixed from related repos. Look at the merged PRs:

The current problem is the addon hasn't been officially released yet at repository.plugins for Nexus updates, you will not get updates on Kodi until @cguZZman updates it.

Someone has already opened an issue (https://github.com/cguZZman/repository.plugins/issues/17) regarding this problem, we hope @cguZZman will make a release soon.

Just wait for an official update or create your own ZIP.

I-MacHunt commented 1 year ago

The problem is that I can't transfer any files to my Nvidia Shield, so even if I could create a zip file, I can't access it.

janglapuk commented 1 year ago

The problem is that I can't transfer any files to my Nvidia Shield, so even if I could create a zip file, I can't access it.

If you can't wait for the release,

  1. Create or fork @cguZZman repository.plugins as your own addon repository.
  2. Update the necessary XMLs, ZIPs, hashes, and so on with the latest.
  3. Upload to your web server and add the URL as custom repo source in your Kodi.

I don't know how to make this easy.

I-MacHunt commented 1 year ago

Thanks, I'll try that.

vician commented 1 year ago

You can use mine temporary fix zip on https://wiki.vician.net/tv.zip but you need to enable unknown sources and overriding system packages updates from unknown sources. And you would need to uninstall and remove it when the official update will be released.

janglapuk commented 1 year ago

You can use mine temporary fix zip on https://wiki.vician.net/tv.zip but you need to enable unknown sources and overriding system packages updates from unknown sources. And you would need to uninstall and remove it when the official update will be released.

The update has been released now.

I-MacHunt commented 1 year ago

Typical!! I finally got it working last night 😂😂😂

DeHickok commented 1 year ago

You can use mine temporary fix zip on https://wiki.vician.net/tv.zip but you need to enable unknown sources and overriding system packages updates from unknown sources. And you would need to uninstall and remove it when the official update will be released.

The update has been released now.

but i still get same error: "module 'inspect' has no attribute 'getargspec' Please try again." after reinstallation whole KODI and AddOn OneDrive (Android Sony TV)

janglapuk commented 1 year ago

but i still get same error: "module 'inspect' has no attribute 'getargspec' Please try again." after reinstallation whole KODI and AddOn OneDrive (Android Sony TV)

The main Kodi repository is still serving the old version. Google Drive plugin still shows 1.4.10+matrix.2, and Cloud Drive Common Module shows 1.3.9+matrix.2, instead of the latest one.

I still don't know if the information hasn't been updated by the author, or there is a delay in getting it updated to the Kodi database.

This solution can solve this problem by following the instructions given in the README.md in this repository by installing using repo.daro.mx source and selecting the latest version of addons repository (select repository.cguzzman-3.0.0.zip for Nexus).

Make sure to enabling "Unknown Source" and change "Update official add-ons from" option to "Any repositories" placed in Settings / System / Add-ons setting before doing the instructions.

Or, you can look at this screencast video for how to do that.

pikilon commented 1 year ago

thank you @janglapuk very useful. Do you know how to donate to @cguZZman ?

cguZZman commented 1 year ago

The new version has been submitted to the Kodi repository. It takes some time.

ClassickTech commented 1 year ago

The new version has been submitted to the Kodi repository. It takes some time.

Your update is Live. I just tried it and everything is back working again! Thanks!

Makukorn commented 1 year ago

IMG_20230122_132335

I can't update to 1.5.0 from official repository. I'm getting this error.

Google TV on Hisense U8H

I-MacHunt commented 1 year ago

Add http://repo.daro.mx as a source as per https://github.com/cguZZman/repository.plugins instructions and update it from there.

Makukorn commented 1 year ago

Add http://repo.daro.mx as a source as per https://github.com/cguZZman/repository.plugins instructions and update it from there.

Thats what i'm doing. Same error.

IMG_20230122_151040 IMG_20230122_151053

Update: I was missing One config. I put The add ons update to any repo instead of only official and now it's working.

Thx!

I-MacHunt commented 1 year ago

Have you made sure to update all of the "dependencies"?

PaulinHalenria commented 1 year ago

Hi

Got the same issue. Had to remove the old app first + all the dependencies and settings. Then add the 1.5.0 with success

Regards

Le dim. 22 janv. 2023 à 22:12, Makukorn @.***> a écrit :

Add http://repo.daro.mx as a source as per https://github.com/cguZZman/repository.plugins instructions and update it from there.

Thats what i'm doing. Same error.

[image: IMG_20230122_151040] https://user-images.githubusercontent.com/84855594/213940662-a675975d-3f87-4403-9c5f-a08a95811ad1.jpg [image: IMG_20230122_151053] https://user-images.githubusercontent.com/84855594/213940666-10c84183-8573-46cc-8c18-a72c20806bc1.jpg

— Reply to this email directly, view it on GitHub https://github.com/cguZZman/plugin.googledrive/issues/302#issuecomment-1399609871, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC4N3NZBDM6RTLUGVJGND2TWTWPEPANCNFSM6AAAAAASCNVJJY . You are receiving this because you commented.Message ID: <cguZZman/plugin. @.***>

I-MacHunt commented 1 year ago

What hardware are you all using?

PaulinHalenria commented 1 year ago

For me, nVidia Shield and Xiaomi MiBox

Le dim. 22 janv. 2023 à 22:31, I-MacHunt @.***> a écrit :

What hardware are you all using?

— Reply to this email directly, view it on GitHub https://github.com/cguZZman/plugin.googledrive/issues/302#issuecomment-1399614033, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC4N3N2XRCRYB6I6C5PGURLWTWRLVANCNFSM6AAAAAASCNVJJY . You are receiving this because you commented.Message ID: <cguZZman/plugin. @.***>

I-MacHunt commented 1 year ago

Make sure to go into Nvidia settings/apps/kodi/permissions and allow access to files etc. ALWAYS not just "when using the app". That's what messed everything up for me.