Rubber — a wrapper for LaTeX and friends

rubber module fails to import

Reported by NigelB on 2011-03-15
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Rubber
Undecided
Unassigned

Bug Description

rubber -d proposal.tex
Traceback (most recent call last):
  File "/usr/bin/rubber", line 3, in <module>
    from rubber.cmdline import Main
ImportError: No module named rubber.cmdline
make: *** [proposal.pdf] Error 1

In revision 412:
                src/__init__.py => src/environment.py

as there is now no __init__.py it will not import.
temp fix is to:

           ln -s site-packages/rubber/environment.py site-packages/rubber/__init__.py

this get it working for me, however it would appear that something else was intended.

Jean-Eric Pin (jean-eric-pin) wrote :
Download full text (15.4 KiB)

I have exactly the same bug after installing rubber on MacOS 10.6, although the Installation apparently went well.
See logfile below

rubber -d file.tex
Traceback (most recent call last):
  File "/usr/local/bin/rubber", line 3, in <module>
    from rubber.cmdline import Main
ImportError: No module named rubber.cmdline

rubber-info --help
Traceback (most recent call last):
  File "/usr/local/bin/rubber-info", line 3, in <module>
    from rubber.cmd_info import Main
ImportError: No module named rubber.cmd_info

Just in case, permissions are as follows

rubber$ ls -al
total 368
drwxr-xr-x 22 root wheel 748 2 jan 16:10 .
drwxr-xr-x 4 root wheel 136 2 jan 16:10 ..
-rw-r--r-- 1 root wheel 11497 12 aoû 2010 __init__.py
-rw-r--r-- 1 root wheel 15128 2 jan 16:10 __init__.pyc
-rw-r--r-- 1 root wheel 5492 12 aoû 2010 cmd_info.py
-rw-r--r-- 1 root wheel 7427 2 jan 16:10 cmd_info.pyc
-rw-r--r-- 1 root wheel 4906 12 aoû 2010 cmd_pipe.py
-rw-r--r-- 1 root wheel 6539 2 jan 16:10 cmd_pipe.pyc
-rw-r--r-- 1 root wheel 9644 12 aoû 2010 cmdline.py
-rw-r--r-- 1 root wheel 11082 2 jan 16:10 cmdline.pyc
-rw-r--r-- 1 root wheel 7619 12 aoû 2010 convert.py
-rw-r--r-- 1 root wheel 8922 2 jan 16:10 convert.pyc
drwxr-xr-x 22 root wheel 748 2 jan 16:10 converters
-rw-r--r-- 1 root wheel 7326 12 aoû 2010 depend.py
-rw-r--r-- 1 root wheel 10292 2 jan 16:10 depend.pyc
drwxr-xr-x 44 root wheel 1496 2 jan 16:10 latex_modules
-rw-r--r-- 1 root wheel 11617 12 aoû 2010 tex.py
-rw-r--r-- 1 root wheel 16719 2 jan 16:10 tex.pyc
-rw-r--r-- 1 root wheel 7201 12 aoû 2010 util.py
-rw-r--r-- 1 root wheel 8549 2 jan 16:10 util.pyc
-rw-r--r-- 1 root wheel 51 2 jan 16:09 version.py
-rw-r--r-- 1 root wheel 216 2 jan 16:10 version.pyc

**** Installation logfile *****

$ sudo ./configure
Password:
I found Python, this is a good start.
The configure script is running, good.
The Distutils are installed, good.
The system seems all right, so let's configure Rubber.
settings.py generated
writing rubber.spec...
writing Makefile...
writing src/version.py...

Rubber is now configured. It will use the following Python interpreter:
    /Library/Frameworks/Python.framework/Versions/Current/bin/python
It will be installed in the following directories:
    the main script: /usr/local/bin
    the modules: /usr/local/share/rubber
    the man pages: /usr/local/man
    the info pages: /usr/local/info
(unless you specify otherwise when running `make install')
$ sudo make
/Library/Frameworks/Python.framework/Versions/Current/bin/python setup.py build
running build
running build_py
creating build
creating build/lib
creating build/lib/rubber
copying src/__init__.py -> build/lib/rubber
copying src/cmd_info.py -> build/lib/rubber
copying src/cmd_pipe.py -> build/lib/rubber
copying src/cmdline.py -> build/lib/rubber
copying src/convert.py -> build/lib/rubber
copying src/depend.py -> build/lib/rubber
copying src/tex.py -> build/lib/rubber
copying src/util.py -> build/lib/rubber
copying src/version.py -> build/lib/rubber
creating build/lib/rubber/converters
copying src/converters/__i...

Jean-Eric Pin (jean-eric-pin) wrote :

I made another try by installing rubber through macports and this time it worked fine.

Sorry for the previous post.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers