rubber module fails to import
Bug #735255 reported by
NigelB
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rubber |
Invalid
|
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:
as there is now no __init__.py it will not import.
temp fix is to:
ln -s site-packages/
this get it working for me, however it would appear that something else was intended.
To post a comment you must log in.
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 bin/rubber" , line 3, in <module>
Traceback (most recent call last):
File "/usr/local/
from rubber.cmdline import Main
ImportError: No module named rubber.cmdline
rubber-info --help bin/rubber- info", line 3, in <module>
Traceback (most recent call last):
File "/usr/local/
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: Frameworks/ Python. framework/ Versions/ Current/ bin/python share/rubber Frameworks/ Python. framework/ Versions/ Current/ bin/python setup.py build rubber/ converters __i...
/Library/
It will be installed in the following directories:
the main script: /usr/local/bin
the modules: /usr/local/
the man pages: /usr/local/man
the info pages: /usr/local/info
(unless you specify otherwise when running `make install')
$ sudo make
/Library/
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/
copying src/converters/