russelg / PySteam

Python interface for Steam web chat.
Other
13 stars 4 forks source link

Errors with assignments, attributes and login #2

Closed benstigsen closed 7 years ago

benstigsen commented 7 years ago

The first to lines of my code are

import steamapi as SteamAPI (won't work when i type "as SteamAPI")

steam = SteamAPI.steamAPI() (an error happens here saying steamapi has no attribute named SteamAPI

Then the next part is:

UserLogin = input('Username: ')
UserPassLogin = input('Password: ')

(works fine)

But then i come to this: status = steam.login(username=UserLogin, password=UserPassLogin) (Again steam.login doesn't work since the assignment "steam = SteamAPI.steamAPI()" didn't work) Everything after that doesn't work because of missing attributes and assignment failure capture

russelg commented 7 years ago

Should be:

import steamapi

steam = steamapi.SteamAPI()

Capitalization matters very much so.

benstigsen commented 7 years ago

If i write:

import steamapi

steam = steamapi.SteamAPI

("steamapi has no attribute named SteamAPI")

and if i write: import steamapi as SteamAPI (An error happens here aswell)

russelg commented 7 years ago

2017-01-03-081325_747x504_scrot (This was a fresh clone of the git repo)

Please check you've got the latest version and try again. The problem is on your side, not my package's side.