Installing STAMP for PICRUST, but ImportError

149 views
Skip to first unread message

hokk...@gmail.com

unread,
Mar 27, 2017, 11:13:36 AM3/27/17
to picrust-users
Hi, All

I'm PICRUST beginner, thank you.
I think I installed STAMP, but next error occurs,

Traceback (most recent call last):

  File "/macqiime/anaconda/bin/STAMP", line 32, in <module>

    from stamp import STAMP

  File "/macqiime/anaconda/lib/python2.7/site-packages/stamp/STAMP.py", line 38, in <module>

    from stamp.GUI.plotDlg import PlotDlg  # forward reference so py2app recognizes this file is required

  File "/macqiime/anaconda/lib/python2.7/site-packages/stamp/GUI/plotDlg.py", line 24, in <module>

    from PyQt4 import QtGui, QtCore

ImportError: dlopen(/macqiime/anaconda/lib/python2.7/site-packages/PyQt4/QtGui.so, 2): Library not loaded: @loader_path/./libpng15.15.dylib

  Referenced from: /macqiime/anaconda/lib/libQtGui.4.8.6.dylib

  Reason: image not found


Mac OS version is 10.12.3.
PyQt4 problem? I don't solve...

Thanks for your reaction!

Yukinobu

Gavin Douglas

unread,
Mar 28, 2017, 9:37:57 AM3/28/17
to picrus...@googlegroups.com
Hey Yukinobu,

I haven’t come across these specific errors before, but if it’s related to PyQt4 not being installed then you could install it manually.

You should be able to follow these steps to install PyQt4 manually on your mac:

1) Download mac sources for sip and PyQt4 (NOT PyQt5) from: https://www.riverbankcomputing.com/software

2) Move source packages where you want to keep them (//anaconda/pkgs is one possibility depending on your setup).

3) Install sip first by following the instructions here: http://pyqt.sourceforge.net/Docs/sip4/installation.html

Or by just running these commands:
python configure.py; make; make install

4) Go to PyQt4 folder and install using these commands (you’ll need to accept the license manually by typing “yes”):
python configure-ng.py; make; make install

Alternatively you can use STAMP on the microbiome helper virtual box, which you can download here: https://github.com/mlangill/microbiome_helper/wiki/MicrobiomeHelper-Virtual-Box

Gavin


--
You received this message because you are subscribed to the Google Groups "picrust-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picrust-user...@googlegroups.com.
To post to this group, send email to picrus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

hokk...@gmail.com

unread,
Mar 29, 2017, 11:45:31 AM3/29/17
to picrust-users
Hi Gavin,

Thanks your comments!

I installed again in this way (my macOS is 10.12.3),

1) Install Pyenv
2) Install Python 2.7.3 by Pyenv
3) install sip-4.19.1 (download from website, configure.py, make, make install)
4) install yQt4_gpl_mac-4.12 (download from website, configure-ng.py, make, make install)
5) pip install STAMP
6) in terminal, type 'STAMP'

Now, STAMP GUI work!
I thank you, Gavin.

Good luck,
Yukinobu
Reply all
Reply to author
Forward
0 new messages