Closed winhamwr closed 11 years ago
Installed the latest version of terrarium from github and still got this error:
$ pip install git+git://github.com/PolicyStat/terrarium.git#egg=terrarium
Downloading/unpacking git+git://github.com/PolicyStat/terrarium.git#egg=terrarium
Cloning Git repository git://github.com/PolicyStat/terrarium.git to /tmp/pip-bYpar0-build
Running setup.py egg_info for package from git+git://github.com/PolicyStat/terrarium.git#egg=terrarium
no previously-included directories found matching 'tests/*.pyc'
no previously-included directories found matching 'docs/*.pyc'
no previously-included directories found matching 'terrarium/*.pyc'
Requirement already satisfied (use --upgrade to upgrade): argparse==1.2.1 in /home/wes/.virtualenvs/pstat_446/lib/python2.6/site-packages (from terrarium)
Requirement already satisfied (use --upgrade to upgrade): virtualenv==1.7.2 in /home/wes/.virtualenvs/pstat_446/lib/python2.6/site-packages (from terrarium)
Installing collected packages: terrarium
Running setup.py install for terrarium
no previously-included directories found matching 'tests/*.pyc'
no previously-included directories found matching 'docs/*.pyc'
no previously-included directories found matching 'terrarium/*.pyc'
Installing terrarium script to /home/wes/.virtualenvs/pstat_446/bin
Successfully installed terrarium
Cleaning up...
(pstat_446)wes@wes-acer:~/policystat/workspace/pstat/config/ec2_scripts/tpl/pstat$ terrarium install sys_requirements.txt dev_requirements.txt src_requirements.txt requirements.txt
Using real prefix '/usr'
New python executable in /home/wes/.virtualenvs/pstat_446.ezU0Ly/bin/python
Installing distribute.................................................................................................................................................................................................done.
Installing pip................done.
Traceback (most recent call last):
File "/tmp/terrarium_bootstrap-Rm2Xv7.py", line 2480, in <module>
main()
File "/tmp/terrarium_bootstrap-Rm2Xv7.py", line 946, in main
after_install(options, home_dir)
File "/tmp/terrarium_bootstrap-Rm2Xv7.py", line 1831, in after_install
requirementSet = c.run(options, args)
File "/home/wes/.virtualenvs/pstat_446.ezU0Ly/lib/python2.6/site-packages/pip-1.1-py2.6.egg/pip/commands/install.py", line 245, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/home/wes/.virtualenvs/pstat_446.ezU0Ly/lib/python2.6/site-packages/pip-1.1-py2.6.egg/pip/req.py", line 1009, in prepare_files
req_to_install.run_egg_info()
File "/home/wes/.virtualenvs/pstat_446.ezU0Ly/lib/python2.6/site-packages/pip-1.1-py2.6.egg/pip/req.py", line 225, in run_egg_info
command_desc='python setup.py egg_info')
File "/home/wes/.virtualenvs/pstat_446.ezU0Ly/lib/python2.6/site-packages/pip-1.1-py2.6.egg/pip/__init__.py", line 256, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in /home/wes/.virtualenvs/pstat_446.ezU0Ly/build/MySQL-python
Traceback (most recent call last):
File "/home/wes/.virtualenvs/pstat_446/bin/terrarium", line 8, in <module>
load_entry_point('terrarium==1.0.0rc2', 'console_scripts', 'terrarium')()
File "/home/wes/.virtualenvs/pstat_446/lib/python2.6/site-packages/terrarium/terrarium.py", line 658, in main
terrarium.install()
File "/home/wes/.virtualenvs/pstat_446/lib/python2.6/site-packages/terrarium/terrarium.py", line 132, in install
new_target
File "/home/wes/.virtualenvs/pstat_446/lib/python2.6/site-packages/virtualenv.py", line 1020, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /home/wes/.virtualenvs/pstat_446/bin/python /tmp/terrarium_bootstrap-Rm2Xv7.py --prompt=(pstat_446) /home/wes/.virtualenvs/pstat_446.ezU0Ly failed with error code 1
Doing a straight up pip install on the same requirements files, I eventually got this:
Downloading/unpacking MySQL-python==1.2.3 (from -r sys_requirements.txt (line 4))
Downloading MySQL-python-1.2.3.tar.gz (70Kb): 70Kb downloaded
Running setup.py egg_info for package MySQL-python
sh: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/wes/.virtualenvs/pstat_446/build/MySQL-python/setup.py", line 15, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
Complete output from command python setup.py egg_info:
sh: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/wes/.virtualenvs/pstat_446/build/MySQL-python/setup.py", line 15, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
Do you think this could have been the cause? If so, shouldn't terrarium give me that same output so I know how to fix my config?
What happens if you run terrarium -vv install ...
? Does that cause the error to be displayed?
-v
controls the amount of log output and is passed to the pip subprocess. -vv
is 'extra verbose'
Not sure. The error was something with the mysql requirement, which was in sys_requirements.txt
, so I just stopped installing that. It seems like this might actually just be a duplicate of #13 in that the default verbosity level isn't verbose enough to correct normal install problems.
Before the stacktrace, I did the following
rm -r path/to/virtualenv
to remove a virtualenvmkvirtualenv pstat_446
to create the new virtualenv$ pip install boto==2.3.0
$ pip install terrarium
export
to set the appropriate S3 environment variables.