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

ImplicitSeg can't be installed #1

Closed
lunacy-xc opened this issue Aug 21, 2020 · 2 comments
Closed

ImplicitSeg can't be installed #1

lunacy-xc opened this issue Aug 21, 2020 · 2 comments

Comments

@lunacy-xc
Copy link

win10
python 3.7
I have both used the pip and git command but I fail to install it .

It has reported such errors:

ERROR:root:Internal Python error in the inspect module.
Below is the traceback from this internal error.

Traceback (most recent call last):
File "Z:\anaconda\envs\XC\lib\distutils_msvccompiler.py", line 492, in link
self.spawn([self.linker] + ld_args)
File "Z:\anaconda\envs\XC\lib\distutils_msvccompiler.py", line 502, in spawn
return super().spawn(cmd)
File "Z:\anaconda\envs\XC\lib\distutils\ccompiler.py", line 910, in spawn
spawn(cmd, dry_run=self.dry_run)
File "Z:\anaconda\envs\XC\lib\distutils\spawn.py", line 38, in spawn
_spawn_nt(cmd, search_path, dry_run=dry_run)
File "Z:\anaconda\envs\XC\lib\distutils\spawn.py", line 81, in _spawn_nt
"command %r failed with exit status %d" % (cmd, rc))
distutils.errors.DistutilsExecError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\link.exe' failed with exit status 1181

@liruilong940607
Copy link
Contributor

Hi, Thank you for you interests!

We didn't test the ImplicitSeg repo on windows, and supporting windows is not on our roadmap in the near future.

But an alternative solution is to avoid compiling the cuda code in the that repo by removing those lines from it's setup.py:

CUDAExtension('implicit_seg.cuda.interp2x_boundary2d', [
    'implicit_seg/cuda/interp2x_boundary2d.cpp',
    'implicit_seg/cuda/interp2x_boundary2d_kernel.cu',
]),

CUDAExtension('implicit_seg.cuda.interp2x_boundary3d', [
    'implicit_seg/cuda/interp2x_boundary3d.cpp',
    'implicit_seg/cuda/interp2x_boundary3d_kernel.cu',
]),

This won't affect the running of Monoport repo as the those cuda codes are just for further acceleration.

@liruilong940607
Copy link
Contributor

Following up on this issue. Two more lines need to be comment out if you are trying to avoid using compiled cuda code.

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

2 participants