Page 1 of 1

[SOLVED] Module platform error with LINUX package

Published: June 28, 2021 - 11:20
by Pierrehenry
Hello,

I tried to install packages on a Linux PC after registering it on the server.
During the installation, I encountered an error with the `platform` module and the `linux_distribution` attribute.
I replaced the `platform` module with the `distro` module, and the installation went smoothly.
I don't know if others have experienced the same problem and if this is the correct solution.

AttributeError: module 'platform' has no attribute 'linux_distribution'
AttributeError: module 'platform' has no attribute 'linux_distribution'

Package: VLC and Anydesk
Linux Version: Ubuntu 20.04
WAPT Version 2.0 9428 Enterprise

Re: Module platform error with LINUX package

Published: June 30, 2021 - 10:33
by dcardon
Hi Pierrehenry,
yes, with the switch to Python 3.8, the linux_distribution() function was moved from the platform module to the distro module... We fixed it in the latest build and I'll be pushing it to the nightly build soon.
Denis

Re: Module platform error with LINUX package

Published: July 7, 2021 - 5:10 PM
by dcardon
This will be fixed in the upcoming version 2.1, which should be released soon.
Denis

Re: [SOLVED] Platform module error with LINUX package

Published: Dec 9, 2021 - 6:01 PM
by sparda53
Hello,
I have the same problem with version 2.1, which I recently installed.
Do I still need to make the change manually?
Regards