[drats_users] help getting D-RATS working in Darwin Ports

Debbie Fligor
Thu Dec 4 07:48:23 PST 2008


Hi all,
I'm trying to setup darwin ports and get d-rats working with it.

I've gotten it working fine with Fink, but I can't help with  
application building from Fink, so now I need to get darwin ports  
working.


I've followed the directions for a stand-alone version of python and  
gtk (I think anyhow) but once I try and actually use it d-rats can't  
find at least one of the libraries.


Here's a snapshot of me checking that everything is installed as  
listed on the Installs page:

mnementh:bin drats$  sudo port install py25-gtk py25-serial py25-xml  
py25-hashlib
Skipping org.macports.activate (py25-gtk +darwin_9) since this port is  
already active
--->  Cleaning py25-gtk
Skipping org.macports.activate (py25-serial ) since this port is  
already active
--->  Cleaning py25-serial
Skipping org.macports.activate (py25-xml ) since this port is already  
active
--->  Cleaning py25-xml
Skipping org.macports.activate (py25-hashlib ) since this port is  
already active
--->  Cleaning py25-hashlib
mnementh:bin drats$ sudo port upgrade py25-gtk py25-serial py25-xml  
py25-hashlib

mnementh:bin drats$


Here's what it looks like when I try and run d-rats:


mnementh:bin drats$ /opt/local/bin/python2.5 d-rats
/opt/local/Library/Frameworks/Python.framework/Versions/2.5/Resources/ 
Python.app/Contents/MacOS/Python: can't open file 'd-rats': [Errno 2]  
No such file or directory
mnementh:bin drats$ pwd
/opt/local/bin
mnementh:bin drats$ cd
mnementh:~ drats$ cd src/d-rats-0.2.8b7
mnementh:d-rats-0.2.8b7 drats$ /opt/local/bin/python2.5 d-rats
Traceback (most recent call last):
   File "d-rats", line 37, in <module>
     from d_rats import mainapp
   File "/Users/drats/src/d-rats-0.2.8b7/d_rats/mainapp.py", line 50,  
in <module>
     import chatgui
   File "/Users/drats/src/d-rats-0.2.8b7/d_rats/chatgui.py", line 32,  
in <module>
     from xfergui import FileTransferGUI, FormTransferGUI
   File "/Users/drats/src/d-rats-0.2.8b7/d_rats/xfergui.py", line 29,  
in <module>
     import formgui
   File "/Users/drats/src/d-rats-0.2.8b7/d_rats/formgui.py", line 22,  
in <module>
     import libxml2
ImportError: No module named libxml2


Here's me trying to install the library it says it can't find:
mnementh:d-rats-0.2.8b7 drats$ sudo port install libxml2
Skipping org.macports.activate (libxml2 ) since this port is already  
active
--->  Cleaning libxml2



and here is my environement for this user (which is a special d-rats  
user so that it doesn't use the fink setup in my normal home  
environment).

mnementh:d-rats-0.2.8b7 drats$ env
MANPATH=/opt/local/share/man:/Users/fligor/man:/usr/X11R6/man:/usr/ 
local/share/man:/usr/share/man:/usr/local/man:/usr/local/share/man::/ 
usr/X11/share/man
TERM=vt100
SHELL=/bin/bash
USER=drats
ENV=/Users/drats/.bashrc
PATH=/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/ 
usr/local/bin:/usr/bin:/bin:/usr/sbin:/usr/local/sbin:/sbin:/usr/X11R6/ 
bin:/etc:/local/etc:/bin/powerpc-apple-darwin::/usr/X11/bin
PWD=/Users/drats/src/d-rats-0.2.8b7
EDITOR=/usr/bin/vi
SHLVL=1
HOME=/Users/drats
DISPLAY=:0.0
_=/usr/bin/env
OLDPWD=/Users/drats



Any ideas or help on what to try next would be appreciated.  at the  
moment I don't have a lot of spare time to play with this so if anyone  
"just knows" what I need to do, that would be a big help.


thanks,

-debbie



More information about the drats_users mailing list