Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737952 - games-util/nml-0.4.5-r2 with Python 3.8 - nmlc: An internal error has occurred: Location: File "/usr/lib/python3.8/site-packages/nml/generic.py", line 332, in print_progress
Summary: games-util/nml-0.4.5-r2 with Python 3.8 - nmlc: An internal error has occurre...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-18 21:21 UTC by Matthew Smith
Modified: 2020-08-19 15:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
games-misc/opengfx-0.5.5 build log (build.log,8.88 KB, text/plain)
2020-08-18 21:21 UTC, Matthew Smith
Details
emerge --info '=games-misc/opengfx-0.5.5::gentoo' (emerge-info.txt,6.31 KB, text/plain)
2020-08-18 21:22 UTC, Matthew Smith
Details
/var/tmp/portage/games-misc/opengfx-0.5.5/temp/environment (environment,19.39 KB, text/plain)
2020-08-18 21:22 UTC, Matthew Smith
Details
nml-0.4.5-py38.patch (nml-0.4.5-py38.patch,1.25 KB, patch)
2020-08-18 21:32 UTC, Matthew Smith
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Smith gentoo-dev 2020-08-18 21:21:06 UTC
games-util/nml-0.4.5-r2 tries to call `time.clock()` which was removed in Python 3.8. This prevents other packages like games-misc/opengfx-0.5.5 from installing.

Upstream bug: https://github.com/OpenTTD/nml/issues/52
Upstream fix: https://github.com/OpenTTD/nml/commit/5b8764c3c4079941fab7be8d9086c38a88ae09ba

The fix is included in version 0.5.0 so I think a bump to the latest version will fix.
Comment 1 Matthew Smith gentoo-dev 2020-08-18 21:21:57 UTC
Created attachment 655422 [details]
games-misc/opengfx-0.5.5 build log
Comment 2 Matthew Smith gentoo-dev 2020-08-18 21:22:23 UTC
Created attachment 655424 [details]
emerge --info '=games-misc/opengfx-0.5.5::gentoo'
Comment 3 Matthew Smith gentoo-dev 2020-08-18 21:22:55 UTC
Created attachment 655426 [details]
/var/tmp/portage/games-misc/opengfx-0.5.5/temp/environment
Comment 4 Matthew Smith gentoo-dev 2020-08-18 21:31:44 UTC
If a version bump is not possible for whatever reason, the copying the fix patch into /etc/portage/patches/games-util/nml worked just fine for me. I can now get back to my virtual train network :)
Comment 5 Matthew Smith gentoo-dev 2020-08-18 21:32:07 UTC
Created attachment 655428 [details, diff]
nml-0.4.5-py38.patch
Comment 6 Larry the Git Cow gentoo-dev 2020-08-19 15:15:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ecc289ab2ee1552247fe2b9d8f12d6476569398

commit 3ecc289ab2ee1552247fe2b9d8f12d6476569398
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2020-08-19 15:13:42 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2020-08-19 15:14:35 +0000

    games-util/nml: bump to version 0.5.2
    
    Closes: https://bugs.gentoo.org/737952
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 games-util/nml/Manifest         |  1 +
 games-util/nml/nml-0.5.2.ebuild | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51fc11f34550b7a4002669bfca90c52aa9541249

commit 51fc11f34550b7a4002669bfca90c52aa9541249
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2020-08-19 15:11:28 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2020-08-19 15:14:27 +0000

    games-util/nml: fix python3.8 support
    
    Bug: https://bugs.gentoo.org/737952
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 games-util/nml/files/nml-0.4.5-python38.patch | 37 +++++++++++++++++++++++++++
 games-util/nml/nml-0.4.5-r2.ebuild            |  1 +
 2 files changed, 38 insertions(+)