[prev in list] [next in list] [prev in thread] [next in thread] 

List:       trac
Subject:    [Trac] Re: AttributeError: 'Environment' object has no attribute 'get_db_cnx'
From:       ivanelson <ivanelsonnunes () gmail ! com>
Date:       2017-02-20 12:53:49
Message-ID: 2a0cc493-270f-4095-b659-08e239f76ad0 () googlegroups ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Solved! Thank you.


Em sábado, 18 de fevereiro de 2017 16:13:55 UTC-3, RjOllos escreveu:
> 
> 
> 
> On Friday, February 17, 2017 at 5:36:02 PM UTC-8, ivanelson wrote:
> > 
> > After upgrading to version 1.2. I'm having this error while trying to 
> > create a ticket:
> > 
> > > 
> > > 2017-02-17 21:57:16,946 Trac[main] ERROR: Internal Server Error: 
> > > <RequestWithSession "GET '/newticket'">, referrer '
> > > http://sistemas.claudinosa.com.br/timeline'
> > > Traceback (most recent call last):
> > > File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 613, in 
> > > _dispatch_request
> > > dispatcher.dispatch(req)
> > > File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 263, in 
> > > dispatch
> > > self._post_process_request(req, *resp)
> > > File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 444, in 
> > > _post_process_request
> > > resp = f.post_process_request(req, *resp[:-1])
> > > File 
> > > "/usr/local/lib/python2.7/dist-packages/TracSubTicketsPlugin-0.2.0.dev_20130618-py2.7.egg/tracsubtickets/web_ui.py", \
> > >  line 73, in post_process_request
> > > children = self.get_children(ticket.id)
> > > File 
> > > "/usr/local/lib/python2.7/dist-packages/TracSubTicketsPlugin-0.2.0.dev_20130618-py2.7.egg/tracsubtickets/web_ui.py", \
> > >  line 104, in get_children
> > > db = self.env.get_db_cnx()
> > > *AttributeError: 'Environment' object has no attribute 'get_db_cnx'*
> > 
> > 
> > It looks like something on the plugin side. However, it seems that no one 
> > has opened a [1] ticket for the plugin fix.
> > 
> > [1] https://trac.edgewall.org/ticket/12334 
> > 
> > Best regards.
> > 
> 
> The issue is fixed in the repository. Try installing from master of:
> https://github.com/trac-hacks/trac-subtickets-plugin
> 
> - Ryan
> 
> 

-- 
You received this message because you are subscribed to the Google Groups "Trac \
Users" group. To unsubscribe from this group and stop receiving emails from it, send \
an email to trac-users+unsubscribe@googlegroups.com. To post to this group, send \
email to trac-users@googlegroups.com. Visit this group at \
https://groups.google.com/group/trac-users. For more options, visit \
https://groups.google.com/d/optout.


[Attachment #5 (text/html)]

<div dir="ltr"><div>Solved! Thank you.</div><div><br></div><br>Em sábado, 18 de \
fevereiro de 2017 16:13:55 UTC-3, RjOllos  escreveu:<blockquote class="gmail_quote" \
style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: \
1ex;"><div dir="ltr"><br><br>On Friday, February 17, 2017 at 5:36:02 PM UTC-8, \
ivanelson wrote:<blockquote class="gmail_quote" \
style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
dir="ltr"><div><div>After upgrading to version 1.2. I&#39;m having this error while \
trying to create a ticket:</div><blockquote class="gmail_quote" style="margin:0px 0px \
0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br><font \
color="#000000" face="courier new, monospace" \
style="background-color:rgb(207,226,243)">2017-02-17 21:57:16,946 Trac[main] ERROR: \
Internal Server Error: &lt;RequestWithSession &quot;GET \
&#39;/newticket&#39;&quot;&gt;, referrer &#39;<a \
href="http://sistemas.claudinosa.com.br/timeline" rel="nofollow" target="_blank" \
onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsistemas.claud \
inosa.com.br%2Ftimeline\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH1bb36NG3eWY8-1Pl9wA7SFZB_qQ&#39;;return \
true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fsistemas.cl \
audinosa.com.br%2Ftimeline\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH1bb36NG3eWY8-1Pl9wA7SFZB_qQ&#39;;return \
true;">http://sistemas.claudinosa.<wbr>com.br/timeline</a>&#39;<br>Traceback (most \
recent call last):<br>   File \
&quot;build/bdist.linux-x86_64/egg/<wbr>trac/web/main.py&quot;, line 613, in \
_dispatch_request<br>      dispatcher.dispatch(req)<br>   File \
&quot;build/bdist.linux-x86_64/egg/<wbr>trac/web/main.py&quot;, line 263, in \
dispatch<br>      self._post_process_request(<wbr>req, *resp)<br>   File \
&quot;build/bdist.linux-x86_64/egg/<wbr>trac/web/main.py&quot;, line 444, in \
_post_process_request<br>      resp = f.post_process_request(req, *resp[:-1])<br>   \
File &quot;/usr/local/lib/python2.7/<wbr>dist-packages/<wbr>TracSubTicketsPlugin-0.2.0.<wbr>dev_20130618-py2.7.egg/<wbr>tracsubtickets/web_ui.py&quot;, \
line 73, in post_process_request<br>      children = self.get_children(<a \
href="http://ticket.id" rel="nofollow" target="_blank" \
onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fticket.id\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGX41dJJAZzGPKZJIihq1UdD126Cg&#39;;return \
true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fticket.id\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGX41dJJAZzGPKZJIihq1UdD126Cg&#39;;return \
true;">ticket.id</a>)<br>   File \
&quot;/usr/local/lib/python2.7/<wbr>dist-packages/<wbr>TracSubTicketsPlugin-0.2.0.<wbr>dev_20130618-py2.7.egg/<wbr>tracsubtickets/web_ui.py&quot;, \
line 104, in get_children<br>      db = self.env.get_db_cnx()<br><b>AttributeError: \
&#39;Environment&#39; object has no attribute \
&#39;get_db_cnx&#39;</b></font></blockquote></div><div><br></div><div><div>It looks \
like something on the plugin side. However, it seems that no one has opened a [1] \
ticket for the plugin fix.</div></div><div><br></div><div>[1] <a \
href="https://trac.edgewall.org/ticket/12334" rel="nofollow" target="_blank" \
onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftrac.edgewal \
l.org%2Fticket%2F12334\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFIji0Tbx2TkBF4am14G2-F7LQjRg&#39;;return \
true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Ftrac.edge \
wall.org%2Fticket%2F12334\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFIji0Tbx2TkBF4am14G2-F7LQjRg&#39;;return \
true;">https://trac.edgewall.org/<wbr>ticket/12334</a>  \
</div><div><br></div><div>Best \
regards.</div></div></blockquote><div><br></div><div>The issue is fixed in the \
repository. Try installing from master of:</div><div><a \
href="https://github.com/trac-hacks/trac-subtickets-plugin" target="_blank" \
rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F \
%2Fgithub.com%2Ftrac-hacks%2Ftrac-subtickets-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHe1luGNWiYbSUwQJO-QzrD2lG7ew&#39;;return \
true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.co \
m%2Ftrac-hacks%2Ftrac-subtickets-plugin\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHe1luGNWiYbSUwQJO-QzrD2lG7ew&#39;;return \
true;">https://github.com/trac-hacks/<wbr>trac-subtickets-plugin</a></div><div><br></div><div>- \
Ryan</div><div>  </div></div></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &quot;Trac \
Users&quot; group.<br /> To unsubscribe from this group and stop receiving emails \
from it, send an email to <a \
href="mailto:trac-users+unsubscribe@googlegroups.com">trac-users+unsubscribe@googlegroups.com</a>.<br \
/> To post to this group, send email to <a \
href="mailto:trac-users@googlegroups.com">trac-users@googlegroups.com</a>.<br /> \
Visit this group at <a \
href="https://groups.google.com/group/trac-users">https://groups.google.com/group/trac-users</a>.<br \
/> For more options, visit <a \
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br \
/>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic