Closed jarviscodes closed 4 years ago
When calling steamcmd.install() on a python3 installation, we receive the following error message:
steamcmd.install()
In [10]: steamcmd.install() Out[10]: pysteamcmd.steamcmd.SteamcmdException()
In [10]: steamcmd.install()
Out[10]: pysteamcmd.steamcmd.SteamcmdException()
In [11]: str(steamcmd.install()) Out[11]: '"An unknown exception occurred! module \'urllib\' has no attribute \'urlretrieve\'"'
In [11]: str(steamcmd.install())
Out[11]: '"An unknown exception occurred! module \'urllib\' has no attribute \'urlretrieve\'"'
urllib.urlretrieve no longer exists in Python 3.
urllib.urlretrieve
I've implemented a simple check in https://github.com/f0rkz/pysteamcmd/pull/2 to import the correct library.
Closing.
Problem
When calling
steamcmd.install()
on a python3 installation, we receive the following error message:In [10]: steamcmd.install()
Out[10]: pysteamcmd.steamcmd.SteamcmdException()
In [11]: str(steamcmd.install())
Out[11]: '"An unknown exception occurred! module \'urllib\' has no attribute \'urlretrieve\'"'
Cause
urllib.urlretrieve
no longer exists in Python 3.Solution
I've implemented a simple check in https://github.com/f0rkz/pysteamcmd/pull/2 to import the correct library.