Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAjinkya Borade
Courses Plus Student 16,635 PointsHTML5 Game limejs installation problem
Im using Windows 8.
I have installed Gitbash, and python. Both works fine.
After cloning limejs folder into C:/ drive.
When I try to install Google closure library I get below error: Welcome to Git (version 1.8.3-preview20130601)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
sh.exe": /c/Users/Ajinkya/.bashrc: line 1: syntax error near unexpected token (
'
sh.exe": /c/Users/Ajinkya/.bashrc: line 1:
export PATH=/c/Users/Ajinkya/bin:.:/
usr/local/bin:/mingw/bin:/bin:/c/Program Files (x86)/AMD APP/bin/x86_64:/c/Progr
am Files (x86)/AMD APP/bin/x86:/c/Program Files/Dell/DW WLAN Card:/c/Program Fil
es (x86)/Intel/iCLS Client/:/c/Program Files/Intel/iCLS Client/:/c/WINDOWS/syste
m32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1
.0/:/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/c/Program
Files/Intel/Intel(R) Management Engine Components/IPT:/c/Program Files (x86)/Int
el/Intel(R) Management Engine Components/DAL:/c/Program Files (x86)/Intel/Intel(
R) Management Engine Components/IPT:/c/Program Files/WIDCOMM/Bluetooth Software/
:/c/Program Files/WIDCOMM/Bluetooth Software/syswow64:/c/Program Files (x86)/ATI
Technologies/ATI.ACE/Core-Static:/c/Program Files (x86)/Windows Live/Shared:/c/
Program Files/nodejs/:/c/Users/Ajinkya/AppData/Roaming/npm:/c/Python27/'
Steel@STEEL-LAPTOP /c/limejs (master) $ python bin/lime.py --help Usage: lime.py [command] [options] Commands: init Check lime dependecies and setup if needed update Update Closure dependency file. Need to run every time you change goog.provide() or goog.require() create [path/name] Setup new project [name] gensoy [path] Convert all *.soy files under path to *.soy.js files build [name] Compile project to single Javascript file
Options: -h, --help show this help message and exit -a, --advanced Build uses ADVANCED_OPTIMIZATIONS mode (encouraged) -e EXTERNS_FILE, --externs=EXTERNS_FILE File with externs declarations. -o OUTPUT, --output=OUTPUT Output file for build result -m, --map Build result sourcemap for debugging. Also turns on pretty print. -s, --use-strict Use EcmaScript5 strict mode. -p PRELOAD, --preload=PRELOAD Generate preloader code with given callback as start point. -d DEFINE, --define=DEFINE Define custom variable accessible before build.
Steel@STEEL-LAPTOP /c/limejs (master) $ bin/lime.py init Closure Library not found. Downloading to C:\limejs\closure Please wait... Cloning into 'C:\limejs\closure'... remote: Counting objects: 43590, done. remote: Finding sources: 100% (43590/43590), done. remote: Total 43590 (delta 35039) Receiving objects: 100% (43590/43590), 17.23 MiB | 231.00 KiB/s, done. Resolving deltas: 100% (35039/35039), done. Checking out files: 100% (1884/1884), done. Box2DJS not found. Downloading to C:\limejs\box2d Please wait... Cloning into 'C:\limejs\box2d'... remote: Counting objects: 2250, done. remote: Compressing objects: 100% (1172/1172), done. remote: Total 2250 (delta 1092), reused 2222 (delta 1065) Receiving objects: 100% (2250/2250), 1.01 MiB | 210.00 KiB/s, done. Resolving deltas: 100% (1092/1092), done. Downloading Closure Compiler: 100% Unzipping... Cleanup Downloading Closure Templates(Soy): 100% Unzipping... Cleanup Updating Closure deps file python C:\limejs\closure\closure/bin/build/depswriter.py --root_with_prefix="C:\ limejs\closure/ ../../" --root_with_prefix="C:\limejs\lime/ ../../../lime/" --ro ot_with_prefix="C:\limejs\box2d/src/ ../../../box2d/src/" --output_file="C:\lime js\closure\closure/goog/deps.js" Traceback (most recent call last): File "C:\limejs\closure\closure/bin/build/depswriter.py", line 202, in <module
main()
File "C:\limejs\closure\closure/bin/build/depswriter.py", line 178, in main path_to_source.update(_GetRelativePathToSourceDict(root, prefix=prefix)) File "C:\limejs\closure\closure/bin/build/depswriter.py", line 145, in _GetRel ativePathToSourceDict path_to_source[prefixed_path] = source.Source(source.GetFileContents(path)) File "C:\limejs\closure\closure\bin\build\source.py", line 119, in GetFileCont ents return fileobj.read() File "c:\Python33\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 7027: cha racter maps to <undefined>
[]
1 Answer
Ajinkya Borade
Courses Plus Student 16,635 PointsSolution: uninstalled Python 3.3, install Python 2.7