stitchfix / pyxley

Python helpers for building dashboards using Flask and React
MIT License
2.27k stars 257 forks source link

bower install trouble with examples/{datatables,metricsgraphics} #1

Open srenatus opened 9 years ago

srenatus commented 9 years ago

Hi there. Trying to play with this (thanks for sharing), I've hit in the following dead end:

pyxley/examples/datatables$ bower --version
1.4.1
pyxley/examples/datatables$ git diff .
pyxley/examples/datatables$ bower install
bower require#*             not-cached git://github.com/nathanfaucett/require.js.git#*
bower require#*                resolve git://github.com/nathanfaucett/require.js.git#*
bower bootstrap#~3.3.4          cached git://github.com/twbs/bootstrap.git#3.3.5
bower bootstrap#~3.3.4        validate 3.3.5 against git://github.com/twbs/bootstrap.git#~3.3.4
bower classnames#~2.1.1         cached git://github.com/JedWatson/classnames.git#2.1.3
bower classnames#~2.1.1       validate 2.1.3 against git://github.com/JedWatson/classnames.git#~2.1.1
bower d3#~3.5.5                 cached git://github.com/mbostock/d3.git#3.5.6
bower d3#~3.5.5               validate 3.5.6 against git://github.com/mbostock/d3.git#~3.5.5
bower react#~0.13.1             cached git://github.com/facebook/react-bower.git#0.13.3
bower react#~0.13.1           validate 0.13.3 against git://github.com/facebook/react-bower.git#~0.13.1
bower nvd3#~1.7.1               cached git://github.com/novus/nvd3.git#1.7.1
bower nvd3#~1.7.1             validate 1.7.1 against git://github.com/novus/nvd3.git#~1.7.1
bower react-bootstrap#~0.22.6   cached git://github.com/react-bootstrap/react-bootstrap-bower.git#0.22.6
bower react-bootstrap#~0.22.6 validate 0.22.6 against git://github.com/react-bootstrap/react-bootstrap-bower.git#~0.22.6
bower jquery#~2.1.3             cached git://github.com/jquery/jquery.git#2.1.4
bower jquery#~2.1.3           validate 2.1.4 against git://github.com/jquery/jquery.git#~2.1.3
bower datatables#~1.10.6        cached git://github.com/DataTables/DataTables.git#1.10.7
bower datatables#~1.10.6      validate 1.10.7 against git://github.com/DataTables/DataTables.git#~1.10.6
bower datamaps#~0.4.0           cached git://github.com/markmarkoh/datamaps.git#0.4.0
bower datamaps#~0.4.0         validate 0.4.0 against git://github.com/markmarkoh/datamaps.git#~0.4.0
bower metrics-graphics#~2.5.0   cached git://github.com/mozilla/metrics-graphics.git#2.5.0
bower metrics-graphics#~2.5.0 validate 2.5.0 against git://github.com/mozilla/metrics-graphics.git#~2.5.0
bower pyxley#~0.0.1             cached git://github.com/stitchfix/pyxleyJS.git#0.0.2
bower pyxley#~0.0.1           validate 0.0.2 against git://github.com/stitchfix/pyxleyJS.git#~0.0.1
bower require#*               checkout master
bower d3#~3.3.13                cached git://github.com/mbostock/d3.git#3.3.13
bower d3#~3.3.13              validate 3.3.13 against git://github.com/mbostock/d3.git#~3.3.13
bower topojson#~1.4.3           cached git://github.com/mbostock/topojson.git#1.4.9
bower topojson#~1.4.3         validate 1.4.9 against git://github.com/mbostock/topojson.git#~1.4.3
bower require#*           invalid-meta require is missing "main" entry in bower.json
bower require#*           invalid-meta require is missing "ignore" entry in bower.json
bower require#*               resolved git://github.com/nathanfaucett/require.js.git#a45d433fdc
bower                        ECONFLICT Unable to find suitable version for d3
pyxley/examples/datatables$ json_pp < .bowerrc
{
   "directory" : "./project/static/bower_components"
}

Any hints?

Thanks a lot Stephan

jessebraham commented 9 years ago

Strange, upon cloning the repo and following the instructions, I get the following output:

bower install
bower not-cached    git://github.com/nathanfaucett/require.js.git#*
bower resolve       git://github.com/nathanfaucett/require.js.git#*
bower cached        git://github.com/twbs/bootstrap.git#3.3.5
bower validate      3.3.5 against git://github.com/twbs/bootstrap.git#~3.3.4
bower cached        git://github.com/JedWatson/classnames.git#2.1.3
bower validate      2.1.3 against git://github.com/JedWatson/classnames.git#~2.1.1
bower cached        git://github.com/facebook/react-bower.git#0.13.3
bower validate      0.13.3 against git://github.com/facebook/react-bower.git#~0.13.1
bower cached        git://github.com/mbostock/d3.git#3.5.6
bower validate      3.5.6 against git://github.com/mbostock/d3.git#~3.5.5
bower cached        git://github.com/novus/nvd3.git#1.7.1
bower validate      1.7.1 against git://github.com/novus/nvd3.git#~1.7.1
bower cached        git://github.com/jquery/jquery.git#2.1.4
bower validate      2.1.4 against git://github.com/jquery/jquery.git#~2.1.3
bower cached        git://github.com/DataTables/DataTables.git#1.10.7
bower validate      1.10.7 against git://github.com/DataTables/DataTables.git#~1.10.6
bower cached        git://github.com/react-bootstrap/react-bootstrap-bower.git#0.22.6
bower validate      0.22.6 against git://github.com/react-bootstrap/react-bootstrap-bower.git#~0.22.6
bower cached        git://github.com/markmarkoh/datamaps.git#0.4.0
bower validate      0.4.0 against git://github.com/markmarkoh/datamaps.git#~0.4.0
bower cached        git://github.com/mozilla/metrics-graphics.git#2.5.0
bower validate      2.5.0 against git://github.com/mozilla/metrics-graphics.git#~2.5.0
bower cached        git://github.com/stitchfix/pyxleyJS.git#0.0.2
bower validate      0.0.2 against git://github.com/stitchfix/pyxleyJS.git#~0.0.1
bower cached        git://github.com/mbostock/d3.git#3.3.13
bower validate      3.3.13 against git://github.com/mbostock/d3.git#~3.3.13
bower cached        git://github.com/jquery/jquery.git#2.1.4
bower validate      2.1.4 against git://github.com/jquery/jquery.git#>=1.7.0
bower checkout      require#master
bower cached        git://github.com/jquery/jquery.git#2.1.4
bower validate      2.1.4 against git://github.com/jquery/jquery.git#>= 1.9.1
bower cached        git://github.com/jquery/jquery.git#2.1.4
bower validate      2.1.4 against git://github.com/jquery/jquery.git#>=1.11.1
bower cached        git://github.com/mbostock/topojson.git#1.4.9
bower validate      1.4.9 against git://github.com/mbostock/topojson.git#~1.4.3
bower invalid-meta  require is missing "main" entry in bower.json
bower invalid-meta  require is missing "ignore" entry in bower.json
bower resolved      git://github.com/nathanfaucett/require.js.git#a45d433fdc

Unable to find a suitable version for d3, please choose one:
    1) d3#~3.3.13 which resolved to 3.3.13 and is required by nvd3#1.7.1
    2) d3#~3.3.8 which resolved to 3.3.13 and is required by datamaps#0.4.0
    3) d3#~3.5.5 which resolved to 3.5.6 and is required by metricsgraphics-example
    4) d3#>=3.4.8 which resolved to 3.5.6 and is required by metrics-graphics#2.5.0

Prefix the choice with ! to persist it to bower.json

? Answer:

Upon selecting an option the installation completed successfully.

srenatus commented 9 years ago

Hmm still happens for me. Anyone else?

nmkridler commented 9 years ago

@srenatus I updated the bower.json file. Let me know if it's still giving you problems.

AllisonMadigan commented 9 years ago

I am getting the following error

bower require#* not-cached git://github.com/nathanfaucett/require.js.git# bower require#* resolve git://github.com/nathanfaucett/require.js.git# bower require#* not-cached git://github.com/nathanfaucett/require.js.git# bower require#* resolve git://github.com/nathanfaucett/require.js.git# bower require#* ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/nathanfaucett/require.js.git", exit code of #128 fatal: remote error: Repository not found.

Additional error details: fatal: remote error: Repository not found.

nmkridler commented 9 years ago

It looks like that repo is gone. I'll try to put in a fix soon.

AllisonMadigan commented 9 years ago

Thank you!

nmkridler commented 9 years ago

Wasn't able to find a proper replacement, I think I need to rewrite a bit of javascript. For now, I've updated the examples to include the missing file, so the examples should run.

ZeeshanKhalidSE commented 8 years ago

Hello guys,

bower require#* ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/nathanfaucett/require.js.git", exit code of #128 fatal: remote error: Repository not found.

how I can resolve this issue. Any hints?

patleeman commented 8 years ago

Seems to be a recent issue with Bower. Run the following code which will force git to use https:// instead of git://

git config --global url."https://".insteadOf git://

Source: https://github.com/bower/bower/issues/713