[Trac] Re: AttributeError: 'Environment' object has no attribute 'get_db_cnx'

2024-04-04 Thread Jesus Megia
Great!.

Thanks a lot Ryan for your quick answer. At the end this is working 
properly.

I'm going to configure it for the post-commit hook.

Best regards

El jueves, 21 de marzo de 2024 a las 18:43:06 UTC+1, RjOllos escribió:

> On Thursday, March 21, 2024 at 8:01:06 AM UTC-7 jesus...@gmail.com wrote:
>
> Hello,
>
> I'm updating the trac version on my company from version 0.11 to 1.6. 
> Everything is working fine except the trac-pre-commit-hook which show me 
> this error message:
>
> * AttributeError: 'Environment' object has no attribute 'get_db_cnx'*
>
> I have tried different pyton trac-pre-commit-hook versions but all of them 
> give me the same output.
>
> Can you help me to try to solve the problem?
>
> Thans in advance.
>
>
> Suggest using this one: 
> https://trac.edgewall.org/browser/tags/trac-1.6/contrib/trac-pre-commit-hook
>
> If you continue to have an issue the problem may be from a plugin. 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/768d75bc-2e4a-4f88-b493-5a4958b518bbn%40googlegroups.com.


[Trac] Re: AttributeError: 'Environment' object has no attribute 'get_db_cnx'

2024-03-21 Thread RjOllos


On Thursday, March 21, 2024 at 8:01:06 AM UTC-7 jesus...@gmail.com wrote:

Hello,

I'm updating the trac version on my company from version 0.11 to 1.6. 
Everything is working fine except the trac-pre-commit-hook which show me 
this error message:

* AttributeError: 'Environment' object has no attribute 'get_db_cnx'*

I have tried different pyton trac-pre-commit-hook versions but all of them 
give me the same output.

Can you help me to try to solve the problem?

Thans in advance.


Suggest using this 
one: 
https://trac.edgewall.org/browser/tags/trac-1.6/contrib/trac-pre-commit-hook

If you continue to have an issue the problem may be from a plugin. 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/221012d5-795f-4180-89e9-b5a366fc5d5bn%40googlegroups.com.


[Trac] Re: AttributeError: 'Environment' object has no attribute 'get_db_cnx'

2017-02-20 Thread ivanelson
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: 
>>> , 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+unsubscr...@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.


[Trac] Re: AttributeError: 'Environment' object has no attribute 'get_db_cnx'

2017-02-18 Thread RjOllos


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: 
>> , 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+unsubscr...@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.