ZeroCM / zcm

Zero Communications and Marshalling
http://zerocm.github.io/zcm/
GNU Lesser General Public License v2.1
237 stars 69 forks source link

Could not find the program ['cython'] #396

Closed cwjwudi closed 2 years ago

cwjwudi commented 2 years ago

I'm trying to make the python3 pkg, with the command:

./waf configure --use-python

but there is an error when I try to run this.

Setting top to                           : /home/cwj/my_project/zcm 
Setting out to                           : /home/cwj/my_project/zcm/build 
Checking for 'gcc' (C compiler)          : /usr/bin/gcc 
Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
Checking for program 'python'            : /usr/bin/python 
Checking for python version              : 3.8.10 
python-config                            : /usr/bin/python3.8-config 
Asking python-config for pyembed '--cflags --libs --ldflags --embed' flags : yes 
Testing pyembed configuration                                              : yes 
Asking python-config for pyext '--cflags --libs --ldflags' flags           : yes 
Testing pyext configuration                                                : yes 
Checking for program 'cython'                                              : not found 
Could not find the program ['cython']
(complete log in /home/cwj/my_project/zcm/build/config.log)

It seems that it can not run the cython command, because I'm using cython3 in python3.

I try to add the

alias cython=cython3

in ~/.bashrc, but it still didn't work. Actually, it can work in python2, I don't know how to fix the problem. Hope to get your help.

jbendes commented 2 years ago

Did you install dependencies with scripts/install-deps.sh?

cwjwudi commented 2 years ago

At first, I just want to use c and python modules, and didn't install dependencies with scripts/install-deps.sh. After running it, It seems to work. Thank you!