Coder Social home page Coder Social logo

Comments (17)

ar4 avatar ar4 commented on July 25, 2024

Hi Shipeng,

Thank you for trying Deepwave and for taking the time to report the problem that you and your friends encountered. Can you tell me a bit more about your setup, such as which operating system you are using and which version of PyTorch is installed. If possible, please also post some of the errors or warning messages that you received, in case they can help me to diagnose the problem.

from deepwave.

Shipeng-Xiao avatar Shipeng-Xiao commented on July 25, 2024

thank you for your reply
The windows system I am currently trying、pytorch1.10.0、 py3.7_cuda10.2_cudnn7_0.
Regarding the error of "No module named'scalar2d_cpu_iso_4_float'", it is the result of me directly downloading the compressed package on github to the environment

(torch-gpu) C:\Users\An_Shan>pip install deepwave
ERROR: Exception:
Traceback (most recent call last):
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\cli\base_command.py", line 173, in _main
status = self.run(options, args)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\cli\req_command.py", line 203, in wrapper
return func(self, options, args)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\commands\install.py", line 316, in run
reqs, check_supported_wheels=not options.target_dir
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 95, in resolve
collected.requirements, max_rounds=try_to_avoid_resolution_too_deep
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 472, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 341, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 140, in bool
return any(self)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 128, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 29, in _iter_built
for version, func in infos:
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 275, in iter_index_candidate_infos
hashes=hashes,
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\package_finder.py", line 851, in find_best_candidate
candidates = self.find_all_candidates(project_name)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\package_finder.py", line 798, in find_all_candidates
page_candidates = list(page_candidates_it)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\sources.py", line 134, in page_candidates
yield from self._candidates_from_page(self._link)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\package_finder.py", line 758, in process_project_url
html_page = self._link_collector.fetch_page(project_url)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\collector.py", line 490, in fetch_page
return _get_html_page(location, session=self.session)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\collector.py", line 400, in _get_html_page
resp = _get_html_response(url, session=session)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\collector.py", line 132, in _get_html_response
"Cache-Control": "max-age=0",
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\requests\sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\network\session.py", line 454, in request
return super().request(method, url, *args, **kwargs)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\cachecontrol\adapter.py", line 53, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\requests\adapters.py", line 449, in send
timeout=timeout
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 696, in urlopen
self._prepare_proxy(conn)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 964, in _prepare_proxy
conn.connect()
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\urllib3\connection.py", line 359, in connect
conn = self._connect_tls_proxy(hostname, conn)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\urllib3\connection.py", line 506, in connect_tls_proxy
ssl_context=ssl_context,
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\urllib3\util\ssl
.py", line 453, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\urllib3\util\ssl
.py", line 495, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
File "D:\py\anaconda\envs\torch-gpu\lib\ssl.py", line 423, in wrap_socket
session=session
File "D:\py\anaconda\envs\torch-gpu\lib\ssl.py", line 827, in _create
raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname

from deepwave.

ar4 avatar ar4 commented on July 25, 2024

Thank you. From the error message it seems like the problem is occurring in D:\py\anaconda\envs\torch-gpu\lib\ssl.py. According to https://stackoverflow.com/questions/67297278/valueerror-check-hostname-requires-server-hostname , this problem might be caused by proxy software. Do you know if you are using proxy software, and, if so, is there a way to turn it off?

from deepwave.

ar4 avatar ar4 commented on July 25, 2024

Are you able to install other packages using pip? One thing to try, if you are not able to turn off the proxy software (assuming that is the cause of the problem), is to download the code as a zip file and unzip it, as you have already done, and then run pip install . inside the unzipped directory. My guess is that the problem occurs when pip tries to access the internet, and so it is possible that doing it this way might avoid the need for pip to do that.

from deepwave.

Shipeng-Xiao avatar Shipeng-Xiao commented on July 25, 2024

Thank you very much for your reply, I have closed the proxy software.
I have installed deepwave0.0.1

(torch-gpu) C:\Users\An_Shan>pip install deepwave
ERROR: Exception:
Traceback (most recent call last):
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\cli\base_command.py", line 173, in _main
status = self.run(options, args)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\cli\req_command.py", line 203, in wrapper
return func(self, options, args)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\commands\install.py", line 316, in run
reqs, check_supported_wheels=not options.target_dir
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 95, in resolve
collected.requirements, max_rounds=try_to_avoid_resolution_too_deep
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 472, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 341, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 140, in bool
return any(self)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 128, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 29, in _iter_built
for version, func in infos:
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 275, in iter_index_candidate_infos
hashes=hashes,
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\package_finder.py", line 851, in find_best_candidate
candidates = self.find_all_candidates(project_name)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\package_finder.py", line 798, in find_all_candidates
page_candidates = list(page_candidates_it)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\sources.py", line 134, in page_candidates
yield from self._candidates_from_page(self._link)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\package_finder.py", line 758, in process_project_url
html_page = self._link_collector.fetch_page(project_url)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\collector.py", line 490, in fetch_page
return _get_html_page(location, session=self.session)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\collector.py", line 400, in _get_html_page
resp = _get_html_response(url, session=session)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\index\collector.py", line 132, in _get_html_response
"Cache-Control": "max-age=0",
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\requests\sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_internal\network\session.py", line 454, in request
return super().request(method, url, *args, **kwargs)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\cachecontrol\adapter.py", line 53, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\requests\adapters.py", line 449, in send
timeout=timeout
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 696, in urlopen
self._prepare_proxy(conn)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\urllib3\connectionpool.py", line 964, in _prepare_proxy
conn.connect()
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\urllib3\connection.py", line 359, in connect
conn = self._connect_tls_proxy(hostname, conn)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\urllib3\connection.py", line 506, in connect_tls_proxy
ssl_context=ssl_context,
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\urllib3\util\ssl
.py", line 453, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\pip_vendor\urllib3\util\ssl
.py", line 495, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
File "D:\py\anaconda\envs\torch-gpu\lib\ssl.py", line 423, in wrap_socket
session=session
File "D:\py\anaconda\envs\torch-gpu\lib\ssl.py", line 827, in _create
raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname

(torch-gpu) C:\Users\An_Shan>pip install deepwave
Collecting deepwave
Using cached deepwave-0.0.9.tar.gz (33 kB)
ERROR: Command errored out with exit status 1:
command: 'D:\py\anaconda\envs\torch-gpu\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_63e6bbe1e8dd4a5993b8c9acbcfbaf0e\setup.py'"'"'; file='"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_63e6bbe1e8dd4a5993b8c9acbcfbaf0e\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\An_Shan\AppData\Local\Temp\pip-pip-egg-info-0e57supi'
cwd: C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_63e6bbe1e8dd4a5993b8c9acbcfbaf0e
Complete output (15 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_63e6bbe1e8dd4a5993b8c9acbcfbaf0e\setup.py", line 43, in
for dim in ['1', '2', '3']
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_63e6bbe1e8dd4a5993b8c9acbcfbaf0e\setup.py", line 44, in
for dtype in ['float']]
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_63e6bbe1e8dd4a5993b8c9acbcfbaf0e\setup.py", line 34, in _make_cuda_extension
'cxx': ['-Ofast', '-march=native']})
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 912, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 1027, in library_paths
paths.append(_join_cuda_home(lib_dir))
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 2035, in _join_cuda_home
raise EnvironmentError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/4e/2f/69c9feffac1b2087c25c2005c2ec0504132763bbda6be2f6f1f17b6b9b8c/deepwave-0.0.9.tar.gz#sha256=c59ebaac543e24254090fdf6c4b507855bebb7623c41a38d471759e23c93bbb5 (from https://pypi.org/simple/deepwave/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached deepwave-0.0.8.tar.gz (32 kB)
ERROR: Command errored out with exit status 1:
command: 'D:\py\anaconda\envs\torch-gpu\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_0d5a8db71e1b49a2887d2b57a296ccbb\setup.py'"'"'; file='"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_0d5a8db71e1b49a2887d2b57a296ccbb\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\An_Shan\AppData\Local\Temp\pip-pip-egg-info-q9n2hnm8'
cwd: C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_0d5a8db71e1b49a2887d2b57a296ccbb
Complete output (15 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_0d5a8db71e1b49a2887d2b57a296ccbb\setup.py", line 43, in
for dim in ['1', '2', '3']
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_0d5a8db71e1b49a2887d2b57a296ccbb\setup.py", line 44, in
for dtype in ['float']]
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_0d5a8db71e1b49a2887d2b57a296ccbb\setup.py", line 34, in _make_cuda_extension
'cxx': ['-Ofast', '-march=native']})
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 912, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 1027, in library_paths
paths.append(_join_cuda_home(lib_dir))
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 2035, in _join_cuda_home
raise EnvironmentError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/52/f8/22cd5a2d5057a4d586243a731cfa775526ba31627b544da25e1c94029dda/deepwave-0.0.8.tar.gz#sha256=25686acce741bfab3ba93d70f97d0d3d3d2d826d085e0381cecc28c7eb5c876d (from https://pypi.org/simple/deepwave/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached deepwave-0.0.7.tar.gz (32 kB)
ERROR: Command errored out with exit status 1:
command: 'D:\py\anaconda\envs\torch-gpu\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_d89d230210db4ee58a570073df35c961\setup.py'"'"'; file='"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_d89d230210db4ee58a570073df35c961\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\An_Shan\AppData\Local\Temp\pip-pip-egg-info-hqijrys3'
cwd: C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_d89d230210db4ee58a570073df35c961
Complete output (15 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_d89d230210db4ee58a570073df35c961\setup.py", line 43, in
for dim in ['1', '2', '3']
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_d89d230210db4ee58a570073df35c961\setup.py", line 44, in
for dtype in ['float']]
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_d89d230210db4ee58a570073df35c961\setup.py", line 34, in _make_cuda_extension
'cxx': ['-Ofast', '-march=native']})
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 912, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 1027, in library_paths
paths.append(_join_cuda_home(lib_dir))
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 2035, in _join_cuda_home
raise EnvironmentError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/ce/68/6e1946fb28c6e10bce268c48d0b560e4f3c0c95df27a64c5b2ef369f1983/deepwave-0.0.7.tar.gz#sha256=2821839a52f6f5b25fad90393ac6ab148166602c9b621df3b1ad5fa6d3040374 (from https://pypi.org/simple/deepwave/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached deepwave-0.0.6.tar.gz (36 kB)
ERROR: Command errored out with exit status 1:
command: 'D:\py\anaconda\envs\torch-gpu\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_40f2a58e1f424d83b5b7caaf30fd13be\setup.py'"'"'; file='"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_40f2a58e1f424d83b5b7caaf30fd13be\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\An_Shan\AppData\Local\Temp\pip-pip-egg-info-z0d0j48o'
cwd: C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_40f2a58e1f424d83b5b7caaf30fd13be
Complete output (15 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_40f2a58e1f424d83b5b7caaf30fd13be\setup.py", line 43, in
for dim in ['1', '2', '3']
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_40f2a58e1f424d83b5b7caaf30fd13be\setup.py", line 44, in
for dtype in ['float']]
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_40f2a58e1f424d83b5b7caaf30fd13be\setup.py", line 34, in _make_cuda_extension
'cxx': ['-Ofast', '-march=native']})
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 912, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 1027, in library_paths
paths.append(_join_cuda_home(lib_dir))
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 2035, in _join_cuda_home
raise EnvironmentError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/b9/f3/85d374f4cbe3b91757cfcda41b616f57e7e7751b338f5d893307e4ef1eff/deepwave-0.0.6.tar.gz#sha256=d4b3d09e7342977061cadc1ed876af1889011c409f8c51882e5747f1da26eb70 (from https://pypi.org/simple/deepwave/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached deepwave-0.0.5.tar.gz (32 kB)
ERROR: Command errored out with exit status 1:
command: 'D:\py\anaconda\envs\torch-gpu\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_ff95c893654a4aee8474be34960508c9\setup.py'"'"'; file='"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_ff95c893654a4aee8474be34960508c9\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\An_Shan\AppData\Local\Temp\pip-pip-egg-info-gwo47wgh'
cwd: C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_ff95c893654a4aee8474be34960508c9
Complete output (15 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_ff95c893654a4aee8474be34960508c9\setup.py", line 43, in
for dim in ['1', '2', '3']
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_ff95c893654a4aee8474be34960508c9\setup.py", line 44, in
for dtype in ['float']]
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_ff95c893654a4aee8474be34960508c9\setup.py", line 34, in _make_cuda_extension
'cxx': ['-Ofast', '-march=native']})
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 912, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 1027, in library_paths
paths.append(_join_cuda_home(lib_dir))
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 2035, in _join_cuda_home
raise EnvironmentError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/e2/da/65059d443c90389a71effc03938c94cc7ceb2c36b79cdc7e3a7db142171e/deepwave-0.0.5.tar.gz#sha256=e353af47c5e80709c350db8620ac737dc8f595990d76e82ade50455d9a563ffc (from https://pypi.org/simple/deepwave/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached deepwave-0.0.4.tar.gz (26 kB)
ERROR: Command errored out with exit status 1:
command: 'D:\py\anaconda\envs\torch-gpu\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_c3440b984f2c4774acd2a5262d06f767\setup.py'"'"'; file='"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_c3440b984f2c4774acd2a5262d06f767\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\An_Shan\AppData\Local\Temp\pip-pip-egg-info-t_g1y7c6'
cwd: C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_c3440b984f2c4774acd2a5262d06f767
Complete output (15 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_c3440b984f2c4774acd2a5262d06f767\setup.py", line 43, in
for dim in ['1', '2', '3']
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_c3440b984f2c4774acd2a5262d06f767\setup.py", line 44, in
for dtype in ['float']]
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_c3440b984f2c4774acd2a5262d06f767\setup.py", line 34, in _make_cuda_extension
'cxx': ['-Ofast', '-march=native']})
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 912, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 1027, in library_paths
paths.append(_join_cuda_home(lib_dir))
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 2035, in _join_cuda_home
raise EnvironmentError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/7f/22/6659543d0a76ec264be7e7a4a69600d4e327df80c89c8a35a4ed9cdc5aaa/deepwave-0.0.4.tar.gz#sha256=3c6530b569b815a8e03c7abde6d1827ef2540be34371ec2cfcccd773f7d21ef6 (from https://pypi.org/simple/deepwave/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached deepwave-0.0.3.tar.gz (22 kB)
ERROR: Command errored out with exit status 1:
command: 'D:\py\anaconda\envs\torch-gpu\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_010b30a4e7da42b28e2648c6a35e75ec\setup.py'"'"'; file='"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_010b30a4e7da42b28e2648c6a35e75ec\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\An_Shan\AppData\Local\Temp\pip-pip-egg-info-sacngj3d'
cwd: C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_010b30a4e7da42b28e2648c6a35e75ec
Complete output (15 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_010b30a4e7da42b28e2648c6a35e75ec\setup.py", line 43, in
for dim in ['1', '2', '3']
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_010b30a4e7da42b28e2648c6a35e75ec\setup.py", line 44, in
for dtype in ['float']]
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_010b30a4e7da42b28e2648c6a35e75ec\setup.py", line 34, in _make_cuda_extension
'cxx': ['-Ofast', '-march=native']})
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 912, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 1027, in library_paths
paths.append(_join_cuda_home(lib_dir))
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 2035, in _join_cuda_home
raise EnvironmentError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/a4/15/30ddb96a892c8675fe933f0fb656e53c05592ba7ce25b461b93fdca75386/deepwave-0.0.3.tar.gz#sha256=cfcfa6a55386b5956badba7d999887f784d30a4d8d811c523463b2164585746b (from https://pypi.org/simple/deepwave/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached deepwave-0.0.2.tar.gz (22 kB)
ERROR: Command errored out with exit status 1:
command: 'D:\py\anaconda\envs\torch-gpu\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_ef41771f0d6d452da9940eeef7c40370\setup.py'"'"'; file='"'"'C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_ef41771f0d6d452da9940eeef7c40370\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\An_Shan\AppData\Local\Temp\pip-pip-egg-info-7i2o9lx7'
cwd: C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_ef41771f0d6d452da9940eeef7c40370
Complete output (15 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_ef41771f0d6d452da9940eeef7c40370\setup.py", line 43, in
for dim in ['1', '2', '3']
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_ef41771f0d6d452da9940eeef7c40370\setup.py", line 44, in
for dtype in ['float']]
File "C:\Users\An_Shan\AppData\Local\Temp\pip-install-tqjq7vlc\deepwave_ef41771f0d6d452da9940eeef7c40370\setup.py", line 34, in _make_cuda_extension
'cxx': ['-Ofast', '-march=native']})
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 912, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 1027, in library_paths
paths.append(_join_cuda_home(lib_dir))
File "D:\py\anaconda\envs\torch-gpu\lib\site-packages\torch\utils\cpp_extension.py", line 2035, in _join_cuda_home
raise EnvironmentError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/09/fa/7d04cfa069b5fbd12ceac11293448c4589a13945c8525502de2e9720b40d/deepwave-0.0.2.tar.gz#sha256=ffa01424b2b39a761d255633a7fd3328a69b1c11784f653b632dd0e466004bb3 (from https://pypi.org/simple/deepwave/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached deepwave-0.0.1-cp37-cp37m-win_amd64.whl
Requirement already satisfied: cffi>=1.0.0 in d:\py\anaconda\envs\torch-gpu\lib\site-packages (from deepwave) (1.15.0)
Requirement already satisfied: torch>=0.4.0 in d:\py\anaconda\envs\torch-gpu\lib\site-packages (from deepwave) (1.10.0)
Requirement already satisfied: numpy in d:\py\anaconda\envs\torch-gpu\lib\site-packages (from deepwave) (1.21.2)
Requirement already satisfied: pycparser in d:\py\anaconda\envs\torch-gpu\lib\site-packages (from cffi>=1.0.0->deepwave) (2.21)
Requirement already satisfied: typing_extensions in d:\py\anaconda\envs\torch-gpu\lib\site-packages (from torch>=0.4.0->deepwave) (3.10.0.2)
Installing collected packages: deepwave
Successfully installed deepwave-0.0.1

from deepwave.

Shipeng-Xiao avatar Shipeng-Xiao commented on July 25, 2024

Thanks again for your continued support!!
I want to try the 0.0.9 version, so I downloaded it directly on github and copied it to the environment file, and encountered the following problems:
"No module named'scalar2d_cpu_iso_4_float'
After your reminder, does this have anything to do with my direct copying?

from deepwave.

ar4 avatar ar4 commented on July 25, 2024

That is good news that you solved the proxy problem. Using pip install deepwave should have installed the latest (0.0.9) version of Deepwave. It looks like it still did not install properly, though, as the CUDA_HOME variable is not set, which is perhaps why it incorrectly reported that it installed 0.0.1. Can you try running conda install -c conda-forge cudatoolkit-dev and then conda install pytorch-gpu -c conda-forge to make sure that the GPU version of PyTorch is correctly installed?

Regarding your question about the error "No module named'scalar2d_cpu_iso_4_float'", do I understand correctly that you just downloaded the zip of the code, unzipped it, entered the directory, and tried to import deepwave? If so, it is because Deepwave needs to be installed first, so that it can compile the necessary C/C++/CUDA code (producing modules including the scalar2d_cpu_iso_4_float one that it says is missing).

from deepwave.

ar4 avatar ar4 commented on July 25, 2024

I forgot to mention in my previous comment that after running those two conda install commands, you should again run pip install deepwave to try the Deepwave installation again, and hopefully it will succeed this time.

from deepwave.

Shipeng-Xiao avatar Shipeng-Xiao commented on July 25, 2024

bad news that the same problem, I downloaded version 0.0.1

from deepwave.

ar4 avatar ar4 commented on July 25, 2024

Sad! Was the message produced during installation the same? Were there any messages produced when you ran the two conda install commands?

from deepwave.

Shipeng-Xiao avatar Shipeng-Xiao commented on July 25, 2024

I deleted deepwave0.0.1 before running install.
And checked the cuda problem

cuda_available = torch.cuda.is_available()
device = torch.device("cuda" if cuda_available else "cpu")
print(device)

cuda

from deepwave.

ar4 avatar ar4 commented on July 25, 2024

OK, perhaps we should try to get the CPU-only version working first. I think this should work: conda install pytorch cpuonly -c pytorch followed by pip install deepwave. Please paste the output from the commands.

from deepwave.

ar4 avatar ar4 commented on July 25, 2024

Actually, you should probably uninstall the GPU version of pytorch before running those commands, with conda remove pytorch.

from deepwave.

Shipeng-Xiao avatar Shipeng-Xiao commented on July 25, 2024

Thanks again for your guidance, I am trying

from deepwave.

ar4 avatar ar4 commented on July 25, 2024

Thank you for trying and for your patience - unfortunately getting complicated packages to compile successfully on multiple operating systems with different setups is error-prone.

from deepwave.

Shipeng-Xiao avatar Shipeng-Xiao commented on July 25, 2024

On the cpu version, I have successfully downloaded the deepwave0.0.9 version, and the trial run was successful. I decided to study on the cpu first, and then check the GPU version again later.
Thanks again for your time!

from deepwave.

ar4 avatar ar4 commented on July 25, 2024

That's wonderful news. I am hopeful that with some more experimentation we can also get the GPU version to work, so if you do decide that you want to try it in the future, please let me know and I will be happy to try to help.

from deepwave.

Related Issues (20)

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.