You are not logged in.

#1 2016-07-30 14:12:49

bigwhale99
Member
Registered: 2016-07-24
Posts: 5

Caffe Installation via AUR cannot be imported in python?

I have installed Caffe via AUR but I can't seem to import it in both python2  and python3. How do I fix this?

Offline

#2 2016-07-30 14:19:18

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Caffe Installation via AUR cannot be imported in python?

Provide details. What exactly have you installed? Have you used pacman to see, what files belong to that package (pacman manpage)?

EDIT: I would try it myself, but I am reluctant to have a package conflict with a package called "blas" for personal reasons.

Last edited by Awebb (2016-07-30 14:20:17)

Offline

#3 2016-07-30 14:20:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Caffe Installation via AUR cannot be imported in python?

See the AUR comments. Back packaging.

Offline

#4 2016-07-30 14:39:12

bigwhale99
Member
Registered: 2016-07-24
Posts: 5

Re: Caffe Installation via AUR cannot be imported in python?

Hi guys, after the hefty and long installation worth 500MB or more, I am somehow still missing several dependencies which are not installed because it gives an errror of "python2-networkx: /usr/lib/python2.7/site-packages/networkx/version.pyc exists in filesystem" for the required libraries. I read that this is because multiple files are in conflict. But I've many libraries that are in conflict. But actually I do have several of the same libraries installed already before Caffe wants to install it, so how do I get Caffe to detect the changes? Furthermore, I've tried yaourt caffe multiple times and did this actually reduce my disk space?

All im left with at this directory: /tmp/yaourt-tmp-user/aur-caffe-git/PKGBUILD      is a Makefile.config and PKGBUILD file, and classify-print-results.py.  Why don't this work?

Last edited by bigwhale99 (2016-07-30 14:42:47)

Offline

#5 2016-07-30 15:01:22

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Caffe Installation via AUR cannot be imported in python?

Stop using yaourt, until you fully understand how the AUR works. Read the AUR and makepkg wiki articles. If typing "yaourt caffe" gives you caffe-git, then yaourt is probably drunk and needs to go a bit slower on the booze in the future.

Offline

#6 2016-07-30 15:15:00

bigwhale99
Member
Registered: 2016-07-24
Posts: 5

Re: Caffe Installation via AUR cannot be imported in python?

I see. Now I'm quite stuck, there are multiple dependencies most of which I have installed via pacman, but there are still some remaining libraries like openblas-lapack that I cannot install via pacman as it gives an error of "target not found". Installing via sudo pip2 install openblas-lapack didn't work as the requirement is satisfied. Why doesn't pacman recognize that my pip2 has already installed the required libraries?

Offline

#7 2016-07-30 15:22:51

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Caffe Installation via AUR cannot be imported in python?

bigwhale99 wrote:

Why doesn't pacman recognize that my pip2 has already installed the required libraries?

How should it? I think it's time to skim through the beginner's guide and read all sections you're not entirely comfortable with again, and then the pacman article.

Offline

#8 2016-07-30 16:12:20

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Caffe Installation via AUR cannot be imported in python?

@bigwhale99,

Are you still using Manjaro or Arch? What is the output of uname -a?

Offline

#9 2016-08-06 00:01:48

bigwhale99
Member
Registered: 2016-07-24
Posts: 5

Re: Caffe Installation via AUR cannot be imported in python?

Hi, sorry for the late reply. I have spent a couple of days buying a new hard disk, backing up and have changed to pure arch now. My uname -a output is:

Linux bigwhale 4.6.4-1-ARCH #1 SMP PREEMPT Mon Jul 11 19:12:32 CEST 2016 x86_64 GNU/Linux

Is it due to the linux kernel being too new?

Offline

#10 2016-08-07 15:23:07

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: Caffe Installation via AUR cannot be imported in python?

bigwhale99, i think you are trying to build the caffe-git  package ?

several of it's dependencies are also in the aur and will have to be build/installed before you can build caffe-git .

a quick check already revealed 2 other aur dependencies besides openblas-lapack .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB