brianleroux/Cordova — Issue #15: "No such file or directory" error
Author: juanghurtado
Created: 2011-11-23 19:04:58+00:00
State: open

Hi there,

I'm trying to install Cordova, but after doing the `python setup.py install` (without errors), having my `phonegap` command available and Cordova path added to my $PATH, I get the following error while trying to `phonegap create sample_app`:

```
Traceback (most recent call last):
File "/usr/local/share/python/phonegap", line 9, in
load_entry_point('cordova==0.1.0', 'console_scripts', 'phonegap')()
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/cordova-0.1.0-py2.7.egg/cordova/console.py", line 33, in main
console.run()
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/cordova-0.1.0-py2.7.egg/cordova/console.py", line 25, in run
command[0](self).run()
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/cordova-0.1.0-py2.7.egg/cordova/commands/create.py", line 51, in run
shutil.copytree(tmpl, dest)
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/shutil.py", line 168, in copytree
names = os.listdir(src)
OSError: [Errno 2] No such file or directory: '/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/cordova-0.1.0-py2.7.egg/generate-template'
```

Any ideas? Thanks a lot.

PS.- I have tried with both, native OSX and Homebrew, python. My OSX version is Lion.