# Tryton 6.0 client requires pygtkcompat

**URL:** <https://discuss.tryton.org/t/tryton-6-0-client-requires-pygtkcompat/4161>\
**Category:** System Administrator\
**Created:** [May 7, 2021, 3:11pm UTC](https://discuss.tryton.org/t/tryton-6-0-client-requires-pygtkcompat/4161 "2021-05-07T15:11:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![coogor](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/coogor/32/47_2.png) [@coogor](https://discuss.tryton.org/u/coogor)\
**Post date:** [May 7, 2021, 3:11pm UTC](https://discuss.tryton.org/t/tryton-6-0-client-requires-pygtkcompat/4161/1 "2021-05-07T15:11:27Z")

</div>

I have installed Tryton 6.0 client via pip3 on a fresh Tumbleweed system and MATE desktop, Python 3.8.8

When attempting to connect to the demo server it crashes with:  
ModuleNotFoundError: No module named ‘pygtkcompat’

As this was an issue for Tryton 5.0 ([Why does Tryton still needs pygtkcompat library? - #13 by ced](https://discuss.tryton.org/t/why-does-tryton-still-needs-pygtkcompat-library/1608/13)), I seem to remember that full Python3/GTK3 compatibility was planned for Tryton 5.2?

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [May 10, 2021, 6:54am UTC](https://discuss.tryton.org/t/tryton-6-0-client-requires-pygtkcompat/4161/2 "2021-05-10T06:54:53Z")

</div>

> [@coogor](#):
>
> I seem to remember that full Python3/GTK3 compatibility was planned for Tryton 5.2?

A quick search on the CHANGELOG of the tryton client let me to this changeset:

[https://hg.tryton.org/tryton/rev/3cb5828e5ec2/](https://hg.tryton.org/tryton/rev/3cb5828e5ec2/)

Which landed on tryton 5.2.

But there is still some code there to avoid dulication of generictree. This was alredy explained on your linked topic:

> [@Why does Tryton still needs pygtkcompat library?](https://discuss.tryton.org/t/why-does-tryton-still-needs-pygtkcompat-library/1608/8):
>
> I already explained:
> 
> It is [done on purpose](https://bugs.tryton.org/issue8489) to not duplicate generictreemodel.py.

---

<div class="post-metadata">

**Author:** ![coogor](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/coogor/32/47_2.png) [@coogor](https://discuss.tryton.org/u/coogor)\
**Post date:** [May 10, 2021, 2:01pm UTC](https://discuss.tryton.org/t/tryton-6-0-client-requires-pygtkcompat/4161/3 "2021-05-10T14:01:17Z")

</div>

First of all - please dont edit my postings. Its not an admin thing, its a development issue

> [@Why does Tryton still needs pygtkcompat library?](https://discuss.tryton.org/t/why-does-tryton-still-needs-pygtkcompat-library/1608/8):
>
> > [@coogor](#):
> >
> > I seem to remember that full Python3/GTK3 compatibility was planned for Tryton 5.2?
> 
> A quick search on the CHANGELOG of the tryton client let me to this changeset:
> 
> [https://hg.tryton.org/tryton/rev/3cb5828e5ec2/](https://hg.tryton.org/tryton/rev/3cb5828e5ec2/)
> 
> Which landed on tryton 5.2.
> 
> But there is still some code there to avoid dulication of generictree. This was alredy explained on your linked topic:
> 
> > [@Why does Tryton still needs pygtkcompat library?](https://discuss.tryton.org/t/why-does-tryton-still-needs-pygtkcompat-library/1608/8):
> >
> > I already explained:
> > 
> > It is [done on purpose](https://bugs.tryton.org/issue8489) to not duplicate generictreemodel.py.

So for how long do you plan to stick with this deprecated function?

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [May 10, 2021, 2:04pm UTC](https://discuss.tryton.org/t/tryton-6-0-client-requires-pygtkcompat/4161/4 "2021-05-10T14:04:41Z")

</div>

> [@coogor](#):
>
> So for how long do you plan to stick with this deprecated function?

Until anyone provides a good solution for it. This is free software, feel free to [provide a patch](https://www.tryton.org/develop) if you have one.

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [May 10, 2021, 2:19pm UTC](https://discuss.tryton.org/t/tryton-6-0-client-requires-pygtkcompat/4161/5 "2021-05-10T14:19:20Z")

</div>

> [@coogor](#):
>
> So for how long do you plan to stick with this deprecated function?

For ever because it is not deprecated but a class to [ease implementing Gtk.TreeModel interface in Python](https://gitlab.gnome.org/GNOME/pygobject/-/blob/master/pygtkcompat/generictreemodel.py#L75) and because there is no point to have to maintain ourselve such tool.

---

<div class="post-metadata">

**Author:** ![coogor](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/coogor/32/47_2.png) [@coogor](https://discuss.tryton.org/u/coogor)\
**Post date:** [May 12, 2021, 11:52am UTC](https://discuss.tryton.org/t/tryton-6-0-client-requires-pygtkcompat/4161/6 "2021-05-12T11:52:33Z")

</div>

> [@pokoli](#):
>
> > [@coogor](#):
> >
> > So for how long do you plan to stick with this deprecated function?
> 
> Until anyone provides a good solution for it. This is free software, feel free to [provide a patch](https://www.tryton.org/develop) if you have one.

For me [Welcome - openSUSE Build Service](https://build.opensuse.org/package/view_file/home:DocB:branches:devel:languages:python/tryton/000-pygtkcompat.diff?expand=1) works quite well

---

<div class="post-metadata">

**Author:** ![coogor](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/coogor/32/47_2.png) [@coogor](https://discuss.tryton.org/u/coogor)\
**Post date:** [May 12, 2021, 11:54am UTC](https://discuss.tryton.org/t/tryton-6-0-client-requires-pygtkcompat/4161/7 "2021-05-12T11:54:06Z")

</div>

> [@ced](#):
>
> … because there is no point to have to maintain ourselve such tool.

I missed that statement on Rietveld…

---

<div class="post-metadata">

**Author:** ![coogor](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/coogor/32/47_2.png) [@coogor](https://discuss.tryton.org/u/coogor)\
**Post date:** [June 11, 2021, 11:54am UTC](https://discuss.tryton.org/t/tryton-6-0-client-requires-pygtkcompat/4161/9 "2021-06-11T11:54:35Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
