Open hurricane2018 opened 6 years ago
Try the original source http://yael.gforge.inria.fr/
This is just a fork.
I know but I don't know how to configure it .I just did what the author said. However, I only want to use the python interface. After the two steps including ./configure.sh and make, what did you do ?
I don't remember. However, these are all my notes I found in an init_yael.sh script I had lying around. Perhaps you can gleam something from this:
export NCPUS=$(grep -c ^processor /proc/cpuinfo)
cd $CODE_DIR
svn co svn://mygforgelogin@scm.gforge.inria.fr/svn/yael/trunk yael
cd yael
install_prereq()
{
sudo apt-get install libblas-dev liblapack-dev
sudo apt-get install swig
}
git clone git@github.com:Erotemic/yael.git
cd ~/code/yael
./configure.sh --enable-numpy --msse4
make
python setup.py develop
python -c "import yael; print(dir(yael))"
python -c "from yael import yael; print(dir(yael)); print(yael.__package__)"
python ~/code/yael/test/test_ctypes.py
python ~/code/yael/test/test_kmeans_alt_dist.py
python ~/code/yael/test/py/test_ynumpy.py
python ~/code/yael/test/py/test_numpy.py
download_url_repo()
{
export $URL=$1
export $VERSION=$2
mkdir ~/tmp
cd ~/tmp
wget $URL/$VERSION.tar.gz
gunzip -f $VERSION.tar.gz && tar -xvf $VERSION.tar
}
download_url_repo2()
{
export $URL=$1
export $VERSION=$2
mkdir ~/tmp
cd ~/tmp
wget $URL/$VERSION.tar.gz
#gunzip -f $VERSION.tar.gz && tar -xvf $VERSION.tar
gunzip -f $VERSION.tar.gz
mkdir $VERSION
mv $VERSION.tar $VERSION
cd $VERSION
tar -xvf $VERSION.tar
cd ..
}
#====================
# SOURCE BUILD: YAEL
export URL=https://gforge.inria.fr/frs/download.php/file/33810/
export VERSION=yael_v401
download_url_repo $URL $VERSION
mv $VERSION ~/srcdistro
cd ~/srcdistro/$VERSION
./configure --msse4
gmake -j$NCPUS
#====================
#====================
# SOURCE BUILD: YAEL DEMO
export URL=https://gforge.inria.fr/frs/download.php/file/33650/
export VERSION=yael_mini_demo_v0.2
download_url_repo $URL $VERSION
mv $VERSION ~/srcdistro
cd ~/srcdistro/$VERSION
#====================
#====================
# SOURCE BUILD: SMK
export URL=https://gforge.inria.fr/frs/download.php/file/33244/
export VERSION=selective_match_kernel_v289
download_url_repo2 $URL $VERSION
./configure
gmake -j$NCPUS
#====================
Thank you ! I have solved this problem.
2018-02-16 19:34 GMT-05:00 Jon Crall notifications@github.com:
I don't remember. However, these are all my notes I found in an init_yael.sh script I had lying around. Perhaps you can gleam something from this:
export NCPUS=$(grep -c ^processor /proc/cpuinfo)cd $CODE_DIR svn co svn://mygforgelogin@scm.gforge.inria.fr/svn/yael/trunk yaelcd yael install_prereq() { sudo apt-get install libblas-dev liblapack-dev sudo apt-get install swig }
git clone git@github.com:Erotemic/yael.gitcd ~/code/yael ./configure.sh --enable-numpy --msse4 make
python setup.py develop
python -c "import yael; print(dir(yael))" python -c "from yael import yael; print(dir(yael)); print(yael.package)" python ~/code/yael/test/test_ctypes.py python ~/code/yael/test/test_kmeans_alt_dist.py python ~/code/yael/test/py/test_ynumpy.py python ~/code/yael/test/py/test_numpy.py
download_url_repo() { export $URL=$1 export $VERSION=$2 mkdir ~/tmp cd ~/tmp wget $URL/$VERSION.tar.gz gunzip -f $VERSION.tar.gz && tar -xvf $VERSION.tar }
download_url_repo2() { export $URL=$1 export $VERSION=$2 mkdir ~/tmp cd ~/tmp wget $URL/$VERSION.tar.gz
gunzip -f $VERSION.tar.gz && tar -xvf $VERSION.tar
gunzip -f $VERSION.tar.gz mkdir $VERSION mv $VERSION.tar $VERSION cd $VERSION tar -xvf $VERSION.tar cd ..
}
====================# SOURCE BUILD: YAELexport URL=https://gforge.inria.fr/frs/download.php/file/33810/export VERSION=yael_v401
download_url_repo $URL $VERSION mv $VERSION ~/srcdistro cd ~/srcdistro/$VERSION ./configure --msse4 gmake -j$NCPUS#====================
====================# SOURCE BUILD: YAEL DEMOexport URL=https://gforge.inria.fr/frs/download.php/file/33650/export VERSION=yael_mini_demo_v0.2
download_url_repo $URL $VERSION mv $VERSION ~/srcdistro cd ~/srcdistro/$VERSION#====================
====================# SOURCE BUILD: SMKexport URL=https://gforge.inria.fr/frs/download.php/file/33244/export VERSION=selective_match_kernel_v289
download_url_repo2 $URL $VERSION ./configure gmake -j$NCPUS#====================
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Erotemic/yael/issues/2#issuecomment-366397849, or mute the thread https://github.com/notifications/unsubscribe-auth/AifZ-ZfsGH2H5bDhfkRWg6Zsr6eevSZDks5tVh6EgaJpZM4SH4lk .
I install as you suggested, then everything goes successfully. Then I just run the test, error occurred as follows:
python ./test/test_ctypes.py Traceback (most recent call last): File "./test/test_ctypes.py", line 12, in
from yael import yael
ImportError: No module named yael
Why there is no module named yael ?