thesadru / genshinstats

PLEASE USE GENSHIN.PY A python library that can get the stats of Genshin Impact players using Mihoyo's API. PLEASE USE GENSHIN.PY
https://thesadru.github.io/pdoc/genshinstats/
MIT License
265 stars 38 forks source link

Running setup.py install for pbkdf2 did not run successfully & redeem_code return 404 Not found #64

Closed jackthenewbie closed 2 years ago

jackthenewbie commented 2 years ago

`pip install genshinstats Collecting genshinstats Using cached genshinstats-1.4.11.3.tar.gz (46 kB) Preparing metadata (setup.py) ... done Collecting requests Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB) Collecting browser-cookie3 Using cached browser_cookie3-0.14.1-py3-none-any.whl (10 kB) Collecting pbkdf2 Using cached pbkdf2-1.3.tar.gz (6.4 kB) Preparing metadata (setup.py) ... done Collecting SecretStorage Using cached SecretStorage-3.3.2-py3-none-any.whl (15 kB) Collecting keyring Using cached keyring-23.5.1-py3-none-any.whl (33 kB) Collecting lz4 Using cached lz4-4.0.1-cp310-cp310-win_amd64.whl (98 kB) Requirement already satisfied: pyaes in c:\users\ùwú឵ ឵\appdata\local\programs\python\python310\lib\site-packages (from browser-cookie3->genshinstats) (1.6.1) Collecting pycryptodome Using cached pycryptodome-3.14.1-cp35-abi3-win_amd64.whl (1.8 MB) Collecting charset-normalizer~=2.0.0 Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB) Collecting urllib3<1.27,>=1.21.1 Using cached urllib3-1.26.9-py2.py3-none-any.whl (138 kB) Collecting idna<4,>=2.5 Using cached idna-3.3-py3-none-any.whl (61 kB) Collecting certifi>=2017.4.17 Using cached certifi-2022.5.18.1-py3-none-any.whl (155 kB) Collecting importlib-metadata>=3.6 Using cached importlib_metadata-4.11.4-py3-none-any.whl (18 kB) Requirement already satisfied: pywin32-ctypes!=0.1.0,!=0.1.1 in c:\users\ùwú឵឵\appdata\local\programs\pyth on\python310\lib\site-packages (from keyring->browser-cookie3->genshinstats) (0.2.0) Collecting cryptography>=2.0 Using cached cryptography-37.0.2-cp36-abi3-win_amd64.whl (2.4 MB) Collecting jeepney>=0.6 Using cached jeepney-0.8.0-py3-none-any.whl (48 kB)

Collecting cffi>=1.12 Using cached cffi-1.15.0-cp310-cp310-win_amd64.whl (180 kB) Collecting zipp>=0.5 Using cached zipp-3.8.0-py3-none-any.whl (5.4 kB) Collecting pycparser Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Using legacy 'setup.py install' for genshinstats, since package 'wheel' is not installed. Using legacy 'setup.py install' for pbkdf2, since package 'wheel' is not installed. Installing collected packages: pbkdf2, zipp, urllib3, pycryptodome, pycparser, lz4, jeepney, idna, charset-normalizer, certifi, requests, importlib-metadata, cffi, keyring, cryptography, SecretStorage, browser-cookie3, genshinstats Running setup.py install for pbkdf2 ... error error: subprocess-exited-with-error

× Running setup.py install for pbkdf2 did not run successfully. │ exit code: 1 ╰─> [45 lines of output] running install running build running build_py creating build creating build\lib copying pbkdf2.py -> build\lib running install_lib copying build\lib\pbkdf2.py -> C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Programs\Python\Python310\Lib\site-packages byte-compiling C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Programs\Python\Python310\Lib\site-packages\pbkdf2.py to pbkdf2.cpython-310.pyc running install_egg_info running egg_info writing pbkdf2.egg-info\PKG-INFO writing dependency_links to pbkdf2.egg-info\dependency_links.txt writing top-level names to pbkdf2.egg-info\top_level.txt reading manifest file 'pbkdf2.egg-info\SOURCES.txt' writing manifest file 'pbkdf2.egg-info\SOURCES.txt' Copying pbkdf2.egg-info to C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Programs\Python\Python310\Lib\site-packages\pbkdf2-1.3-py3.10.egg-info running install_scripts writing list of installed files to 'C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Temp\pip-record-thqcr0mq\install-record.txt' Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Temp\pip-install-vzj7976q\pbkdf2_b6503dc879294ef6acf409456519cab5\setup.py", line 13, in setup( File "C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools__init__.py", line 153, in setup return distutils.core.setup(*attrs) File "C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Programs\Python\Python310\lib\distutils\core.py", line 148, in setup dist.run_commands() File "C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Programs\Python\Python310\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py", line 61, in run return orig.install.run(self) File "C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Programs\Python\Python310\lib\distutils\command\install.py", line 592, in run self.execute(write_file, File "C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Programs\Python\Python310\lib\distutils\cmd.py", line 335, in execute util.execute(func, args, msg, dry_run=self.dry_run) File "C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Programs\Python\Python310\lib\distutils\util.py", line 305, in execute func(args) File "C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Programs\Python\Python310\lib\distutils\file_util.py", line 236, in write_file f.write(line + "\n") File "C:\Users\ÙwÚ\u17b5\u17b5\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 12-13: character maps to [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

× Encountered error while trying to install package. ╰─> pbkdf2

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available. You should consider upgrading via the 'C:\Users\ÙwÚ឵឵ \AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.`

thesadru commented 2 years ago

Try pip install genshinstats --no-deps

jackthenewbie commented 2 years ago

Try pip install genshinstats --no-deps

ok thanks, it works. :v can you help me another one? redeem_code return 404 Client error: Not found, something relate to api thingy