Giter VIP home page Giter VIP logo

steam-ext-csgo's People

Contributors

gobot1234 avatar jamikettunen avatar pstryczke avatar somespecialone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

steam-ext-csgo's Issues

ModuleNotFoundError: No module named 'steam.protobufs.msg'

Traceback (most recent call last):
File "d:\Dev\Repos\medal-bot\testing python\main.py", line 6, in
from steam.ext import commands, csgo
File "D:\Dev\Repos\medal-bot\testing python\venv\Lib\site-packages\steam\ext\csgo_init_.py", line 10, in
from .backpack import *
File "D:\Dev\Repos\medal-bot\testing python\venv\Lib\site-packages\steam\ext\csgo\backpack.py", line 22, in
from .protobufs import base, econ, struct_messages
File "D:\Dev\Repos\medal-bot\testing python\venv\Lib\site-packages\steam\ext\csgo\protobufs_init_.py", line 7, in
from ....protobufs.msg import GCProtobufMessage
ModuleNotFoundError: No module named 'steam.protobufs.msg'

well... ๐Ÿ˜‚

TODO

  • Set up protobufs and base framework.
  • SO messages. These need testing.
  • Examples, README and setup.py.
  • Matches.

Optional fields in proto massages

Hi! I see that in cstrike15_gcmessages.proto or cstrike15_gcmessages.proto in node-csgo fields are optional, but there in generated protobufs not.

It not so scary, but a few problems arrives:

  1. Noisy info in inspected items(empty fields with zero value);
  2. It is not possible to distinguish item with stattrek and another quality from non-stattrek item.

You can see second problem in csgofloat-inspect:

// Patch for items that are stattrak and unusual (ex. Stattrak Karambit)
if (iteminfo.killeatervalue !== null && iteminfo.quality !== 9) {
    name += `${this.csgo_english['strange']} `;
}

I think i can monkey patch this in my code, but decided to tell you about problems, thanks!

Problem with install

Hello. I can't install this ext. Can you help?

Collecting steam-ext-csgo@ git+https://github.com/Gobot1234/steam-ext-csgo@main
  Cloning https://github.com/Gobot1234/steam-ext-csgo (to revision main) to /private/var/folders/56/m1nqtvws3vx24gy0_yzn_w300000gn/T/pip-install-ak0_0um8/steam-ext-csgo_0315336f28314a959d035229c738a736
  Running command git clone --filter=blob:none --quiet https://github.com/Gobot1234/steam-ext-csgo /private/var/folders/56/m1nqtvws3vx24gy0_yzn_w300000gn/T/pip-install-ak0_0um8/steam-ext-csgo_0315336f28314a959d035229c738a736
  Resolved https://github.com/Gobot1234/steam-ext-csgo to commit 95586d8b567b5dfc92e0cf1b54e3ae8824c97139
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  ร— Preparing metadata (pyproject.toml) did not run successfully.
  โ”‚ exit code: 1
  โ•ฐโ”€> [14 lines of output]
      Traceback (most recent call last):
        File "/Users/nikitty/Desktop/git/steambot/env/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/Users/nikitty/Desktop/git/steambot/env/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/nikitty/Desktop/git/steambot/env/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "/private/var/folders/56/m1nqtvws3vx24gy0_yzn_w300000gn/T/pip-build-env-mtunq753/overlay/lib/python3.9/site-packages/poetry/core/masonry/api.py", line 43, in prepare_metadata_for_build_wheel
          poetry = Factory().create_poetry(Path(".").resolve(), with_dev=False)
        File "/private/var/folders/56/m1nqtvws3vx24gy0_yzn_w300000gn/T/pip-build-env-mtunq753/overlay/lib/python3.9/site-packages/poetry/core/factory.py", line 43, in create_poetry
          raise RuntimeError("The Poetry configuration is invalid:\n" + message)
      RuntimeError: The Poetry configuration is invalid:
        - Additional properties are not allowed ('group' was unexpected)
      
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

ร— Encountered error while generating package metadata.
โ•ฐโ”€> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

ModuleNotFoundError: No module named 'steam.app'

I tried to run the example script in (/examples) but got the following error: ModuleNotFoundError: No module named 'steam.app'

File "d:\Dev\Repos\medal-bot\testing python\main.py", line 6, in
from steam.ext import commands, csgo
File "D:\Dev\Repos\medal-bot\testing python\venv\Lib\site-packages\steam\ext\csgo_init_.py", line 11, in
from .client import *
File "D:\Dev\Repos\medal-bot\testing python\venv\Lib\site-packages\steam\ext\csgo\client.py", line 15, in
from ...app import CSGO

I looked through the library code and found out ...app (app.py I'm assuming) is nowhere to be found?

I installed the lib in a venv.

Am I missing something?

ImportError: cannot import name 'SteamID' from 'steam.abc'

So after the last patch you did a new import error came up.

(Still using the example script)

Traceback (most recent call last):
File "d:\Dev\Repos\medal-bot\testing python\main.py", line 6, in
from steam.ext import commands, csgo
File "D:\Dev\Repos\medal-bot\testing python\venv\Lib\site-packages\steam\ext\csgo_init_.py", line 11, in
from .client import *
File "D:\Dev\Repos\medal-bot\testing python\venv\Lib\site-packages\steam\ext\csgo\client.py", line 13, in
from ...abc import Message, SteamID
ImportError: cannot import name 'SteamID' from 'steam.abc' (D:\Dev\Repos\medal-bot\testing python\venv\Lib\site-packages\steam\abc.py)

Am I missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.