pyrevitlabs/pyRevit

[Bug]: installation of extensions from private repo is not working in the UI

jmcouffin opened this issue · 4 comments

✈ Pre-Flight checks

  • I don't have SentinelOne antivirus installed (see above for the solution)
  • I have searched in the issues (open and closed) but couldn't find a similar issue
  • I have searched in the pyRevit Forum for similar issues
  • I already followed the installation troubleshooting guide thoroughly
  • I am using the latest pyRevit Version

🐞 Describe the bug

image

For context the username and password access was dropped by GitHub for a token system.
The cli has been fixed a few years ago but the extension manager is not working with private repos nor saving the token when input in the password text box.

  • Username text box needs to be removed
  • Check token saving process
  • check installation process

⌨ Error/Debug Message

ERROR [Extensions] Error installing package. | remote authentication required but no callback set

Traceback: File "C:\Users\XXX\AppData\Roaming\pyRevit-Master\extensions\pyRevitCore.extension\pyRevit.tab\pyRevit.panel\Extensions.smartbutton\script.py", line 405, in install_ext_pkg extpkgs.install(self.selected_pkg.ext_pkg,

♻️ To Reproduce

⏲️ Expected behavior

🖥️ Hardware and Software Setup (please complete the following information)

Any

Additional context

No response

i have been testing the fine-grained token and the classic token, both have the same error

i have been testing the fine-grained token and the classic token, both have the same error

can you provide a screen capture of the pyrevit extensions manager UI + the lines of the pyrevit-config file located in %appdata%/pyrevit/ especially the ones with your extensions details to see if it is set to private and if there is a password set.

Hello @jmcouffin

here is the screen shot for the error
image

when i use the CLI with access token it works fine, with the below command
pyrevit extend ui XXX "https:XXX.git" --dest="%AppData%\pyRevit\Extensions" --token="XXXXXX"

but in the Pyrevit extension manager UI with the same token, it gives this error
And you can find below the lines of the config file as requested, the last repo in the config "XXX"
i tried to change private_repo = true, it does not work, and also if i add my actual username and password or actual user name and token in the config file, same error arrives

[core]
bincache = true
checkupdates = false
rocketmode = true
debug = false
verbose = false
filelogging = false
startuplogtimeout = 10
requiredhostbuild = ""
minhostdrivefreespace = 0
loadbeta = false
cpyengine = 385
userextensions = ["C:\\Users\\XXX\\AppData\\Roaming\\pyRevit\\Extensions","C:\\XXX\\France Projects\\XXX"]
user_locale = "en_gb"
colorize_docs = false
tooltip_debug_info = false

[telemetry]
utc_timestamps = true
active = false
telemetry_file_dir = ""
telemetry_server_url = ""
include_hooks = false
active_app = false
apptelemetry_server_url = ""
apptelemetry_event_flags = "0x0"

[environment]

[pyRevitBundlesCreatorExtension.extension]
disabled = true
private_repo = true
username = ""
password = ""

[pyRevitCore.extension]
disabled = false
private_repo = true
username = ""
password = ""

[pyRevitDevHooks.extension]
disabled = true
private_repo = true
username = ""
password = ""

[pyRevitDevTools.extension]
disabled = true
private_repo = true
username = ""
password = ""

[pyRevitTags.extension]
disabled = true
private_repo = true
username = ""
password = ""

[pyRevitTemplates.extension]
disabled = true
private_repo = true
username = ""
password = ""

[pyRevitTools.extension]
disabled = false
private_repo = true
username = ""
password = ""

[pyRevitTutor.extension]
disabled = true
private_repo = true
username = ""
password = ""

[routes]
enabled = false
core_api = false

[tabcoloring]
sort_colorize_docs = false
tabstyle_index = 0
family_tabstyle_index = 4
tab_colors = ["#FFF39C12","#FF2C3E50","#FF0000FF","#FF8B4513","#FFFFD700","#FF00CED1","#FFFF4500","#FF00FFFF","#FF9ACD32","#FFFF1493"]
tab_filtercolors = {}

[XXX.extension]
disabled = false
private_repo = false
username = ""
password = ""