Mac create pebble project error



How does it work ?

pebble new-project my-test-project

No SDK installed; installing the latest one...
To use the Pebble SDK, you must agree to the following:



Do you accept the Pebble Terms of Use and the Pebble Developer License? (y/n) y
100%[======================================================]   1.02 MB/s 0:00:06
Preparing virtualenv... (this may take a while)
PYTHONHOME is set.  You *must* activate the virtualenv before using it
Using real prefix '/System/Library/Frameworks/Python.framework/Versions/2.7'
New python executable in /Users/xxxx/Library/Application Support/Pebble SDK/SDKs/4.3/.env/bin/python
Installing setuptools, pip, wheel...done.
Installing dependencies...
You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting freetype-py==1.0 (from -r /Users/xxxx/Library/Application Support/Pebble SDK/SDKs/4.3/sdk-core/requirements.txt (line 1))
Collecting sh==1.08 (from -r /Users/xxxx/Library/Application Support/Pebble SDK/SDKs/4.3/sdk-core/requirements.txt (line 2))
Collecting pypng==0.0.17 (from -r /Users/xxxx/Library/Application Support/Pebble SDK/SDKs/4.3/sdk-core/requirements.txt (line 3))
Installing collected packages: freetype-py, sh, pypng
Successfully installed freetype-py-1.0 pypng-0.0.17 sh-1.8
Installing JS dependencies... (this may take a while)
Cleaning up failed install...
We require npm3; you are using version 2.14.12.


Which Mac OS version?

Also make sure that you have the correct npm binary on your path:

MBP-15-i7:IJCV2017 reini$ which npm
MBP-15-i7:IJCV2017 reini$ brew info npm
node: stable 7.3.0 (bottled), HEAD
Platform built on V8 to build network applications


I have npm(2.x) and npm3. Delete all and reinstall them with nodejs. Now I can create a project.
But I don’t know how to run in emulator or phone.


Take a look at the excellent documentation here:


Thx, Now I can runing the app on my device.
I use this code can’t runing it in emulator

pebble install --emulator basalt

 Couldn't launch emulator:
dyld: Library not loaded: /usr/local/opt/glib/lib/libgthread-2.0.0.dylib
  Referenced from: /Users/zszen/pebble-dev/pebble-sdk-4.5-mac/bin/qemu-pebble
  Reason: Incompatible library version: qemu-pebble requires version 5001.0.0 or later, but libgthread-2.0.0.dylib provides version 4801.0.0


Seems like you have multiple versions of glib installed (similar to npm above). Do you also use macports?


Worked now.


Now I have a strange problem. Runing any commad will show this error:

Exception in thread Thread-3:
Traceback (most recent call last):
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/”, line 810, in __bootstrap_inner
File “/Users/zszen/pebble-dev/pebble-sdk-4.5-mac/pebble-tool/pebble_tool/util/”, line 61, in run, data=current)
File “/Users/zszen/pebble-dev/pebble-sdk-4.5-mac/.env/lib/python2.7/site-packages/requests/”, line 109, in post
return request(‘post’, url, data=data, json=json, **kwargs)
File “/Users/zszen/pebble-dev/pebble-sdk-4.5-mac/.env/lib/python2.7/site-packages/requests/”, line 50, in request
response = session.request(method=method, url=url, **kwargs)
File “/Users/zszen/pebble-dev/pebble-sdk-4.5-mac/.env/lib/python2.7/site-packages/requests/”, line 465, in request
resp = self.send(prep, **send_kwargs)
File “/Users/zszen/pebble-dev/pebble-sdk-4.5-mac/.env/lib/python2.7/site-packages/requests/”, line 573, in send
r = adapter.send(request, **kwargs)
File “/Users/zszen/pebble-dev/pebble-sdk-4.5-mac/.env/lib/python2.7/site-packages/requests/”, line 415, in send
raise ConnectionError(err, request=request)
ConnectionError: (‘Connection aborted.’, gaierror(8, ‘nodename nor servname provided, or not known’))



use the command to disable tracking. But it don’t work.
“touch ~/Library/Application\ Support/Pebble\ SDK/NO_TRACKING”


just create an empty file called NO_TRACKING in that that location.


don’t work


looks like it’s in the wrong location, check that path again.


/Users/zszen/Library/Application Support/Pebble SDK/

could I remove this file ?


Succes. Remove the file named “ENABLE_ANALYTICS”