Bug#69969: I can't figure out how to do what I want to do.

2000-08-25 Thread zooko

Package: dpkg-python
Version: 0.1-4


Hi there!  Thank you all very much for Debian, which is the best thing 
going due to its hard-working package maintainers and its sophisticated 
package tools!


I'm a developer of Mojo Nation, a new open source distributed file-
sharing system (http://mojohackers.org/).  I want to integrate our 
software with Debian, and I downloaded dpkg-python to that end, hoping to
find a method that takes a file as argument and returns a dict mapping 
from fieldname to value.


I read a lot of the dpkg-python code and experimented a bit, calling 
various `parse()' methods on my .deb files.  I couldn't find one that did
what I wanted, and there wasn't any README, example usage code, or 
in-line comments that I could find, so I gave up.


Hopefully dpkg-perl will have some doco indicating how to get the data 
that I want!  Then I'll mung it real quick to output something that looks
just like the repr() of a Python dict, which is the format I need.  :-)


Anyway, before I go look at dpkg-perl, I thought that I should submit a 
bug report.


Regards,

Zooko

P.S.  I really spent a long time on this.  I've tried many variations of
passing `dpkg_packages.read' as the second argument to `tar.parse_file()'
and other experiments.  And I'm not inexperienced with Python nor 
(usually) am I slow to understand.





I'm trying experimental packages for 2.1

2001-09-21 Thread Zooko
hon2-tk has been unpacked
 in this run !  Only configuring it once.
Setting up python-elisp (2.1.1-0) ...
install/python-elisp: ignoring emacsen flavor emacs.
install/python-elisp: byte-compiling for xemacs21...done.

dpkg: dependency problems prevent configuration of python-xmlbase:
 python-xmlbase depends on libxmltok1; however:
  Package libxmltok1 is not installed.
dpkg: error processing python-xmlbase (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python:
 python depends on libssl09; however:
  Package libssl09 is not installed.
dpkg: error processing python (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-tk:
 python-tk depends on python-base (= 1.5.2-16); however:
  Package python-base is not installed.
dpkg: error processing python-tk (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of reportbug:
 reportbug depends on python-base (>= 1.5.2-4); however:
  Package python-base is not installed.
dpkg: error processing reportbug (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python2-dev:
 python2-dev depends on python2-base (= 2.0.1-1); however:
  Package python2-base is not installed.
dpkg: error processing python2-dev (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python2-tk:
 python2-tk depends on python2-base (= 2.0.1-1); however:
  Package python2-base is not installed.
dpkg: error processing python2-tk (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-dev:
 python-dev depends on python (= 2.1.1-0); however:
  Package python is not configured yet.
dpkg: error processing python-dev (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-regrtest:
 python-regrtest depends on python (= 2.1.1-0); however:
  Package python is not configured yet.
dpkg: error processing python-regrtest (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-xmlbase
 python
 python-tk
 reportbug
 python2-dev
 python2-tk
 python-dev
 python-regrtest
--- end included transcript

Okay after resolving the dependencies on libxmltok1 and libssl09 and then re
installing with --auto-deconfigure, then it installs, but:

--- begin included transcript
HACK imp:~/playground/evil-SF-unstable$ python
Python 2.1.1 (#1, Sep  6 2001, 16:59:13) 
[GCC 2.95.4 20010319 (Debian prerelease)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> import math
Traceback (most recent call last):
  File "", line 1, in ?
ImportError: No module named math
>>> 
--- end included transcript

Hm.  It isn't immediately obvious to me what's wrong, and I need to go babysit
now, so that's the show-stopper for today.

Thanks a lot for packaging Python for Debian!

Regards,

Zooko

http://zooko.com/