f0rkz / pysteamcmd

Python package to install and utilize steamcmd
MIT License
12 stars 7 forks source link

Not python 3 compatible because of urllib.urlretrieve #3

Closed jarviscodes closed 4 years ago

jarviscodes commented 5 years ago

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.

jarviscodes commented 4 years ago

Closing.