Github cvpcb behind a proxy...?

Hi,

I have a machine behind a proxy. I could build the latest version (BZR5164?) by configuring bazar (linux, built by script).
Now I try to launch cvpcb which tries to connect to github and, of course, fails.
I tried to launch it from the console, having set the http_proxy and https_proxy variables, but no luck with that either.
Is there a way to get the libs locally and then use it without an internet access? Or simply configure the proxy?

All the github repositories are available from the web too, if https://github.com/KiCad/ is reachable from your browser, the .pretty repos can be downloaded manually from there if command line git fails. Go inside the repository and get its contents as zip file, look for “Download ZIP” button at the right side.

This can be laborious, there are many of them…

Actually the command line Git works if launch in a console with a properly configured http_proxy variable. But not from cvpcb. Is there some kind of meta package to avoid cloning every repo by hand in command line ?

Will this help?
https://github.com/KiCad/kicad-source-mirror/blob/master/scripts/library-repos-install.bat

There were changes in the repository names since this script was created, you’ll have to rename some in the script if a clone fails…

It does, thanks :slight_smile:

I was making a list with browser copy/paste, grep .pretty to fetch the name of the libs, and
for i in cat list.txt;do git clone https://github.com/KiCad/$i;done

Do you know where the clones are done by the kicad github plugin? Just to make it believe it has done it itself and not mess the configuration?

Ok Matthieu, RTFM… Don’t bother answering this one ^^

I found the ${HOME}/.config/kicad/fp-lib-table in which I could easily replace all (type GitHub) by (type kicad) and ${KIGITHUB} by ${KISYSMOD}, then set correctly the KISYSMOD to point to the set of pretty mods I downloaded using git.
Just for the sake of documentation if anyone runs into the same issue.

Cheers

yeah, and if you change the plugin type from github to kicad, it won’t search for remote modules but gladly use local ones. I did that because I often take my notebook on a commute and having remote parts is a pain without internet :wink:

Sorry for the graveyard rez topic, but I had this error just today, so I find it still is relevant.
Full command list for git clone the pretty’s:

git clone https://github.com/KiCad/kicad-library
git clone https://github.com/KiCad/Displays_7-Segment.pretty
git clone https://github.com/KiCad/Air_Coils_SML_NEOSID.pretty
git clone https://github.com/KiCad/Sockets_BNC.pretty
git clone https://github.com/KiCad/Buzzers_Beepers.pretty
git clone https://github.com/KiCad/Capacitors_Elko_ThroughHole.pretty
git clone https://github.com/KiCad/Capacitors_SMD.pretty
git clone https://github.com/KiCad/Capacitors_ThroughHole.pretty
git clone https://github.com/KiCad/Choke_Axial_ThroughHole.pretty
git clone https://github.com/KiCad/Choke_Radial_ThroughHole.pretty
git clone https://github.com/KiCad/Choke_SMD.pretty
git clone https://github.com/KiCad/Choke_Toroid_ThroughHole.pretty
git clone https://github.com/KiCad/Choke_Common-Mode_Wurth.pretty
git clone https://github.com/KiCad/Connect.pretty
git clone https://github.com/KiCad/Connectors_Serial_MOLEX.pretty
git clone https://github.com/KiCad/Converters_DCDC_ACDC.pretty
git clone https://github.com/KiCad/Crystals.pretty
git clone https://github.com/KiCad/Crystals_Oscillators_SMD.pretty
git clone https://github.com/KiCad/Wire_Pads.pretty
git clone https://github.com/KiCad/Transistors_TO-220.pretty
git clone https://github.com/KiCad/Resistors_ThroughHole.pretty
git clone https://github.com/KiCad/Potentiometers.pretty
git clone https://github.com/KiCad/Housings_DIP.pretty
git clone https://github.com/KiCad/Diodes_ThroughHole.pretty
git clone https://github.com/KiCad/Relays_throughHole.pretty.pretty
git clone https://github.com/KiCad/Relays_ThroughHole.pretty.pretty
git clone https://github.com/KiCad/Relays_ThroughHole.pretty
git clone https://github.com/KiCad/Housings_DFN_QFN.pretty
git clone https://github.com/KiCad/Capacitors_Tantalum_SMD.pretty
git clone https://github.com/KiCad/Pentawatts.pretty'
git clone https://github.com/KiCad/Pentawatts.pretty
git clone https://github.com/KiCad/Symbols.pretty
git clone https://github.com/KiCad/Resistors_SMD.pretty
git clone https://github.com/KiCad/Diodes_SMD.pretty
git clone https://github.com/KiCad/NF-Transformers_ETAL.pretty
git clone https://github.com/KiCad/Housings_SOT.pretty
git clone https://github.com/KiCad/Labels.pretty
git clone https://github.com/KiCad/EuroBoard_Outline.pretty
git clone https://github.com/KiCad/Buttons_Switches_SMD.pretty
git clone https://github.com/KiCad/Fiducials.pretty
git clone https://github.com/KiCad/Housings_TO-78.pretty
git clone https://github.com/KiCad/Sockets.pretty
git clone https://github.com/KiCad/Filters_HF_Coils_NEOSID.pretty
git clone https://github.com/KiCad/Buttons_Switches_ThroughHole.pretty
git clone https://github.com/KiCad/Housings_SOT-89.pretty
git clone https://github.com/KiCad/Measurement_Points.pretty
git clone https://github.com/KiCad/Pin_Headers.pretty
git clone https://github.com/KiCad/Measurement_Scales.pretty
git clone https://github.com/KiCad/Housings_SSOP.pretty
git clone https://github.com/KiCad/Housings_SOT-23_SOT-143_TSOT-6.pretty
git clone https://github.com/KiCad/Housings_TO-92.pretty
git clone https://github.com/KiCad/IR-DirectFETs.pretty
git clone https://github.com/KiCad/Discret.pretty
git clone https://github.com/KiCad/Inductors.pretty
git clone https://github.com/KiCad/Oddities.pretty
git clone https://github.com/KiCad/Opto-Devices.pretty
git clone https://github.com/KiCad/Oscillator-Modules.pretty
git clone https://github.com/KiCad/Transistors_TO-247.pretty
git clone https://github.com/KiCad/Oscillators.pretty
git clone https://github.com/KiCad/Terminal_Blocks.pretty
git clone https://github.com/KiCad/Transformers_CHK.pretty
git clone https://github.com/KiCad/Transformers_SMPS_ThroughHole.pretty
git clone https://github.com/KiCad/Transistors_OldSowjetAera.pretty
git clone https://github.com/KiCad/Display.pretty
git clone https://github.com/KiCad/Valves.pretty
git clone https://github.com/KiCad/Varistors.pretty
git clone https://github.com/KiCad/Wire_Connections_Bridges.pretty
git clone https://github.com/KiCad/Mechanical_Sockets.pretty
git clone https://github.com/KiCad/Fuse_Holders_and_Fuses.pretty
git clone https://github.com/KiCad/Hall-Effect_Transducers_LEM.pretty
git clone https://github.com/KiCad/Heatsinks.pretty
git clone https://github.com/KiCad/PFF_PSF_PSS_Leadforms.pretty
git clone https://github.com/KiCad/Housings_QFP.pretty
git clone https://github.com/KiCad/Microwave.pretty
git clone https://github.com/KiCad/Mounting_Holes.pretty
git clone https://github.com/KiCad/Resistors_Universal.pretty
git clone https://github.com/KiCad/SMD_Packages.pretty
git clone https://github.com/KiCad/Transistors_SMD.pretty
git clone https://github.com/KiCad/Power_Integrations.pretty
git clone https://github.com/KiCad/Power_Packages_SMD.pretty
git clone https://github.com/KiCad/Power_Packages_ThroughHole.pretty
git clone https://github.com/KiCad/Socket_Strips.pretty
git clone https://github.com/KiCad/Housings_ROHM.pretty
git clone https://github.com/KiCad/Housings_SIP.pretty
git clone https://github.com/KiCad/Housings_SOIC.pretty

Hope is usefull for somebody else.
See ya!

There is a bug report at https://bugs.launchpad.net/kicad/+bug/1583178 for this issue.

If I download the repositories kicad still halts for me for minutes every time I want to do something with footprints as it waits for an timeout. Is there any way around this?

If you have any online libs in the lib table then kicad will wait for them to download. I would suggest you setup local footprint libs.

Either by using the lib wizard as described by @bobc.
Or with the python fp lib download script. This script does not setup kicad to use the libs but it adds the feature to checkout a specific release of the lib. (The lib wizard simply downloads the current git master). Adding the libs to kicad is again done with the lib wizard. (similar to the linked tutorial but using local libs as source on the first page of the dialog.)