murz/play-fbconnect — Issue #11: Installation error with play install command
Author: ahmetalpbalkan
Created: 2011-11-16 19:16:11+00:00
State: open

I'm trying to install the module on my device. However, it fails for some reason. I'm using play-1.2.3 and using `play install fbconnect-0.6`.

$ play install fbconnect-0.6
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2.3, http://www.playframework.org
~
~ Will install fbconnect-0.6
~ This module is compatible with: 1.2
~ Do you want to install this version (y/n)? y
~ Installing module fbconnect-0.6...
~
~ Fetching http://www.playframework.org/modules/fbconnect-0.6.zip
~ [--------------------------100%-------------------------] 33229.5 KiB/s
~ Unzipping...
Traceback (most recent call last):
File "/Users/alp/play-1.2.3/play", line 153, in
status = cmdloader.commands[play_command].execute(command=play_command, app=play_app, args=remaining_args, env=play_env, cmdloader=cmdloader)
File "/Users/alp/play-1.2.3/framework/pym/play/commands/modulesrepo.py", line 58, in execute
install(app, args, env)
File "/Users/alp/play-1.2.3/framework/pym/play/commands/modulesrepo.py", line 391, in install
Unzip().extract(archive, os.path.join(env["basedir"], 'modules/%s-%s' % (module, v['version'])))
File "/Users/alp/play-1.2.3/framework/pym/play/commands/modulesrepo.py", line 152, in extract
outfile = open(os.path.join(dir, name), 'wb')
IOError: [Errno 13] Permission denied: '/app/controllers/FBConnect.java'

Then I try it with `sudo`.

$ sudo play install fbconnect-0.6
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2.3, http://www.playframework.org
~
~ Will install fbconnect-0.6
~ This module is compatible with: 1.2
~ Do you want to install this version (y/n)? y
~ Installing module fbconnect-0.6...
~
~ Fetching http://www.playframework.org/modules/fbconnect-0.6.zip
~ [--------------------------100%-------------------------] 25840.4 KiB/s
~ Unzipping...
~
~ Module fbconnect-0.6 is installed!
~ You can now use it by adding it to the dependencies.yml file:
~
~ require:
~ play -> fbconnect 0.6

However after navigating to the folder using

$ cd fbconnect-0.6

only the following files are installed:

README.md build.xml manifest

what can be the problem?