On Jun 10, 12:27 pm, Jorge Vargas <[email protected]> wrote:
> The temporal fix is easy_install -U ToscaWidgets
>
>
a...@ubuntu:~$ virtualenv --no-site-packages tg2test
New python executable in tg2test/bin/python
Installing setuptools............done.
a...@ubuntu:~$ cd tg2test/
a...@ubuntu:~/tg2test$ source bin/activate
(tg2test)a...@ubuntu:~/tg2test$ easy_install turbogears
Searching for turbogears
Reading http://pypi.python.org/simple/turbogears/
Reading http://www.turbogears.org
Reading http://www.turbogears.org/
Reading http://www.turbogears.org/download/filelist.html
Reading http://www.turbogears.org/download/
Best match: TurboGears 1.1b3
Downloading http://files.turbogears.org/eggs/TurboGears-1.1b3.tar.gz
^Cinterrupted
(tg2test)a...@ubuntu:~/tg2test$ dea
deactivate deallocvt
(tg2test)a...@ubuntu:~/tg2test$ deactivate
a...@ubuntu:~/tg2test$ cd ..
a...@ubuntu:~$ rm -rf tg2test
a...@ubuntu:~$ virtualenv --no-site-packages tg2test
New python executable in tg2test/bin/python
Installing setuptools............done.
a...@ubuntu:~$ cd tg2test/
a...@ubuntu:~/tg2test$ source bin/activate
(tg2test)a...@ubuntu:~/tg2test$
##########################################
#
# Still... 1.3... Why? TG2 is not official?
#
#
# Try the TG2 web site suggested way:
#
(tg2test)a...@ubuntu:~/tg2test$ easy_install -i
http://www.turbogears.org/2.0/downloads/current/index tg.devtools
Searching for tg.devtools
Reading http://www.turbogears.org/2.0/downloads/current/index/tg.devtools/
Best match: tg.devtools 2.0
Downloading
http://www.turbogears.org/2.0/downloads/current/tg.devtools-2.0.tar.gz
Processing tg.devtools-2.0.tar.gz
[SNIP]
Running SymbolType-1.0/setup.py -q bdist_egg --dist-dir /tmp/
easy_install-GtrS4F/SymbolType-1.0/egg-dist-tmp-Dk_NeG
zip_safe flag not set; analyzing archive contents...
Adding SymbolType 1.0 to easy-install.pth file
Installed /home/afo/tg2test/lib/python2.6/site-packages/SymbolType-1.0-
py2.6.egg
Finished processing dependencies for tg.devtools
(tg2test)a...@ubuntu:~/tg2test$
#
# Now for the fix...
(tg2test)a...@ubuntu:~/tg2test$ easy_install -U ToscaWidgets
#
Searching for ToscaWidgets
Reading http://pypi.python.org/simple/ToscaWidgets/
Reading http://toscawidgets.org/
Reading http://toscawidgets.org/download/
Best match: ToscaWidgets 0.9.6
Downloading
http://pypi.python.org/packages/source/T/ToscaWidgets/ToscaWidgets-0.9.6.tar.gz#md5=c3e70aa8317fbfabfa643984e27a2cb1
Processing ToscaWidgets-0.9.6.tar.gz
Running ToscaWidgets-0.9.6/setup.py -q bdist_egg --dist-dir /tmp/
easy_install-bI999X/ToscaWidgets-0.9.6/egg-dist-tmp-uo9o0J
Removing ToscaWidgets 0.9.4 from easy-install.pth file
Adding ToscaWidgets 0.9.6 to easy-install.pth file
Installed /home/afo/tg2test/lib/python2.6/site-packages/
ToscaWidgets-0.9.6-py2.6.egg
Processing dependencies for ToscaWidgets
Finished processing dependencies for ToscaWidgets
(tg2test)a...@ubuntu:~/tg2test$
# Now to test
(tg2test)a...@ubuntu:~/tg2test$ paster
Usage: /home/afo/tg2test/bin/paster COMMAND
Usage: paster [paster_options] COMMAND [command_options]
Options:
--version show program's version number and exit
--plugin=PLUGINS Add a plugin to the list of commands (plugins are
Egg
specs; will also require() the Egg)
-h, --help Show this help message
/home/afo/tg2test/lib/python2.6/site-packages/
PEAK_Rules-0.5a1.dev_r2582-py2.6.egg/peak/rules/indexing.py:220:
DeprecationWarning: object.__new__() takes no parameters
/home/afo/tg2test/lib/python2.6/site-packages/ToscaWidgets-0.9.6-
py2.6.egg/tw/core/view.py:209: DeprecationWarning: object.__new__()
takes no parameters
obj = object.__new__(cls, *args, **kw)
Commands:
create Create the file layout for a Python distribution
help Display help
make-config Install a package and create a fresh config file/
directory
points Show information about entry points
post Run a request for the described application
request Run a request for the described application
serve Serve the described application
setup-app Setup an application, given a config file
TurboGears2:
quickstart Create a new TurboGears 2 project.
tginfo Show TurboGears 2 related projects and their versions
(tg2test)a...@ubuntu:~/tg2test$
#
# Arg... Still showing errors.
#
# But let's try quickstart, anyway
#
(tg2test)a...@ubuntu:~/tg2test$ paster quickstart
Enter project name: testprj
Enter package name [testprj]:
Do you need authentication and authorization in this project? [yes] no
Selected and implied templates:
tg.devtools#turbogears2 TurboGears 2.0 Standard Quickstart Template
Variables:
auth: None
egg: testprj
geo: None
package: testprj
project: testprj
sqlalchemy: True
sqlobject: False
tgversion: 2.0
[SNIP]
Copying setup.py_tmpl to ./testprj/setup.py
Copying test.ini_tmpl to ./testprj/test.ini
Running /home/afo/tg2test/bin/python setup.py egg_info
/usr/lib/python2.6/distutils/dist.py:266: afoWarning: Unknown
distribution option: 'message_extractors'
warnings.warn(msg)
running egg_info
writing requirements to testprj.egg-info/requires.txt
writing testprj.egg-info/PKG-INFO
writing top-level names to testprj.egg-info/top_level.txt
writing dependency_links to testprj.egg-info/dependency_links.txt
writing entry points to testprj.egg-info/entry_points.txt
writing paster_plugins to testprj.egg-info/paster_plugins.txt
reading manifest file 'testprj.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'testprj.egg-info/SOURCES.txt'
(tg2test)a...@ubuntu:~/tg2test$
# Got an error.
# Let's try paster serve, though
(tg2test)a...@ubuntu:~/tg2test/testprj$
(tg2test)a...@ubuntu:~/tg2test/testprj$ paster serve
Traceback (most recent call last):
File "/home/afo/tg2test/bin/paster", line 8, in <module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')
()
File "/home/afo/tg2test/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 73, in run
commands = get_commands()
File "/home/afo/tg2test/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 115, in
get_commands
plugins = pluginlib.resolve_plugins(plugins)
File "/home/afo/tg2test/lib/python2.6/site-packages/
PasteScript-1.7.3-py2.6.egg/paste/script/pluginlib.py", line 81, in
resolve_plugins
pkg_resources.require(plugin)
File "/home/afo/tg2test/lib/python2.6/site-packages/setuptools-0.6c9-
py2.6.egg/pkg_resources.py", line 626, in require
File "/home/afo/tg2test/lib/python2.6/site-packages/setuptools-0.6c9-
py2.6.egg/pkg_resources.py", line 524, in resolve
pkg_resources.DistributionNotFound: zope.sqlalchemy>=0.4: Not Found
for: testprj (did you run python setup.py develop?)
(tg2test)a...@ubuntu:~/tg2test/testprj$
#
# Still an error, but let's try running what it says. (What's to set
up?)
#
(tg2test)a...@ubuntu:~/tg2test/testprj$ python setup.py develop
/usr/lib/python2.6/distutils/dist.py:266: afoWarning: Unknown
distribution option: 'message_extractors'
warnings.warn(msg)
running develop
running egg_info
writing requirements to testprj.egg-info/requires.txt
writing testprj.egg-info/PKG-INFO
writing top-level names to testprj.egg-info/top_level.txt
[SNIP]
Using /home/afo/tg2test/lib/python2.6/site-packages/repoze.who-1.0.10-
py2.6.egg
Searching for SymbolType==1.0
Best match: SymbolType 1.0
Processing SymbolType-1.0-py2.6.egg
SymbolType 1.0 is already the active version in easy-install.pth
Using /home/afo/tg2test/lib/python2.6/site-packages/SymbolType-1.0-
py2.6.egg
Finished processing dependencies for testprj==0.1dev
(tg2test)a...@ubuntu:~/tg2test/testprj$
# more errors / warnings
#
# But try paster serve
#
(tg2test)a...@ubuntu:~/tg2test/testprj$ paster serve
/home/afo/tg2test/lib/python2.6/site-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/command.py:29: DeprecationWarning:
BaseException.message has been deprecated as of Python 2.6
self.message = message
/home/afo/tg2test/lib/python2.6/site-packages/PasteScript-1.7.3-
py2.6.egg/paste/script/command.py:125: DeprecationWarning:
BaseException.message has been deprecated as of Python 2.6
print e.message
You must give a config file
(tg2test)a...@ubuntu:~/tg2test/testprj$
# yet a new error, but further along this time.
#
# Let's double check syntax
(tg2test)a...@ubuntu:~/tg2test/testprj$ paster serve development.ini
/home/afo/tg2test/lib/python2.6/site-packages/
PEAK_Rules-0.5a1.dev_r2582-py2.6.egg/peak/rules/indexing.py:220:
DeprecationWarning: object.__new__() takes no parameters
/home/afo/tg2test/lib/python2.6/site-packages/ToscaWidgets-0.9.6-
py2.6.egg/tw/core/view.py:209: DeprecationWarning: object.__new__()
takes no parameters
obj = object.__new__(cls, *args, **kw)
Starting server in PID 16191.
serving on http://127.0.0.1:8080
#
# OK seems to work. Still getting errors / warnings, though.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---