Failure when using non-default folders

Bug #1177747 reported by Tzvi R.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scribes
New
Undecided
Unassigned

Bug Description

Hi,

When trying to install Scribes manually (ie - not using the maintainers packages) into a non-default folder, in order not to interfere with other modules, installation completes successfully however scribes fails to run with this error:

  Traceback (most recent call last):
    File "/opt/scribes/bin/scribes", line 10, in <module>
      from SCRIBES.Main import main
  ImportError: No module named SCRIBES.Main

I have tried both the latest 0.4 and the repository one with the same result. I'd rather install it in /opt in order to avoid conflicts with existing packages/modules.

In order to make it run I had to manually set this variable prior:
  export PYTHONPATH=/opt/scribes/lib/python2.7/site-packages:$PYTHONPATH

This can probably be avoided if instead of running scribes directly, one would go through a simple shell script, such as:
  #!/bin/sh

  export PYTHONPATH=@PREFIX@/lib/@PYTHON_VER@/site-packages:$PYTHONPATH
  @PREFIX@/bin/scribes.py "$@"

Here's how I built it on Ubuntu 13.04 (x86):

$ bzr branch lp:scribes
$ cd scribes
$ ./configure --prefix=/opt/scribes

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether NLS is requested... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking for intltool >= 0.35.0... 0.50.2 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.14.2
checking for XML::Parser... ok
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for catalogs to be installed... de fr nl it pt_BR sv zh_CN
checking for sed... /bin/sed
checking for yelp... /usr/bin/yelp
checking whether ln -s works... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking gnome-doc-utils >= 0.3.2... yes
checking whether gcc understands -Wno-sign-compare... yes
checking what warning flags to pass to the C compiler... -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare
checking what language compliance flags to pass to the C compiler...
checking what warning flags to pass to the C++ compiler...
checking what language compliance flags to pass to the C++ compiler...
checking for a Python interpreter with version >= 2.5... python
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
Checking for D-Bus (Python Bindings)... yes
Checking for PyGTK... yes
<module 'gtksourceview2' from '/usr/lib/python2.7/dist-packages/gtksourceview2.so'>
Checking for pygtksourceview2... yes
Error: Python bindings for gtkspell was not found.
configure: creating ./config.status
config.status: creating po/Makefile.in
config.status: creating Makefile
config.status: creating help/Makefile
config.status: creating SCRIBES/Makefile
config.status: creating SCRIBES/PluginInitializer/Makefile
config.status: creating SCRIBES/TriggerSystem/Makefile
config.status: creating SCRIBES/TriggerSystem/Bindings/Makefile
config.status: creating SCRIBES/URILoader/Makefile
config.status: creating SCRIBES/EncodingSystem/Makefile
config.status: creating SCRIBES/EncodingSystem/Error/Makefile
config.status: creating SCRIBES/EncodingSystem/Error/GUI/Makefile
config.status: creating SCRIBES/EncodingSystem/ComboBoxData/Makefile
config.status: creating SCRIBES/EncodingSystem/SupportedEncodings/Makefile
config.status: creating SCRIBES/EncodingSystem/SupportedEncodings/GUI/Makefile
config.status: creating SCRIBES/EncodingSystem/SupportedEncodings/GUI/Treeview/Makefile
config.status: creating SCRIBES/SaveProcessInitializer/Makefile
config.status: creating SCRIBES/SaveSystem/Makefile
config.status: creating SCRIBES/SaveSystem/ExternalProcess/Makefile
config.status: creating SCRIBES/GUI/Makefile
config.status: creating SCRIBES/GUI/MainGUI/Makefile
config.status: creating SCRIBES/GUI/MainGUI/StatusBar/Makefile
config.status: creating SCRIBES/GUI/MainGUI/StatusBar/MessageBar/Makefile
config.status: creating SCRIBES/GUI/MainGUI/StatusBar/Feedback/Makefile
config.status: creating SCRIBES/GUI/MainGUI/StatusBar/Feedback/MessageSystem/Makefile
config.status: creating SCRIBES/GUI/MainGUI/Window/Makefile
config.status: creating SCRIBES/GUI/MainGUI/Toolbar/Makefile
config.status: creating SCRIBES/GUI/MainGUI/Toolbar/ToolbarVisibility/Makefile
config.status: creating SCRIBES/GUI/MainGUI/Toolbar/Toolbuttons/Makefile
config.status: creating SCRIBES/GUI/MainGUI/View/Makefile
config.status: creating SCRIBES/GUI/MainGUI/View/DatabaseListeners/Makefile
config.status: creating SCRIBES/GUI/MainGUI/Buffer/Makefile
config.status: creating SCRIBES/GUI/InformationWindow/Makefile
config.status: creating data/Makefile
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing po/stamp-it commands

$ make
$ make install

$ /opt/scribes/bin/scribes
Traceback (most recent call last):
  File "/opt/scribes/bin/scribes", line 10, in <module>
    from SCRIBES.Main import main
ImportError: No module named SCRIBES.Main

Thanks,
   Tzvi.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.