[TurboGears] Problem Installing Turbogears (2.1) under OS X Leopard 10.5.8

13 views
Skip to first unread message

--jd--

unread,
Jan 5, 2011, 6:50:28 PM1/5/11
to turbo...@googlegroups.com

Following the installation instructions for OS X 10.5.8 I am getting an error
on the step:
paster quickstart example

As follows:
Enter package name [example]:
Would you prefer mako templates? (yes/[no]):
Do you need authentication and authorization in this project? ([yes]/no):
Selected and implied templates:
tg.devtools#turbogears2 TurboGears 2. Standard Quickstart Template

Variables:
auth: sqlalchemy
cookiesecret: f8fc8182-97d4-4178-afd5-c8e35fcd52c4
egg: example
geo: None
mako: False
package: example
project: example
sqlalchemy: True
tgversion: 2.1
Creating template turbogears2
...
Copying setup.cfg_tmpl to ./example/setup.cfg
Copying setup.py_tmpl to ./example/setup.py
Copying test.ini_tmpl to ./example/test.ini
Running /Users/jd/Development/turbogears/tg2env/bin/python setup.py egg_info
Traceback (most recent call last):
File "/Users/jd/Development/turbogears/tg2env/bin/paster", line 8, in
<module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
File
"/Users/jd/Development//turbogears/tg2env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py",
line 84, in run
invoke(command, command_name, options, args[1:])
File
"/Users/jd/Development/turbogears/tg2env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py",
line 123, in invoke
exit_code = runner.run(args)
File
"/Users/jd/Development/turbogears/tg2env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py",
line 218, in run
result = self.command()
File
"/Users/jd/Development/turbogears/tg2env/lib/python2.6/site-packages/tg.devtools-2.1-py2.6.egg/devtools/commands/quickstart.py",
line 241, in command
command.run(cmd_args)
File
"/Users/jd/Development/turbogears/tg2env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py",
line 218, in run
result = self.command()
File
"/Users/jd/Development/turbogears/tg2env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/create_distro.py",
line 170, in command
egg_info_dir = pluginlib.egg_info_dir(output_dir, dist_name)
File
"/Users/jd/Development/src/turbogears/tg2env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/pluginlib.py",
line 134, in egg_info_dir
% ', '.join(all))
IOError: No egg-info directory found (looked in
./example/./example.egg-info, ./example/development.ini/example.egg-info,
./example/example/example.egg-info, ./example/ez_setup/example.egg-info,
./example/MANIFEST.in/example.egg-info,
./example/README.txt/example.egg-info, ./example/setup.cfg/example.egg-info,
./example/setup.py/example.egg-info, ./example/test.ini/example.egg-info)

Installation appears to go ok prior to this though comparing the
easy_install process on OS X to a successful Ubuntu install I did notice
some differences.

On OS X:
...
Searching for PasteScript>=1.7.3
Reading http://www.turbogears.org/2.1/downloads/current/index/PasteScript/
Best match: PasteScript 1.7.3
Downloading
http://www.turbogears.org/2.1/downloads/current/PasteScript-1.7.3.tar.gz
Processing PasteScript-1.7.3.tar.gz
Running PasteScript-1.7.3/setup.py -q bdist_egg --dist-dir
/var/folders/AK/AKp1GC8AHYmSmYmB-NdIt++++TI/-Tmp-/easy_install-jvgRqN/PasteScript-1.7.3/egg-dist-tmp-qzaZN1
Download error: [Errno 8] nodename nor servname provided, or not known --
Some packages may not be found!
Directory ./PasteDeploy.egg-info ignored by pattern *.egg-info
File ./paste/__init__.py ignored by pattern *.py
File ./tests/__init__.py ignored by pattern *.py
File ./tests/finddata.py ignored by pattern *.py
File ./tests/fixture.py ignored by pattern *.py
File ./tests/test_basic_app.py ignored by pattern *.py
File ./tests/test_config.py ignored by pattern *.py
File ./tests/test_config_middleware.py ignored by pattern *.py
File ./tests/test_filter.py ignored by pattern *.py
File ./tests/test_load_package.py ignored by pattern *.py
File ./paste/deploy/__init__.py ignored by pattern *.py
File ./paste/deploy/config.py ignored by pattern *.py
File ./paste/deploy/converters.py ignored by pattern *.py
File ./paste/deploy/epdesc.py ignored by pattern *.py
File ./paste/deploy/interfaces.py ignored by pattern *.py
File ./paste/deploy/loadwsgi.py ignored by pattern *.py
File ./paste/deploy/paster_templates.py ignored by pattern *.py
File ./paste/deploy/util/__init__.py ignored by pattern *.py
File ./paste/deploy/util/fixtypeerror.py ignored by pattern *.py
File ./paste/deploy/util/threadinglocal.py ignored by pattern *.py
{}
warning: no files found matching 'docs/*.html'
warning: no previously-included files found matching 'docs/rebuild'

Installed
/private/var/folders/AK/AKp1GC8AHYmSmYmB-NdIt++++TI/-Tmp-/easy_install-jvgRqN/PasteScript-1.7.3/PasteDeploy-1.3.4-py2.6.egg
writing requirements to PasteScript.egg-info/requires.txt
writing PasteScript.egg-info/PKG-INFO
writing namespace_packages to PasteScript.egg-info/namespace_packages.txt
writing top-level names to PasteScript.egg-info/top_level.txt
writing dependency_links to PasteScript.egg-info/dependency_links.txt
writing entry points to PasteScript.egg-info/entry_points.txt
reading manifest file 'PasteScript.egg-info/SOURCES.txt'
writing manifest file 'PasteScript.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.3-fat/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/paste
copying paste/__init__.py -> build/lib/paste
creating build/lib/paste/script
copying paste/script/__init__.py -> build/lib/paste/script
copying paste/script/appinstall.py -> build/lib/paste/script
copying paste/script/bool_optparse.py -> build/lib/paste/script
...
copying PasteScript.egg-info/namespace_packages.txt ->
build/bdist.macosx-10.3-fat/egg/EGG-INFO
copying PasteScript.egg-info/not-zip-safe ->
build/bdist.macosx-10.3-fat/egg/EGG-INFO
copying PasteScript.egg-info/requires.txt ->
build/bdist.macosx-10.3-fat/egg/EGG-INFO
copying PasteScript.egg-info/top_level.txt ->
build/bdist.macosx-10.3-fat/egg/EGG-INFO
creating
'/var/folders/AK/AKp1GC8AHYmSmYmB-NdIt++++TI/-Tmp-/easy_install-jvgRqN/PasteScript-1.7.3/egg-dist-tmp-qzaZN1/PasteScript-1.7.3-py2.6.egg'
and adding 'build/bdist.macosx-10.3-fat/egg' to it
removing 'build/bdist.macosx-10.3-fat/egg' (and everything under it)
creating
/Users/jd/Development/turbogears/tg2env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg
Extracting PasteScript-1.7.3-py2.6.egg to
/Users/jd/Development/turbogears/tg2env/lib/python2.6/site-packages
Adding PasteScript 1.7.3 to easy-install.pth file
Installing paster script to /Users/jd/Development/turbogears/tg2env/bin
Installing paster script to /Users/jd/Development/turbogears/tg2env/bin

Installed
/Users/jd/Development/turbogears/tg2env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg
...

On Linux:
...
Searching for PasteScript>=1.7.3
Reading http://www.turbogears.org/2.1/downloads/current/index/PasteScript/
Best match: PasteScript 1.7.3
Downloading
http://www.turbogears.org/2.1/downloads/current/PasteScript-1.7.3.tar.gz
Processing PasteScript-1.7.3.tar.gz
Running PasteScript-1.7.3/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-Skjgjm/PasteScript-1.7.3/egg-dist-tmp-TeFYwV
Adding PasteScript 1.7.3 to easy-install.pth file
Installing paster script to /home/jd/bin/turbogears/tg2env/bin
Installing paster script to /home/jd/bin/turbogears/tg2env/bin

Installed
/home/jd/bin/turbogears/tg2env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg
...

Though I don't know if this indicates that something may have gone wrong on
the OS X install... or this is normal.

I also tried compiling python from source rather than using the "one-button
installer" with the same results. Python/paster/etc. all appear to be
running correctly from the virtual environment.

Any help would be appreciated, even knowing whether others have successfully
installed on OS X 10.5.8 might help narrow it down to a problem with my
specific system.

Thanks
jd

--
View this message in context: http://old.nabble.com/Problem-Installing-Turbogears-%282.1%29-under-OS-X-Leopard-10.5.8-tp30601324p30601324.html
Sent from the Turbogears General mailing list archive at Nabble.com.

JD

unread,
Jan 6, 2011, 4:55:12 AM1/6/11
to TurboGears

Found it myself.... solution may be useful to others having similar
problems on OS X. Error actually occurs due to to locale settings.
This problem seems to have cropped up a number of times on other
forums, but not for turbogears... which is somewhat surprising.

Setting LC_CTYPE=en_US seems to make the fix. If this is an
consistent problem with OS X install of turbogears I'd recommend this
being noted in the 'Alternate Installation Process' documentation.

jd



mark.mch...@gmail.com

unread,
Mar 1, 2011, 10:31:21 PM3/1/11
to TurboGears
Strangely I've never seen this on my OS X machine, and I've installed
TG into new virtual environments many, many times.

--Mark
Reply all
Reply to author
Forward
0 new messages