Am I the only one experiencing this too?

On 10/03/2006, at 19:01, Alberto Valverde wrote:

>
> This belongs to turbogears-trunk, cross-posting....
>
>
> On 10/03/2006, at 18:37, gergo wrote:
>
>>
>> Hi,
>>
>> After an update, my JSSources don't appear in the generated page.
>> I've run nosetests and it have many fails, output below.
>>
>> The output of tg-admin info:
>> [EMAIL PROTECTED] ~/workspace/hn $ tg-admin info
>> TurboGears 0.9a1dev-r882
>> nose 0.8.6
>> RuleDispatch 0.5a0.dev-r2100
>> setuptools 0.6a11dev-r42684
>> FormEncode 0.4
>> cElementTree 1.0.5-20051216
>> PasteScript 0.5
>> elementtree 1.2.6
>> simplejson 1.1
>> SQLObject 0.7.1dev-r1643
>> CherryPy 2.2.0beta
>> TurboKid 0.9.2dev-r924
>> PyProtocols 1.0a0
>> Cheetah 1.0
>> PasteDeploy 0.3
>> Paste 0.5
>> FormEncode 0.4
>> kid 0.9
>> elementtree 1.2.6
>>
>> Any ideas why aren't my JSSources appear?
>>
>> Gergely Major
>>
>> ----
>>
>> [EMAIL PROTECTED] ~/tmp/turbogears/turbogears/widgets/tests $ nosetests
>> ................FF.................F........................F
>> ===================================================================== 
>> =
>> FAIL: test_widgets.test_widget_css
>> --------------------------------------------------------------------- 
>> -
>> Traceback (most recent call last):
>>   File
>> "/usr/lib/python2.4/site-packages/nose-0.8.6-py2.4.egg/nose/core.py",
>> line 112, in runTest
>>     self.testFunc()
>>   File
>> "/home/mag/tmp/turbogears/turbogears/widgets/tests/test_widgets.py",
>> line 148, in test_widget_css
>>     assert 'h1 { color: black }' in rendered
>> AssertionError:
>> -------------------- >> begin captured stdout <<  
>> ---------------------
>> CSSLink(name='foo.css', media='all') CSSLink(name='foo.css',
>> media='all')
>> turbogears.widgets foo.css
>> turbogears.widgets foo.css
>> <link media="all" href="/tg_widgets/turbogears.widgets/foo.css"
>> type="text/css" rel="stylesheet">
>> <link media="printer" href="/tg_widgets/turbogears.widgets/foo.css"
>> type="text/css" rel="stylesheet">
>> <style media="all" type="text/css"></style>
>>
>> --------------------- >> end captured stdout <<  
>> ----------------------
>>
>>
>> ===================================================================== 
>> =
>> FAIL: test_widgets.test_widget_js
>> --------------------------------------------------------------------- 
>> -
>> Traceback (most recent call last):
>>   File
>> "/usr/lib/python2.4/site-packages/nose-0.8.6-py2.4.egg/nose/core.py",
>> line 112, in runTest
>>     self.testFunc()
>>   File
>> "/home/mag/tmp/turbogears/turbogears/widgets/tests/test_widgets.py",
>> line 173, in test_widget_js
>>     assert rendered == expected
>> AssertionError:
>> -------------------- >> begin captured stdout <<  
>> ---------------------
>> <SCRIPT SRC="/tg_widgets/turbogears.widgets/foo.js"
>> TYPE="text/javascript"></SCRIPT>
>> <SCRIPT SRC="/tg_widgets/turbogears.widgets/foo.js"
>> TYPE="text/javascript"></SCRIPT>
>> <SCRIPT TYPE="text/javascript"></SCRIPT>
>> <SCRIPT TYPE="text/javascript">alert('hello');</SCRIPT>
>>
>> --------------------- >> end captured stdout <<  
>> ----------------------
>>
>>
>> ===================================================================== 
>> =
>> FAIL: test_forms.test_javascriptsets
>> --------------------------------------------------------------------- 
>> -
>> Traceback (most recent call last):
>>   File
>> "/usr/lib/python2.4/site-packages/nose-0.8.6-py2.4.egg/nose/core.py",
>> line 112, in runTest
>>     self.testFunc()
>>   File
>> "/home/mag/tmp/turbogears/turbogears/widgets/tests/test_forms.py",
>> line
>> 66, in test_javascriptsets
>>     assert len(form.retrieve_javascript()) == 3
>> AssertionError:
>>
>>
>> ===================================================================== 
>> =
>> FAIL: test_link_inclusion.test_table_widget_js
>> --------------------------------------------------------------------- 
>> -
>> Traceback (most recent call last):
>>   File
>> "/usr/lib/python2.4/site-packages/nose-0.8.6-py2.4.egg/nose/core.py",
>> line 112, in runTest
>>     self.testFunc()
>>   File
>> "/home/mag/tmp/turbogears/turbogears/widgets/tests/
>> test_link_inclusion.py",
>> line 28, in test_table_widget_js
>>     assert 'foo.js' in output
>> AssertionError:
>> -------------------- >> begin captured stdout <<  
>> ---------------------
>> 10/Mar/2006:18:31:29 HTTP INFO Page handler: <bound method  
>> MyRoot.test
>> of <test_link_inclusion.MyRoot object at 0xb739b4ec>>
>> Traceback (most recent call last):
>>   File
>> "/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/
>> cherrypy/_cphttptools.py",
>> line 99, in _run
>>     self.main()
>>   File
>> "/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/
>> cherrypy/_cphttptools.py",
>> line 247, in main
>>     body = page_handler(*virtual_path, **self.params)
>>   File "<string>", line 3, in test
>>   File "/home/mag/tmp/turbogears/turbogears/controllers.py", line  
>> 210,
>> in expose
>>     tg_format, html, fragment, *args, **kw)
>>   File "/home/mag/tmp/turbogears/turbogears/database.py", line  
>> 219, in
>> run_with_transaction
>>     retval = func(*args, **kw)
>>   File "/home/mag/tmp/turbogears/turbogears/controllers.py", line  
>> 234,
>> in _execute_func
>>     return _process_output(tg_format, output, html, fragment)
>>   File "/home/mag/tmp/turbogears/turbogears/controllers.py", line 66,
>> in _process_output
>>     fragment=fragment)
>>   File "/home/mag/tmp/turbogears/turbogears/view/base.py", line  
>> 62, in
>> render
>>     return engine.render(info, format, fragment, template)
>>   File
>> "/usr/lib/python2.4/site-packages/TurboKid-0.9.2dev_r924-py2.4.egg/
>> turbokid/kidsupport.py",
>> line 97, in render
>>     tclass = self.load_template(template)
>>   File
>> "/usr/lib/python2.4/site-packages/TurboKid-0.9.2dev_r924-py2.4.egg/
>> turbokid/kidsupport.py",
>> line 57, in load_template
>>     "%s.kid" % basename)
>>   File
>> "/usr/lib/python2.4/site-packages/setuptools-0.6a11dev_r42684-
>> py2.4.egg/pkg_resources.py",
>> line 799, in resource_filename
>>     return get_provider 
>> (package_or_requirement).get_resource_filename(
>>   File
>> "/usr/lib/python2.4/site-packages/setuptools-0.6a11dev_r42684-
>> py2.4.egg/pkg_resources.py",
>> line 119, in get_provider
>>     __import__(moduleOrReq)
>> ImportError: No module named test_link_inclusio
>>
>> Request Headers:
>>   Host: localhost
>> localhost - - [10/Mar/2006:18:31:29] "GET /test HTTP/1.1" 500 2634
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>> <html>
>> <head>
>>     <meta http-equiv="Content-Type" content="text/html;
>> charset=utf-8"></meta>
>>     <title>500 Internal error</title>
>>     <style type="text/css">
>>     #powered_by {
>>         margin-top: 20px;
>>         border-top: 2px solid black;
>>         font-style: italic;
>>     }
>>
>>     #traceback {
>>         color: red;
>>     }
>>     </style>
>> </head>
>>     <body>
>>         <h2>500 Internal error</h2>
>>         <p>The server encountered an unexpected condition which
>> prevented it from fulfilling the request.</p>
>>         <pre id="traceback">Page handler: &lt;bound method  
>> MyRoot.test
>> of &lt;test_link_inclusion.MyRoot object at 0xb739b4ec&gt;&gt;
>> Traceback (most recent call last):
>>   File
>> "/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/
>> cherrypy/_cphttptools.py",
>> line 99, in _run
>>     self.main()
>>   File
>> "/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/
>> cherrypy/_cphttptools.py",
>> line 247, in main
>>     body = page_handler(*virtual_path, **self.params)
>>   File "&lt;string&gt;", line 3, in test
>>   File "/home/mag/tmp/turbogears/turbogears/controllers.py", line  
>> 210,
>> in expose
>>     tg_format, html, fragment, *args, **kw)
>>   File "/home/mag/tmp/turbogears/turbogears/database.py", line  
>> 219, in
>> run_with_transaction
>>     retval = func(*args, **kw)
>>   File "/home/mag/tmp/turbogears/turbogears/controllers.py", line  
>> 234,
>> in _execute_func
>>     return _process_output(tg_format, output, html, fragment)
>>   File "/home/mag/tmp/turbogears/turbogears/controllers.py", line 66,
>> in _process_output
>>     fragment=fragment)
>>   File "/home/mag/tmp/turbogears/turbogears/view/base.py", line  
>> 62, in
>> render
>>     return engine.render(info, format, fragment, template)
>>   File
>> "/usr/lib/python2.4/site-packages/TurboKid-0.9.2dev_r924-py2.4.egg/
>> turbokid/kidsupport.py",
>> line 97, in render
>>     tclass = self.load_template(template)
>>   File
>> "/usr/lib/python2.4/site-packages/TurboKid-0.9.2dev_r924-py2.4.egg/
>> turbokid/kidsupport.py",
>> line 57, in load_template
>>     "%s.kid" % basename)
>>   File
>> "/usr/lib/python2.4/site-packages/setuptools-0.6a11dev_r42684-
>> py2.4.egg/pkg_resources.py",
>> line 799, in resource_filename
>>     return get_provider 
>> (package_or_requirement).get_resource_filename(
>>   File
>> "/usr/lib/python2.4/site-packages/setuptools-0.6a11dev_r42684-
>> py2.4.egg/pkg_resources.py",
>> line 119, in get_provider
>>     __import__(moduleOrReq)
>> ImportError: No module named test_link_inclusio
>>
>> </pre>
>>     <div id="powered_by">
>>     <span>Powered by <a href="http://www.cherrypy.org";>CherryPy
>> 2.2.0beta</a></span>
>>     </div>
>>     </body>
>> </html>
>>
>>
>> --------------------- >> end captured stdout <<  
>> ----------------------
>>
>>
>> --------------------------------------------------------------------- 
>> -
>> Ran 61 tests in 2.076s
>>
>> FAILED (failures=4)
>>
>> Exception in thread Thread-1:
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
>>     self.run()
>>   File "/usr/lib/python2.4/threading.py", line 422, in run
>>     self.__target(*self.__args, **self.__kwargs)
>>   File
>> "/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/
>> cherrypy/_cpserver.py",
>> line 165, in _start_http
>>     self.httpserver.start()
>>   File
>> "/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/
>> cherrypy/_cpwsgiserver.py",
>> line 272, in start
>>     self.tick()
>>   File
>> "/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/
>> cherrypy/_cpwsgiserver.py",
>> line 278, in tick
>>     s, addr = self.socket.accept()
>>   File "/usr/lib/python2.4/socket.py", line 169, in accept
>>     sock, addr = self._sock.accept()
>> error: (11, 'Resource temporarily unavailable')
>>
>> Error in atexit._run_exitfuncs:
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
>>     func(*targs, **kargs)
>>   File "/usr/lib/python2.4/threading.py", line 632, in __exitfunc
>>     t.join()
>>   File "/usr/lib/python2.4/threading.py", line 539, in join
>>     self.__block.wait()
>>   File "/usr/lib/python2.4/threading.py", line 203, in wait
>>     waiter.acquire()
>> KeyboardInterrupt:
>> -------------------- >> begin captured stdout <<  
>> ---------------------
>> 10/Mar/2006:18:31:29 HTTP INFO Page handler: <bound method  
>> MyRoot.test
>> of <test_link_inclusion.MyRoot object at 0xb739b4ec>>
>> Traceback (most recent call last):
>>   File
>> "/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/
>> cherrypy/_cphttptools.py",
>> line 99, in _run
>>     self.main()
>>   File
>> "/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/
>> cherrypy/_cphttptools.py",
>> line 247, in main
>>     body = page_handler(*virtual_path, **self.params)
>>   File "<string>", line 3, in test
>>   File "/home/mag/tmp/turbogears/turbogears/controllers.py", line  
>> 210,
>> in expose
>>     tg_format, html, fragment, *args, **kw)
>>   File "/home/mag/tmp/turbogears/turbogears/database.py", line  
>> 219, in
>> run_with_transaction
>>     retval = func(*args, **kw)
>>   File "/home/mag/tmp/turbogears/turbogears/controllers.py", line  
>> 234,
>> in _execute_func
>>     return _process_output(tg_format, output, html, fragment)
>>   File "/home/mag/tmp/turbogears/turbogears/controllers.py", line 66,
>> in _process_output
>>     fragment=fragment)
>>   File "/home/mag/tmp/turbogears/turbogears/view/base.py", line  
>> 62, in
>> render
>>     return engine.render(info, format, fragment, template)
>>   File
>> "/usr/lib/python2.4/site-packages/TurboKid-0.9.2dev_r924-py2.4.egg/
>> turbokid/kidsupport.py",
>> line 97, in render
>>     tclass = self.load_template(template)
>>   File
>> "/usr/lib/python2.4/site-packages/TurboKid-0.9.2dev_r924-py2.4.egg/
>> turbokid/kidsupport.py",
>> line 57, in load_template
>>     "%s.kid" % basename)
>>   File
>> "/usr/lib/python2.4/site-packages/setuptools-0.6a11dev_r42684-
>> py2.4.egg/pkg_resources.py",
>> line 799, in resource_filename
>>     return get_provider 
>> (package_or_requirement).get_resource_filename(
>>   File
>> "/usr/lib/python2.4/site-packages/setuptools-0.6a11dev_r42684-
>> py2.4.egg/pkg_resources.py",
>> line 119, in get_provider
>>     __import__(moduleOrReq)
>> ImportError: No module named test_link_inclusio
>>
>> Request Headers:
>>   Host: localhost
>> localhost - - [10/Mar/2006:18:31:29] "GET /test HTTP/1.1" 500 2634
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>> <html>
>> <head>
>>     <meta http-equiv="Content-Type" content="text/html;
>> charset=utf-8"></meta>
>>     <title>500 Internal error</title>
>>     <style type="text/css">
>>     #powered_by {
>>         margin-top: 20px;
>>         border-top: 2px solid black;
>>         font-style: italic;
>>     }
>>
>>     #traceback {
>>         color: red;
>>     }
>>     </style>
>> </head>
>>     <body>
>>         <h2>500 Internal error</h2>
>>         <p>The server encountered an unexpected condition which
>> prevented it from fulfilling the request.</p>
>>         <pre id="traceback">Page handler: &lt;bound method  
>> MyRoot.test
>> of &lt;test_link_inclusion.MyRoot object at 0xb739b4ec&gt;&gt;
>> Traceback (most recent call last):
>>   File
>> "/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/
>> cherrypy/_cphttptools.py",
>> line 99, in _run
>>     self.main()
>>   File
>> "/usr/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg/
>> cherrypy/_cphttptools.py",
>> line 247, in main
>>     body = page_handler(*virtual_path, **self.params)
>>   File "&lt;string&gt;", line 3, in test
>>   File "/home/mag/tmp/turbogears/turbogears/controllers.py", line  
>> 210,
>> in expose
>>     tg_format, html, fragment, *args, **kw)
>>   File "/home/mag/tmp/turbogears/turbogears/database.py", line  
>> 219, in
>> run_with_transaction
>>     retval = func(*args, **kw)
>>   File "/home/mag/tmp/turbogears/turbogears/controllers.py", line  
>> 234,
>> in _execute_func
>>     return _process_output(tg_format, output, html, fragment)
>>   File "/home/mag/tmp/turbogears/turbogears/controllers.py", line 66,
>> in _process_output
>>     fragment=fragment)
>>   File "/home/mag/tmp/turbogears/turbogears/view/base.py", line  
>> 62, in
>> render
>>     return engine.render(info, format, fragment, template)
>>   File
>> "/usr/lib/python2.4/site-packages/TurboKid-0.9.2dev_r924-py2.4.egg/
>> turbokid/kidsupport.py",
>> line 97, in render
>>     tclass = self.load_template(template)
>>   File
>> "/usr/lib/python2.4/site-packages/TurboKid-0.9.2dev_r924-py2.4.egg/
>> turbokid/kidsupport.py",
>> line 57, in load_template
>>     "%s.kid" % basename)
>>   File
>> "/usr/lib/python2.4/site-packages/setuptools-0.6a11dev_r42684-
>> py2.4.egg/pkg_resources.py",
>> line 799, in resource_filename
>>     return get_provider 
>> (package_or_requirement).get_resource_filename(
>>   File
>> "/usr/lib/python2.4/site-packages/setuptools-0.6a11dev_r42684-
>> py2.4.egg/pkg_resources.py",
>> line 119, in get_provider
>>     __import__(moduleOrReq)
>> ImportError: No module named test_link_inclusio
>>
>> </pre>
>>     <div id="powered_by">
>>     <span>Powered by <a href="http://www.cherrypy.org";>CherryPy
>> 2.2.0beta</a></span>
>>     </div>
>>     </body>
>> </html>
>>
>>
>> --------------------- >> end captured stdout <<  
>> ----------------------
>>
>> Error in sys.exitfunc:
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
>>     func(*targs, **kargs)
>>   File "/usr/lib/python2.4/threading.py", line 632, in __exitfunc
>>     t.join()
>>   File "/usr/lib/python2.4/threading.py", line 539, in join
>>     self.__block.wait()
>>   File "/usr/lib/python2.4/threading.py", line 203, in wait
>>     waiter.acquire()
>> KeyboardInterrupt
>> [EMAIL PROTECTED] ~/tmp/turbogears/turbogears/widgets/tests $
>>
>>
>>
>
>
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to