Closed ianozsvald closed 9 years ago
@ianozsvald try to replace True
with true
and False
with false
in layout.js
@parth115 If I rewrite it and then start python app.py
it rewrites project/static/layout.js
with the original capitalised 6 occurrences (3 true, 3 false). The file occurs 3 times inside static
- any idea which one should be edited?
I had the exact same issue (hi @ianozsvald) on a MacOSX
I think @ianozsvald this is resolved now with the Python 3.4 fix and the fix of jinja2 templates
@parth115 - working, thanks! /cc @springcoil
Confirmed working with Python 3.4 (Anaconda) using Ubuntu 14.04 (Linux Mint 17.1).
Using Python 3.4 via an Anaconda environment I can install the code (I'm installing as develop
for ease of editing the project):
$ python setup.py develop # (or install)
Next I go into the examples
and following your README:
$ examples/datamaps $ bower install
....<install notes from bower>
Please note that,
datamaps#0.4.0 depends on d3#~3.3.8 which resolved to d3#3.3.13
datamaps-example depends on d3#~3.5.6 which resolved to d3#3.5.6
Resort to using d3#~3.5.6 which resolved to d3#3.5.6
....
Next I stepped into the project
folder (NOTE maybe you could add cd project/
to the README?) and ran
$ python app.py
and it all worked - thanks :-)
I confirm this also works for "datatables", "custom_react" and "metricsgraphics".
Python 2.7 (Anaconda) can be run???
I had difficulty following your README to install bower. I'm using Linux Mint 17.2 (Ubuntu 14.04). The following is a little exhaustive, hopefully it'll help more-knowledgable Ubuntu users through the process and they could help tighten up the Linux compatibility.
Inside
pyxley/examples/datamaps/README.md
it notesI'm not a
bower
ornode
dev so this bit was a little trial-and-error. It seems I had the Ubuntunodejs
package installed which doesn't provide anode
executable (https://github.com/joyent/node/issues/3911) but switching tonodejs-legacy
did the job. Next asudo npm install -g bower
worked.Next I create the 3-line json
.bowerrc
file as you note andbower install
runs, the only question beingwhere I opted for
2
.Out of interest - how come the
.bowerrc
file wasn't already in the repo?Now I see
Running the demo in my browser works and I see
flask
report200
codes in the logs (rather than404
codes before followingbower
which I think is the issue here: https://github.com/stitchfix/pyxley/issues/4):I followed the same process in
datatables
andbower
askedbut this time when I ran the demo, although it runs and I see
200
codes, I don't get anything in the browser (not in Chrome or Firefox). This is the only log info I seeAny clue about what's missing to get the demo working?