Comment 1 for bug 1597114

Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1597114] [NEW] footprint libraries wizard fails with personal GitHub accounts

Where are your footprint files? I looked in your github repo and I
cannot find any footprint (.kicad_mod) files. Here is an example of
what your library should look like:

https://github.com/KiCad/TO_SOT_Packages_SMD.pretty

On 6/28/2016 5:32 PM, Johannes Larsen wrote:
> Public bug reported:
>
> === Reproduce ===
> 1. open pcbnew
> 2. open Preferences -> Footprint Libraries Wizard
> 3. select Github repository
> 4. replace URL with one to a personal GitHub user (e.g. https://github.com/johslarsen)
> 5. click Next
>
> === Error Message ===
> https GET command failed
> Cannot get/download data from: 'https://api.github.com/orgs/johslarsen/repos?per_page=99&page=1'
> Reason: 'Not found'
>
> === Version Information ===
> Application: kicad
> Version: 4.0.2-stable release build
> wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1010,GCC 6.1.1,wx containers,compatible with 2.8)
> Platform: Linux 4.6.3-1-ARCH x86_64, 64 bit, Little endian, wxGTK
> Boost version: 1.60.0
> USE_WX_GRAPHICS_CONTEXT=OFF
> USE_WX_OVERLAY=OFF
> KICAD_SCRIPTING=ON
> KICAD_SCRIPTING_MODULES=ON
> KICAD_SCRIPTING_WXPYTHON=ON
> USE_FP_LIB_TABLE=HARD_CODED_ON
> BUILD_GITHUB_PLUGIN=ON
>
> === Reason ===
> GITHUB_GETLIBLIST::repoURL2listURL hardcodes the repository list to use the /orgs/repos API, as opposed to the /users/repos API, which only exists for GitHub organizations, not personal user accounts.
>
> === Possible Solutions ===
> * Use /users/repos API, which yields equivalent results (missing permissions attribute and different default sort order) for all GitHub organizations I have tried
> * Try one, then the other
> * Somehow do a lookup for whether the GitHub ID is a user or an organization
> * Provide radio button, preference option, ...
>
> ** Affects: kicad
> Importance: Undecided
> Status: New
>