Faster-RCNN_TF icon indicating copy to clipboard operation
Faster-RCNN_TF copied to clipboard

Cannot make ! It is a problem of Cython?

Open shuuchen opened this issue 7 years ago • 18 comments

Hi there,

I tried to run the following command:

cd $FRCN_ROOT/lib make

but it cannot run.

It is an issue of Cython? or something others?

shuuchen avatar Mar 30 '17 05:03 shuuchen

So when you run make nothing happend? Or do you have an error?

AlbertoBenini avatar Mar 30 '17 07:03 AlbertoBenini

I just wonder what should be installed first to run 'make' command. Is that Cython?

shuuchen avatar Mar 30 '17 08:03 shuuchen

Yes, you have to install Cython in order to make the project

AlbertoBenini avatar Mar 30 '17 08:03 AlbertoBenini

I installed that with the following version:

Cython -V Cython version 0.23.4

But nothing happens when I typed the 'make' command.

shuuchen avatar Mar 30 '17 08:03 shuuchen

What operating system are you running? And, as Alberto said, what error are you getting? There is no way nothing happens right?

LHagendoorn avatar Mar 30 '17 08:03 LHagendoorn

Windows 10 Home

shuuchen avatar Mar 30 '17 09:03 shuuchen

Well there's your problem. (Just tell us your error next time, makes things a loooot easier) http://stackoverflow.com/questions/2532234/how-to-run-a-makefile-in-windows here they explain something about running Makefiles under windows. My suggestion is to just use something like Docker to run this network under Linux, making these kind of things work on windows is not fun. (Although windows 10 has a bash terminal you can try, but that is still in development and last time I checked it couldn't access your gpu)

LHagendoorn avatar Mar 30 '17 09:03 LHagendoorn

Thanks very much for the solution! I will try that!

shuuchen avatar Mar 30 '17 10:03 shuuchen

I tried that but got the following errors:

$ make python setup.py build_ext --inplace running build_ext Traceback (most recent call last): File "setup.py", line 154, in cmdclass={'build_ext': custom_build_ext}, File "C:\Users\to\Anaconda3\lib\distutils\core.py", line 148, in setup dist.run_commands() File "C:\Users\to\Anaconda3\lib\distutils\dist.py", line 955, in run_commands self.run_command(cmd) File "C:\Users\to\Anaconda3\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "C:\Users\to\Anaconda3\lib\site-packages\Cython\Distutils\build_ext.py", line 164, in run _build_ext.build_ext.run(self) File "C:\Users\to\Anaconda3\lib\distutils\command\build_ext.py", line 338, in run self.build_extensions() File "setup.py", line 105, in build_extensions customize_compiler_for_nvcc(self.compiler) File "setup.py", line 77, in customize_compiler_for_nvcc default_compiler_so = self.compiler_so AttributeError: 'MSVCCompiler' object has no attribute 'compiler_so' make: *** [Makefile:2: all] error 1

$ python -V Python 3.5.1 :: Anaconda 4.0.0 (64-bit)

Is that a python version error? or something else?

shuuchen avatar Mar 31 '17 03:03 shuuchen

I do not have a GPU on my computer so it cannot run CUDA code. Is that a problem?

shuuchen avatar Mar 31 '17 03:03 shuuchen

For the cpu you should be able to run the code, clearly it will be slower than on gpu. For the error I think that it's a problem of MSVCCompiler. Try to google it

AlbertoBenini avatar Mar 31 '17 08:03 AlbertoBenini

Trying to make this stuff under windows is just a really bad idea. Especially without an Nvidia gpu (you will definetly be unable to train this, but if you only want to run it, a CPU will work). For starters you will need python 2.7, other than that, I can't help you with compiling this under windows, other than again recommending using virtual box or docker to run this under linux.

LHagendoorn avatar Mar 31 '17 08:03 LHagendoorn

OK. Thanks very much for the answers.

shuuchen avatar Mar 31 '17 14:03 shuuchen

@shuuchen have you resolved the question,I have the same question,thanks?

HaoWangDL avatar Nov 29 '17 01:11 HaoWangDL

@HaoWangDL I gave up Windows and move to Linux. The problem didn't happen any more.

shuuchen avatar Nov 29 '17 02:11 shuuchen

@shuuchen thank you ! I'm doing the same.

HaoWangDL avatar Dec 01 '17 01:12 HaoWangDL

@shuuchen hi,have you meet the question no module named fast_rcnn on linux?it confused me 2 days.thanks

HaoWangDL avatar Feb 27 '18 09:02 HaoWangDL

@HaoWangDL that's the problem of relative path.

ankur7721 avatar Jul 25 '18 09:07 ankur7721