Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing tensorboardX #53

Closed
praeludiumOrbis opened this issue May 9, 2020 · 11 comments
Closed

Error installing tensorboardX #53

praeludiumOrbis opened this issue May 9, 2020 · 11 comments

Comments

@praeludiumOrbis
Copy link

praeludiumOrbis commented May 9, 2020

Hey, I'm sorry if this is a stupid question as I'm new to programming/GitHub generally and I don't even know if it's correct to ask it here, I just hope I'll be able to get help here since I really want to use Jukebox.

I was following the installation instructions precisely, but I don't seem to be able to install tensorboardX, this is the output I get when trying to install it. (Linked in case the file upload doesn't work)

Cheers
tensorboardX_installation_error.txt

@DeRobyJ
Copy link

DeRobyJ commented May 9, 2020

I've got the same error on windows

I tried doing all the pip installs as admin, with the conda prompt, and I got that same error.


Edit: saw this #50 (comment)
I might try it later

@kman1898
Copy link

having the same issue

(jukebox) C:\Users\Matt Knotts\jukebox>pip install ./tensorboardX
Processing c:\users\matt knotts\jukebox\tensorboardx
Requirement already satisfied: numpy in c:\anaconda3\lib\site-packages (from tensorboardX==1.8) (1.18.1)
Requirement already satisfied: protobuf>=3.6.1 in c:\anaconda3\lib\site-packages (from tensorboardX==1.8) (3.11.3)
Requirement already satisfied: six in c:\users\matt knotts\appdata\roaming\python\python37\site-packages (from tensorboardX==1.8) (1.14.0)
Requirement already satisfied: setuptools in c:\anaconda3\lib\site-packages (from protobuf>=3.6.1->tensorboardX==1.8) (45.2.0.post20200210)
Building wheels for collected packages: tensorboardX
Building wheel for tensorboardX (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-k0ym7ecz\setup.py'"'"'; file='"'"'C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-k0ym7ecz\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\MATTKN1\AppData\Local\Temp\pip-wheel-t9w3f9eb'
cwd: C:\Users\MATTKN
1\AppData\Local\Temp\pip-req-build-k0ym7ecz
Complete output (106 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\tensorboardX
copying tensorboardX\caffe2_graph.py -> build\lib\tensorboardX
copying tensorboardX\crc32c.py -> build\lib\tensorboardX
copying tensorboardX\embedding.py -> build\lib\tensorboardX
copying tensorboardX\event_file_writer.py -> build\lib\tensorboardX
copying tensorboardX\onnx_graph.py -> build\lib\tensorboardX
copying tensorboardX\proto_graph.py -> build\lib\tensorboardX
copying tensorboardX\pytorch_graph.py -> build\lib\tensorboardX
copying tensorboardX\record_writer.py -> build\lib\tensorboardX
copying tensorboardX\summary.py -> build\lib\tensorboardX
copying tensorboardX\torchvis.py -> build\lib\tensorboardX
copying tensorboardX\utils.py -> build\lib\tensorboardX
copying tensorboardX\visdom_writer.py -> build\lib\tensorboardX
copying tensorboardX\writer.py -> build\lib\tensorboardX
copying tensorboardX\x2num.py -> build\lib\tensorboardX
copying tensorboardX_init_.py -> build\lib\tensorboardX
running egg_info
creating tensorboardX.egg-info
writing tensorboardX.egg-info\PKG-INFO
writing dependency_links to tensorboardX.egg-info\dependency_links.txt
writing requirements to tensorboardX.egg-info\requires.txt
writing top-level names to tensorboardX.egg-info\top_level.txt
writing manifest file 'tensorboardX.egg-info\SOURCES.txt'
reading manifest file 'tensorboardX.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '' found under directory 'test'
warning: no previously-included files matching '
' found under directory 'examples'
writing manifest file 'tensorboardX.egg-info\SOURCES.txt'
creating build\lib\tensorboardX\beholder
copying tensorboardX\beholder_init_.py -> build\lib\tensorboardX\beholder
copying tensorboardX\beholder\beholder.py -> build\lib\tensorboardX\beholder
copying tensorboardX\beholder\file_system_tools.py -> build\lib\tensorboardX\beholder
copying tensorboardX\beholder\shared_config.py -> build\lib\tensorboardX\beholder
copying tensorboardX\beholder\video_writing.py -> build\lib\tensorboardX\beholder
creating build\lib\tensorboardX\proto
copying tensorboardX\proto_init_.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\api.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\api_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\attr_value.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\attr_value_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\event.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\event_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\graph.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\graph_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\layout.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\layout_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\node_def.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\node_def_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_hparams.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_hparams_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_mesh.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_mesh_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_pr_curve.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_pr_curve_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_text.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_text_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\resource_handle.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\resource_handle_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\step_stats.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\step_stats_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\summary.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\summary_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\tensor.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\tensor_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\tensor_shape.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\tensor_shape_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\types.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\types_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\versions.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\versions_pb2.py -> build\lib\tensorboardX\proto
installing to build\bdist.win-amd64\wheel
running install
./compile.sh: line 2: $'\r': command not found
./compile.sh: line 5: $'\r': command not found
./compile.sh: line 7: $'\r': command not found
./compile.sh: line 9: $'\r': command not found
./compile.sh: line 10: $'\r': command not found
./compile.sh: line 48: syntax error: unexpected end of file
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-k0ym7ecz\setup.py", line 86, in
tests_require=test_requirements
File "C:\Anaconda3\lib\site-packages\setuptools_init_.py", line 144, in setup
return distutils.core.setup(**attrs)
File "C:\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 259, in run
self.run_command('install')
File "C:\Anaconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\MATTKN
1\AppData\Local\Temp\pip-req-build-k0ym7ecz\setup.py", line 25, in run
compileProtoBuf()
File "C:\Users\MATTKN~1\AppData\Local\Temp\pip-req-build-k0ym7ecz\setup.py", line 13, in compileProtoBuf
assert res == 0, 'cannot compile protobuf'
AssertionError: cannot compile protobuf

ERROR: Failed building wheel for tensorboardX
Running setup.py clean for tensorboardX
Failed to build tensorboardX
Installing collected packages: tensorboardX
Running setup.py install for tensorboardX ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-k0ym7ecz\setup.py'"'"'; file='"'"'C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-k0ym7ecz\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\MATTKN1\AppData\Local\Temp\pip-record-_735sni9\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Anaconda3\Include\tensorboardX'
cwd: C:\Users\MATTKN
1\AppData\Local\Temp\pip-req-build-k0ym7ecz
Complete output (24 lines):
running install
./compile.sh: line 2: $'\r': command not found
./compile.sh: line 5: $'\r': command not found
./compile.sh: line 7: $'\r': command not found
./compile.sh: line 9: $'\r': command not found
./compile.sh: line 10: $'\r': command not found
./compile.sh: line 48: syntax error: unexpected end of file
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-k0ym7ecz\setup.py", line 86, in
tests_require=test_requirements
File "C:\Anaconda3\lib\site-packages\setuptools_init_.py", line 144, in setup
return distutils.core.setup(**attrs)
File "C:\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Anaconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Anaconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\MATTKN
1\AppData\Local\Temp\pip-req-build-k0ym7ecz\setup.py", line 25, in run
compileProtoBuf()
File "C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-k0ym7ecz\setup.py", line 13, in compileProtoBuf
assert res == 0, 'cannot compile protobuf'
AssertionError: cannot compile protobuf
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\MATTKN
1\AppData\Local\Temp\pip-req-build-k0ym7ecz\setup.py'"'"'; file='"'"'C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-k0ym7ecz\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\MATTKN1\AppData\Local\Temp\pip-record-_735sni9\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Anaconda3\Include\tensorboardX' Check the logs for full command output.

@praeludiumOrbis
Copy link
Author

praeludiumOrbis commented May 10, 2020

I've got the same error on windows

Oh yeah, I should have made clear that I'm a Windows user.

I tried doing all the pip installs as admin, with the conda prompt, and I got that same error.

Yup, same happens to me, the pip install mpi4py does its job though.

Edit: saw this #50 (comment)
I might try it later

I tried it and I'm having the same issue on it. Also, it doesn't seem to me that his fix was referring to the issue I am having as it just tells one to download Microsoft SDK/Visual Studio stuff... Nonetheless, I opened an issue on his fork, maybe he knows if I'm doing something wrong and how to fix it.

having the same issue

Yup, that looks like the same issue I am having. However, you seem new to GitHub, you should put your output between `s, otherwise It'll look unreadable.

Thanks for any help in advance!

@JoshuaBrookover
Copy link

I got this same error. For me, I could not run bash in the anaconda prompt at all. It crashes out immediately (first step in installing tensorboardX is to run a bash script). I was using GOW for bash.

You can confirm this is the issue by running:

bash -c "echo hi"

If it outputs nothing, or is an unrecognized command, then that's almost certainly the issue.

I managed to get it working by opening git's bash and bootstrapping conda in there.

. /C/Users/<name>/miniconda3/etc/profile.d/conda.sh

The . at the start is important. Then try once more in that shell

cd path/to/jukebox
conda activate jukebox
pip install ./tensorboardX

@praeludiumOrbis
Copy link
Author

I managed to get it working by opening git's bash and bootstrapping conda in there.

. /C/Users/<name>/miniconda3/etc/profile.d/conda.sh

The . at the start is important. Then try once more in that shell

cd path/to/jukebox
conda activate jukebox
pip install ./tensorboardX

Thanks so much! This did its job and I have it installed now, big cheers to you!

mintty_2YUGwyP9mq
cmd_8ytPqd2hfY

@kman1898
Copy link

I still cannot get it working.

$ pip install ./tensorboardX
Processing c:\users\matt knotts\jukebox\tensorboardx
Requirement already satisfied: numpy in c:\miniconda3\lib\site-packages (from tensorboardX==1.8) (1.18.4)
Requirement already satisfied: protobuf>=3.6.1 in c:\miniconda3\lib\site-packages (from tensorboardX==1.8) (3.11.3)
Requirement already satisfied: six in c:\users\matt knotts\appdata\roaming\python\python37\site-packages (from tensorboardX==1.8) (1.14.0)
Requirement already satisfied: setuptools in c:\miniconda3\lib\site-packages (from protobuf>=3.6.1->tensorboardX==1.8) (45.2.0.post20200210)
Building wheels for collected packages: tensorboardX
Building wheel for tensorboardX (setup.py): started
Building wheel for tensorboardX (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Miniconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-33h0mk0c\setup.py'"'"'; file='"'"'C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-33h0mk0c\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\MATTKN1\AppData\Local\Temp\pip-wheel-_y2y3p9q'
cwd: C:\Users\MATTKN
1\AppData\Local\Temp\pip-req-build-33h0mk0c
Complete output (104 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\tensorboardX
copying tensorboardX\caffe2_graph.py -> build\lib\tensorboardX
copying tensorboardX\crc32c.py -> build\lib\tensorboardX
copying tensorboardX\embedding.py -> build\lib\tensorboardX
copying tensorboardX\event_file_writer.py -> build\lib\tensorboardX
copying tensorboardX\onnx_graph.py -> build\lib\tensorboardX
copying tensorboardX\proto_graph.py -> build\lib\tensorboardX
copying tensorboardX\pytorch_graph.py -> build\lib\tensorboardX
copying tensorboardX\record_writer.py -> build\lib\tensorboardX
copying tensorboardX\summary.py -> build\lib\tensorboardX
copying tensorboardX\torchvis.py -> build\lib\tensorboardX
copying tensorboardX\utils.py -> build\lib\tensorboardX
copying tensorboardX\visdom_writer.py -> build\lib\tensorboardX
copying tensorboardX\writer.py -> build\lib\tensorboardX
copying tensorboardX\x2num.py -> build\lib\tensorboardX
copying tensorboardX_init_.py -> build\lib\tensorboardX
running egg_info
writing tensorboardX.egg-info\PKG-INFO
writing dependency_links to tensorboardX.egg-info\dependency_links.txt
writing requirements to tensorboardX.egg-info\requires.txt
writing top-level names to tensorboardX.egg-info\top_level.txt
reading manifest file 'tensorboardX.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '' found under directory 'test'
warning: no previously-included files matching '
' found under directory 'examples'
writing manifest file 'tensorboardX.egg-info\SOURCES.txt'
creating build\lib\tensorboardX\beholder
copying tensorboardX\beholder_init_.py -> build\lib\tensorboardX\beholder
copying tensorboardX\beholder\beholder.py -> build\lib\tensorboardX\beholder
copying tensorboardX\beholder\file_system_tools.py -> build\lib\tensorboardX\beholder
copying tensorboardX\beholder\shared_config.py -> build\lib\tensorboardX\beholder
copying tensorboardX\beholder\video_writing.py -> build\lib\tensorboardX\beholder
creating build\lib\tensorboardX\proto
copying tensorboardX\proto_init_.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\api.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\api_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\attr_value.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\attr_value_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\event.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\event_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\graph.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\graph_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\layout.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\layout_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\node_def.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\node_def_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_hparams.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_hparams_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_mesh.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_mesh_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_pr_curve.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_pr_curve_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_text.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_text_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\resource_handle.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\resource_handle_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\step_stats.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\step_stats_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\summary.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\summary_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\tensor.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\tensor_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\tensor_shape.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\tensor_shape_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\types.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\types_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\versions.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\versions_pb2.py -> build\lib\tensorboardX\proto
installing to build\bdist.win-amd64\wheel
running install
./compile.sh: line 2: $'\r': command not found
./compile.sh: line 5: $'\r': command not found
./compile.sh: line 7: $'\r': command not found
./compile.sh: line 9: $'\r': command not found
./compile.sh: line 10: $'\r': command not found
./compile.sh: line 48: syntax error: unexpected end of file
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-33h0mk0c\setup.py", line 86, in
tests_require=test_requirements
File "C:\Miniconda3\lib\site-packages\setuptools_init_.py", line 144, in setup
return distutils.core.setup(**attrs)
File "C:\Miniconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Miniconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Miniconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Miniconda3\lib\site-packages\wheel\bdist_wheel.py", line 259, in run
self.run_command('install')
File "C:\Miniconda3\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Miniconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\MATTKN
1\AppData\Local\Temp\pip-req-build-33h0mk0c\setup.py", line 25, in run
compileProtoBuf()
File "C:\Users\MATTKN~1\AppData\Local\Temp\pip-req-build-33h0mk0c\setup.py", line 13, in compileProtoBuf
assert res == 0, 'cannot compile protobuf'
AssertionError: cannot compile protobuf

ERROR: Failed building wheel for tensorboardX
Running setup.py clean for tensorboardX
Failed to build tensorboardX
Installing collected packages: tensorboardX
Running setup.py install for tensorboardX: started
Running setup.py install for tensorboardX: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\Miniconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-33h0mk0c\setup.py'"'"'; file='"'"'C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-33h0mk0c\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\MATTKN1\AppData\Local\Temp\pip-record-8zck_wwf\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Miniconda3\Include\tensorboardX'
cwd: C:\Users\MATTKN
1\AppData\Local\Temp\pip-req-build-33h0mk0c
Complete output (24 lines):
running install
./compile.sh: line 2: $'\r': command not found
./compile.sh: line 5: $'\r': command not found
./compile.sh: line 7: $'\r': command not found
./compile.sh: line 9: $'\r': command not found
./compile.sh: line 10: $'\r': command not found
./compile.sh: line 48: syntax error: unexpected end of file
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-33h0mk0c\setup.py", line 86, in
tests_require=test_requirements
File "C:\Miniconda3\lib\site-packages\setuptools_init_.py", line 144, in setup
return distutils.core.setup(**attrs)
File "C:\Miniconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Miniconda3\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Miniconda3\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\MATTKN
1\AppData\Local\Temp\pip-req-build-33h0mk0c\setup.py", line 25, in run
compileProtoBuf()
File "C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-33h0mk0c\setup.py", line 13, in compileProtoBuf
assert res == 0, 'cannot compile protobuf'
AssertionError: cannot compile protobuf
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Miniconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\MATTKN
1\AppData\Local\Temp\pip-req-build-33h0mk0c\setup.py'"'"'; file='"'"'C:\Users\MATTKN1\AppData\Local\Temp\pip-req-build-33h0mk0c\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\MATTKN1\AppData\Local\Temp\pip-record-8zck_wwf\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Miniconda3\Include\tensorboardX' Check the logs for full command output.

@YuyQuan
Copy link

YuyQuan commented Jul 9, 2020

The issue is not with the terminal you use, but the line endings ./compile.sh: line 2: $'\r': command not found

I opened cd path/to/jukebox/tensorboardX/compile.sh in vscode and changed the line endings from CRLF to LF and saved.
You can do this with dos2unix path/to/compile.sh if you don't have vscode already installed.

Installing then works (on Windows 10).

@Onethem
Copy link

Onethem commented Nov 14, 2020

Hello, I have a slightly different problem, I tried what is described above, but it didn't help me, that's what it gives.

Processing c:\users\yknya\onedrive\desktop\jukebox\tensorboardx
Requirement already satisfied: numpy in c:\users\yknya.conda\envs\jukebox\lib\site-packages (from tensorboardX==1.8) (1.19.4)
Requirement already satisfied: protobuf>=3.6.1 in c:\users\yknya.conda\envs\jukebox\lib\site-packages (from tensorboardX==1.8) (3.14.0)
Requirement already satisfied: six in c:\users\yknya.conda\envs\jukebox\lib\site-packages (from tensorboardX==1.8) (1.15.0)
Building wheels for collected packages: tensorboardX
Building wheel for tensorboardX (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\yknya.conda\envs\jukebox\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\yknya\AppData\Local\Temp\pip-req-build-4496bu4k\setup.py'"'"'; file='"'"'C:\Users\yknya\AppData\Local\Temp\pip-req-build-4496bu4k\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\yknya\AppData\Local\Temp\pip-wheel-wji6s46p'
cwd: C:\Users\yknya\AppData\Local\Temp\pip-req-build-4496bu4k
Complete output (78 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\tensorboardX
copying tensorboardX\caffe2_graph.py -> build\lib\tensorboardX
copying tensorboardX\crc32c.py -> build\lib\tensorboardX
copying tensorboardX\embedding.py -> build\lib\tensorboardX
copying tensorboardX\event_file_writer.py -> build\lib\tensorboardX
copying tensorboardX\onnx_graph.py -> build\lib\tensorboardX
copying tensorboardX\proto_graph.py -> build\lib\tensorboardX
copying tensorboardX\pytorch_graph.py -> build\lib\tensorboardX
copying tensorboardX\record_writer.py -> build\lib\tensorboardX
copying tensorboardX\summary.py -> build\lib\tensorboardX
copying tensorboardX\torchvis.py -> build\lib\tensorboardX
copying tensorboardX\utils.py -> build\lib\tensorboardX
copying tensorboardX\visdom_writer.py -> build\lib\tensorboardX
copying tensorboardX\writer.py -> build\lib\tensorboardX
copying tensorboardX\x2num.py -> build\lib\tensorboardX
copying tensorboardX_init_.py -> build\lib\tensorboardX
running egg_info
creating tensorboardX.egg-info
writing tensorboardX.egg-info\PKG-INFO
writing dependency_links to tensorboardX.egg-info\dependency_links.txt
writing requirements to tensorboardX.egg-info\requires.txt
writing top-level names to tensorboardX.egg-info\top_level.txt
writing manifest file 'tensorboardX.egg-info\SOURCES.txt'
reading manifest file 'tensorboardX.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '' found under directory 'test'
warning: no previously-included files matching '
' found under directory 'examples'
writing manifest file 'tensorboardX.egg-info\SOURCES.txt'
creating build\lib\tensorboardX\beholder
copying tensorboardX\beholder_init_.py -> build\lib\tensorboardX\beholder
copying tensorboardX\beholder\beholder.py -> build\lib\tensorboardX\beholder
copying tensorboardX\beholder\file_system_tools.py -> build\lib\tensorboardX\beholder
copying tensorboardX\beholder\shared_config.py -> build\lib\tensorboardX\beholder
copying tensorboardX\beholder\video_writing.py -> build\lib\tensorboardX\beholder
creating build\lib\tensorboardX\proto
copying tensorboardX\proto_init_.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\api.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\api_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\attr_value.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\attr_value_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\event.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\event_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\graph.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\graph_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\layout.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\layout_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\node_def.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\node_def_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_hparams.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_hparams_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_mesh.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_mesh_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_pr_curve.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_pr_curve_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_text.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\plugin_text_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\resource_handle.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\resource_handle_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\step_stats.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\step_stats_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\summary.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\summary_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\tensor.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\tensor_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\tensor_shape.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\tensor_shape_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\types.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\types_pb2.py -> build\lib\tensorboardX\proto
copying tensorboardX\proto\versions.proto -> build\lib\tensorboardX\proto
copying tensorboardX\proto\versions_pb2.py -> build\lib\tensorboardX\proto
installing to build\bdist.win-amd64\wheel
running install
error: [WinError 2] Не удается найти указанный файл

ERROR: Failed building wheel for tensorboardX
Running setup.py clean for tensorboardX
Failed to build tensorboardX
Installing collected packages: tensorboardX
Running setup.py install for tensorboardX ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\yknya.conda\envs\jukebox\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\yknya\AppData\Local\Temp\pip-req-build-4496bu4k\setup.py'"'"'; file='"'"'C:\Users\yknya\AppData\Local\Temp\pip-req-build-4496bu4k\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\yknya\AppData\Local\Temp\pip-record-cskyjewf\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\yknya.conda\envs\jukebox\Include\tensorboardX'
cwd: C:\Users\yknya\AppData\Local\Temp\pip-req-build-4496bu4k
Complete output (2 lines):
running install
error: [WinError 2] Не удается найти указанный файл
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\yknya.conda\envs\jukebox\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\yknya\AppData\Local\Temp\pip-req-build-4496bu4k\setup.py'"'"'; file='"'"'C:\Users\yknya\AppData\Local\Temp\pip-req-build-4496bu4k\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\yknya\AppData\Local\Temp\pip-record-cskyjewf\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\yknya.conda\envs\jukebox\Include\tensorboardX' Check the logs for full command output.

@cicinwad
Copy link

The issue is not with the terminal you use, but the line endings ./compile.sh: line 2: $'\r': command not found

I opened cd path/to/jukebox/tensorboardX/compile.sh in vscode and changed the line endings from CRLF to LF and saved. You can do this with dos2unix path/to/compile.sh if you don't have vscode already installed.

Installing then works (on Windows 10).

then also works (on Windows 8).

@heartlocket
Copy link

The issue is not with the terminal you use, but the line endings ./compile.sh: line 2: $'\r': command not found
I opened cd path/to/jukebox/tensorboardX/compile.sh in vscode and changed the line endings from CRLF to LF and saved. You can do this with dos2unix path/to/compile.sh if you don't have vscode already installed.
Installing then works (on Windows 10).

then also works (on Windows 8).

What does this mean ? I do not see any 'crlf' lines in the file when i open in vscode. not sure how to fix this

@pettygitty
Copy link

The issue is not with the terminal you use, but the line endings ./compile.sh: line 2: $'\r': command not found

I opened cd path/to/jukebox/tensorboardX/compile.sh in vscode and changed the line endings from CRLF to LF and saved. You can do this with dos2unix path/to/compile.sh if you don't have vscode already installed.

Installing then works (on Windows 10).

dos2unix worked !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants