msracver / FCIS

Fully Convolutional Instance-aware Semantic Segmentation
MIT License
1.57k stars 415 forks source link

unable to install ./init.sh error #149

Open bat3a opened 4 years ago

bat3a commented 4 years ago

i tried to install step one but executing sudo sh ./init.sh but keep getting this error:

running build_ext
skipping 'bbox.c' Cython extension (up-to-date)
running build_ext
Traceback (most recent call last):
  File "setup_linux.py", line 56, in <module>
    CUDA = locate_cuda()
  File "setup_linux.py", line 51, in locate_cuda
    for k, v in cudaconfig.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'
Traceback (most recent call last):
  File "setup_linux.py", line 56, in <module>
    CUDA = locate_cuda()
  File "setup_linux.py", line 51, in locate_cuda
    for k, v in cudaconfig.iteritems():
AttributeError: 'dict' object has no attribute 'iteritems'

i tried on both Ubuntu 18 and windows 10, all previous requirements installed and verified.

bat3a commented 4 years ago

solved by building every lib alone, with noting: set rc.exe and dll in %PATH% fixating CUDA location and ignoring the function

kmateti commented 4 years ago

I solved this issue by replacing iteritems with items in eachsetup_linux.py script.

Edit: Ugh -- everything is in Python 2 and this is why this failed for me...

Edit2: So, installing the requirements for python2 and changing the script to use python2 for my system worked.

luisaheise commented 4 years ago

For me (using python3) changing .iteritems to .items worked

githubwys commented 2 weeks ago

For me (using python3) changing .iteritems to .items worked

it works, thx