On Sep 29, 8:06 am, "Jorge Vargas" <[EMAIL PROTECTED]> wrote:
> On Sun, Sep 28, 2008 at 11:50 PM, Eric <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> > I'm fairly new to Python and new to Turbogears (1.9.7a4) using Python
> > 2.5 on Win XP.  I have set up a virtual environment (virtualenv c:
> > \tg2env --no-site-packages) and can successfully get the demo page to
> > come up (paster serve --reload development.ini).  When I try to init
> > the database per the tutorial (python initializeDB.py) I get:
>
> > (tg2env) C:\tg2env\Wiki-20>initializeDB.py
> > Traceback (most recent call last):
> >  File "C:\tg2env\Wiki-20\initializeDB.py", line 1, in <module>
> >    from wiki20.model import DBSession, Page, metadata
> >  File "C:\tg2env\Wiki-20\wiki20\model\__init__.py", line 2, in
> > <module>
> >    from zope.sqlalchemy import ZopeTransactionExtension
> > ImportError: No module named zope.sqlalchemy
>
> > If I swap the zope.sqlalchemy import statement with the next statement
> > in __init__.py (sqlalchemy.orm import) it throws the same No module
> > error.  I used the python interpreter to check the path:
>
> This certainly seems like an installation error. could you check the
> output of the "info" command to see exactly which packages you are
> running? or you could run python setup.py develop on your tg project
> as that will check all dependencies and be sure they are in place.

Hi,
I ran setup.py develop and it installed the zope and toscawidgets
packages in my normal site-packages directory (they are already in my
virtualenv site-packages directory:

(tg2env) C:\tg2env\Wiki-20>setup.py develop
running develop
running egg_info
writing requirements to Wiki_20.egg-info\requires.txt
writing Wiki_20.egg-info\PKG-INFO
writing top-level names to Wiki_20.egg-info\top_level.txt
writing dependency_links to Wiki_20.egg-info\dependency_links.txt
writing entry points to Wiki_20.egg-info\entry_points.txt
reading manifest file 'Wiki_20.egg-info\SOURCES.txt'
writing manifest file 'Wiki_20.egg-info\SOURCES.txt'
running build_ext
Creating c:\python25\lib\site-packages\Wiki-20.egg-link (link to .)
Adding Wiki-20 0.1dev to easy-install.pth file

Installed c:\tg2env\wiki-20
Processing dependencies for Wiki-20==0.1dev
Searching for zope.sqlalchemy
Reading http://www.pylonshq.com/download/
Reading http://pypi.python.org/simple/zope.sqlalchemy/
Best match: zope.sqlalchemy 0.3
Downloading http://pypi.python.org/packages/source/z/zope.sqlalchemy/zope.sqlalc
hemy-0.3.tar.gz#md5=3edc2b0f02e778483de64b60ff214df9
Processing zope.sqlalchemy-0.3.tar.gz
Running zope.sqlalchemy-0.3\setup.py -q bdist_egg --dist-dir c:
\docume~1\eric\lo
cals~1\temp\easy_install-opd6ci\zope.sqlalchemy-0.3\egg-dist-tmp-
bkdb0n
Adding zope.sqlalchemy 0.3 to easy-install.pth file

Installed c:\python25\lib\site-packages\zope.sqlalchemy-0.3-py2.5.egg
Searching for ToscaWidgets>=0.9.1
Reading http://pypi.python.org/simple/ToscaWidgets/
Reading http://toscawidgets.org/
Reading http://toscawidgets.org/download/
Best match: ToscaWidgets 0.9.3
Downloading http://pypi.python.org/packages/2.5/T/ToscaWidgets/ToscaWidgets-0.9.
3-py2.5.egg#md5=c6fe916e1d357344dacea206d407b85c
Processing ToscaWidgets-0.9.3-py2.5.egg
creating c:\python25\lib\site-packages\ToscaWidgets-0.9.3-py2.5.egg
Extracting ToscaWidgets-0.9.3-py2.5.egg to c:\python25\lib\site-
packages
Adding ToscaWidgets 0.9.3 to easy-install.pth file

Installed c:\python25\lib\site-packages\toscawidgets-0.9.3-py2.5.egg
Searching for TurboGears2
Reading http://pypi.python.org/simple/TurboGears2/
Couldn't find index page for 'TurboGears2' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for TurboGears2
error: Could not find suitable distribution for
Requirement.parse('TurboGears2')

Running initializeDB.py still gives an error:

(tg2env) C:\tg2env\Wiki-20>initializeDB.py
Traceback (most recent call last):
  File "C:\tg2env\Wiki-20\initializeDB.py", line 1, in <module>
    from wiki20.model import DBSession, Page, metadata
  File "C:\tg2env\Wiki-20\wiki20\model\__init__.py", line 2, in
<module>
    from zope.sqlalchemy import ZopeTransactionExtension
  File "c:\python25\lib\site-packages\zope.sqlalchemy-0.3-py2.5.egg
\zope\sqlalch
emy\__init__.py", line 17, in <module>
    from datamanager import ZopeTransactionExtension, mark_changed
  File "c:\python25\lib\site-packages\zope.sqlalchemy-0.3-py2.5.egg
\zope\sqlalch
emy\datamanager.py", line 15, in <module>
    import transaction as zope_transaction
ImportError: No module named transaction

I assume for the "info" command you mean paster tginfo?  Here is the
output:

(tg2env) C:\tg2env\Wiki-20>paster tginfo
TurboGears2 Complete Version Information
========================================

TurboGears2 requires:

  * genshi 0.5.1
  * pastedeploy 1.3.2
  * simplejson 1.9.2
  * beaker 1.0
  * turbogears2 1.9.7a4
  * decorator 2.2.0
  * pastescript 1.6.3
  * webob 0.9.2
  * webhelpers 0.6.1
  * nose 0.10.3
  * mako 0.2.2
  * paste 1.7.1
  * pylons 0.9.7rc1
  * weberror 0.9
  * toscawidgets 0.9.2
  * routes 1.9.2
  * transaction 1.0a1
  * tempita 0.2
  * pygments 0.10
  * setuptools 0.6c8
  * formencode 1.0.1
  * wsgiref 0.1.2
  * zope.interface 3.4.1
  * babel 0.9.3
  * repoze.tm2 1.0a3

TurboGears2 Commands

  * migrate (tg.devtools 1.9.7a4)
  * crud (tg.devtools 1.9.7a4)
  * quickstart (tg.devtools 1.9.7a4)
  * shell (turbogears2 1.9.7a4)
  * serve (turbogears2 1.9.7a4)

Widget Packages

  * widgets (dbsprockets 0.5dev-r411)
  * widgets (tw.forms 0.9.1)
  * samples (tw.forms 0.9.1)
  * widgets (toscawidgets 0.9.2)
  * resources (toscawidgets 0.9.2)

TurboGears2 Templates

  * turbogears2 (tg.devtools 1.9.7a4)

Toolbox2 Gadgets


Template Engines

  * json (turbojson 1.2)
  * toscawidgets (toscawidgets 0.9.2)
  * pylonsmyghty (pylons 0.9.7rc1)
  * genshi-markup (genshi 0.5.1)
  * genshi-text (genshi 0.5.1)
  * genshi (genshi 0.5.1)
  * mako (mako 0.2.2)

Available Widgets:


  * dbsprockets 0.5dev-r411:

  * tw.forms 0.9.1:
    - BooleanRadioButtonList
    - Button
    - CalendarDatePicker
    - CalendarDateTimePicker
    - CheckBox
    - CheckBoxList
    - CheckBoxTable
    - ContainerMixin
    - DataGrid
    - FieldSet
    - FileField
    - Form
    - FormField
    - FormFieldRepeater
    - HiddenField
    - ImageButton
    - InputField
    - InputWidget
    - InputWidgetRepeater
    - Label
    - LabelHiddenField
    - ListFieldSet
    - ListForm
    - ListMixin
    - MultipleSelectField
    - MultipleSelectionMixin
    - PasswordField
    - RadioButton
    - RadioButtonList
    - ResetButton
    - SecureFormMixin
    - SecureTicketField
    - SelectionField
    - SelectionList
    - SingleSelectField
    - SingleSelectionMixin
    - Spacer
    - SubmitButton
    - TableFieldSet
    - TableForm
    - TableMixin
    - TextArea
    - TextField
    - Widget
    - calendars
    - core
    - datagrid
    - fields
    - validators

  * toscawidgets 0.9.2:
    - CSSLink
    - CSSMixin
    - CSSSource
    - Child
    - EngineException
    - EngineManager
    - HostFramework
    - IECSSLink
    - IECSSSource
    - IEJSLink
    - IEJSSource
    - JSFunctionCalls
    - JSLink
    - JSMixin
    - JSSource
    - LRUCache
    - Link
    - OrderedSet
    - Renderable
    - RepeatedWidget
    - RepeatingWidgetBunch
    - RequestLocalDescriptor
    - Resource
    - Source
    - Widget
    - WidgetBunch
    - WidgetException
    - WidgetInitialized
    - WidgetLocked
    - WidgetRepeater
    - WidgetType
    - WidgetUninitialized
    - WidgetUnlocked
    - WidgetsList
    - adapt_value
    - asbool
    - base
    - display
    - encode
    - engine_plugin
    - exceptions
    - inject_resources
    - injector_middleware
    - js
    - js_callback
    - js_function
    - js_symbol
    - lazystring
    - locations
    - make_middleware
    - merge_resources
    - meta
    - middleware
    - registry
    - render
    - resource_injector
    - resources
    - retrieve_resources
    - util
    - valid_id
    - view

  * toscawidgets 0.9.2:
    - CSSLink
    - CSSMixin
    - CSSSource
    - Child
    - EngineException
    - EngineManager
    - HostFramework
    - IECSSLink
    - IECSSSource
    - IEJSLink
    - IEJSSource
    - JSFunctionCalls
    - JSLink
    - JSMixin
    - JSSource
    - LRUCache
    - Link
    - OrderedSet
    - Renderable
    - RepeatedWidget
    - RepeatingWidgetBunch
    - RequestLocalDescriptor
    - Resource
    - Source
    - Widget
    - WidgetBunch
    - WidgetException
    - WidgetInitialized
    - WidgetLocked
    - WidgetRepeater
    - WidgetType
    - WidgetUninitialized
    - WidgetUnlocked
    - WidgetsList
    - adapt_value
    - asbool
    - base
    - display
    - encode
    - engine_plugin
    - exceptions
    - inject_resources
    - injector_middleware
    - js
    - js_callback
    - js_function
    - js_symbol
    - lazystring
    - locations
    - make_middleware
    - merge_resources
    - meta
    - middleware
    - registry
    - render
    - resource_injector
    - resources
    - retrieve_resources
    - util
    - valid_id
    - view

Thanks,
Eric
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to