Open psychosopher opened 4 years ago
Same Issue, cannot install. Have tried python 3.7.6, 3.8.1, and 3.5.2
Same same. Have no clue
I get this error:
ERROR: Command errored out with exit status 1: command: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\alanw\\AppData\\Local\\Temp\\pip-install-pjlll9ou\\csgo-demoparser\\setup.py'"'"'; __file__='"'"'C:\\Users\\alanw\\AppData\\Local\\Temp\\pip-install-pjlll9ou\\csgo-demoparser\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\alanw\AppData\Local\Temp\pip-record-k5jxtz4o\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\alanw\AppData\Roaming\Python\Python38\Include\csgo-demoparser' cwd: C:\Users\alanw\AppData\Local\Temp\pip-install-pjlll9ou\csgo-demoparser\ Complete output (47 lines): WARNING: The wheel package is not available. running install [pbr] Generating AUTHORS [pbr] AUTHORS complete (0.1s) running build running build_py Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\alanw\AppData\Local\Temp\pip-install-pjlll9ou\csgo-demoparser\setup.py", line 28, in <module> setup( File "C:\Users\alanw\AppData\Roaming\Python\Python38\site-packages\setuptools\__init__.py", line 161, in setup return distutils.core.setup(**attrs) File "c:\program files\python38\lib\distutils\core.py", line 148, in setup dist.run_commands() File "c:\program files\python38\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\alanw\appdata\local\temp\pip-install-pjlll9ou\csgo-demoparser\.eggs\pbr-5.4.5-py3.8.egg\pbr\packaging.py", line 243, in run return du_install.install.run(self) File "c:\program files\python38\lib\distutils\command\install.py", line 545, in run self.run_command('build') File "c:\program files\python38\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\program files\python38\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "c:\program files\python38\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\program files\python38\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Users\alanw\AppData\Local\Temp\pip-install-pjlll9ou\csgo-demoparser\demoparser\_setup_hooks.py", line 21, in run self.protoc() File "C:\Users\alanw\AppData\Local\Temp\pip-install-pjlll9ou\csgo-demoparser\demoparser\_setup_hooks.py", line 12, in protoc subprocess.run([ File "c:\program files\python38\lib\subprocess.py", line 489, in run with Popen(*popenargs, **kwargs) as process: File "c:\program files\python38\lib\subprocess.py", line 854, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "c:\program files\python38\lib\subprocess.py", line 1247, in _execute_child args = list2cmdline(args) File "c:\program files\python38\lib\subprocess.py", line 549, in list2cmdline for arg in map(os.fsdecode, seq): File "c:\program files\python38\lib\os.py", line 818, in fsdecode filename = fspath(filename) # Does type-checking of
filename`.
TypeError: expected str, bytes or os.PathLike object, not NoneTypeERROR: Command errored out with exit status 1: 'c:\program files\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\alanw\AppData\Local\Temp\pip-install-pjlll9ou\csgo-demoparser\setup.py'"'"'; file='"'"'C:\Users\alanw\AppData\Local\Temp\pip-install-pjlll9ou\csgo-demoparser\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\alanw\AppData\Local\Temp\pip-record-k5jxtz4o\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\alanw\AppData\Roaming\Python\Python38\Include\csgo-demoparser' Check the logs for full command output.`
Has anyone managed to solve this in the meanwhile?
Have you guys tried this fix? It worked for me
sudo apt-get install protobuf-compiler
Hi, I was really excited to find a python package to parse CS:GO demo But I met some troubling problems installing the package.
First I tried
pip install csgo-demoparser
And I got errors:
Then I tried
And I got:
I tried to directly run the file "setup.py" but I got:
I updated pbr and other packages but same thing happened.
I also tried to execute this in the downloaded directory
but errors occured executing the second line
I tried to solve the problems for a few days but got little progress, which made me upset. I use Python 3.6.8. I really need some help. (´・ω・`)