Howdy Volker Yes you're absolutely right, I upgraded Fedora 14 to Fedora 15 ( certainly this includes Python )
Ok, Ich followed your advise and delete both directories and architecture directories /usr/lib/python2.7/site-packages/mwlib /usr/lib/python2.7/site-packages/mwlib.rl and /usr/lib64/python2.7/site-packages/mwlib /usr/lib64/python2.7/site-packages/mwlib.rl easy_install -m mwlib && easy_install -m mwlib.rl You'll find the entire output attached and as you can find at the buttom the --list-writersunfortunately does not work at all even the driver has not been installed. root@hostname:pts/0 ~ # easy_install -m mwlib install_dir /usr/lib/python2.7/site-packages/ Searching for mwlib Reading http://pypi.python.org/simple/mwlib/ Reading http://code.pediapress.com/ Best match: mwlib 0.12.14 Downloading http://pypi.python.org/packages/source/m/mwlib/mwlib-0.12.14.tar.gz#md5=e1967178f9c3e6668129fdfd7528ebe2 Processing mwlib-0.12.14.tar.gz Running mwlib-0.12.14/setup.py -q bdist_egg --dist-dir /root/tmp/ easy_install-McsUBN/mwlib-0.12.14/egg-dist-tmp-MBc956 USING: mwlib.templ.nodes mwlib/templ/nodes.c USING: mwlib.templ.evaluate mwlib/templ/evaluate.c mwlib/_uscan.re: In member function 'int Scanner::scan()': mwlib/_uscan.re:288:56: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] mwlib/templ/nodes.c: In function '__pyx_pf_5mwlib_5templ_5nodes_10SwitchNode__store_key': mwlib/templ/nodes.c:2315:13: warning: variable '__pyx_v_self' set but not used [-Wunused-but-set-variable] mwlib/templ/nodes.c: In function '__pyx_pf_5mwlib_5templ_5nodes_show': mwlib/templ/nodes.c:5733:13: warning: variable '__pyx_v_indent' set but not used [-Wunused-but-set-variable] mwlib/templ/nodes.c: In function '__pyx_pf_5mwlib_5templ_5nodes_8Template__flatten': mwlib/templ/nodes.c:5654:19: warning: '__pyx_v_oldidx' may be used uninitialized in this function [-Wuninitialized] mwlib/templ/evaluate.c: In function '__pyx_pf_5mwlib_5templ_8evaluate_8Expander__parse_raw_template': mwlib/templ/evaluate.c:5064:15: warning: variable '__pyx_v_name' set but not used [-Wunused-but-set-variable] Installing nserve.py script to /usr/bin Installing postman.py script to /usr/bin Installing nslave.py script to /usr/bin Installing mw-post script to /usr/bin Installing mw-check-service script to /usr/bin Installing mw-parse script to /usr/bin Installing mw-serve script to /usr/bin Installing mw-qserve script to /usr/bin Installing mw-render script to /usr/bin Installing mw-client script to /usr/bin Installing mw-watch script to /usr/bin Installing mw-buildcdb script to /usr/bin Installing mw-serve-ctl script to /usr/bin Installing mw-show script to /usr/bin Installing mw-version script to /usr/bin Installing mw-zip script to /usr/bin Installed /usr/lib/python2.7/site-packages/mwlib-0.12.14-py2.7-linux- x86_64.egg Because this distribution was installed --multi-version, before you can import modules from this package in an application, you will need to 'import pkg_resources' and then use a 'require()' call similar to one of these examples, in order to select the desired version: pkg_resources.require("mwlib") # latest installed version pkg_resources.require("mwlib==0.12.14") # this exact version pkg_resources.require("mwlib>=0.12.14") # this version or higher Reading http://code.pediapress.com/dl/ Processing dependencies for mwlib Finished processing dependencies for mwlib root@hostname:pts/0 ~ # easy_install -m mwlib.rl install_dir /usr/lib/python2.7/site-packages/ Searching for mwlib.rl Reading http://pypi.python.org/simple/mwlib.rl/ Reading http://code.pediapress.com/ Best match: mwlib.rl 0.12.8 Downloading http://pypi.python.org/packages/source/m/mwlib.rl/mwlib.rl-0.12.8.tar.gz#md5=6e972a7ca55ec6fa03100ac13023b3ad Processing mwlib.rl-0.12.8.tar.gz Running mwlib.rl-0.12.8/setup.py -q bdist_egg --dist-dir /root/tmp/ easy_install-IsCBmB/mwlib.rl-0.12.8/egg-dist-tmp-rerXK6 Installed /usr/lib/python2.7/site-packages/mwlib.rl-0.12.8-py2.7.egg Because this distribution was installed --multi-version, before you can import modules from this package in an application, you will need to 'import pkg_resources' and then use a 'require()' call similar to one of these examples, in order to select the desired version: pkg_resources.require("mwlib.rl") # latest installed version pkg_resources.require("mwlib.rl==0.12.8") # this exact version pkg_resources.require("mwlib.rl>=0.12.8") # this version or higher Processing dependencies for mwlib.rl Searching for mwlib.ext>=0.9.3,<0.13 Reading http://pypi.python.org/simple/mwlib.ext/ Best match: mwlib.ext 0.12.3 Downloading http://pypi.python.org/packages/source/m/mwlib.ext/mwlib.ext-0.12.3.tar.gz#md5=fb7b87f16c0b79f794d73455e408fecb Processing mwlib.ext-0.12.3.tar.gz Running mwlib.ext-0.12.3/setup.py -q bdist_egg --dist-dir /root/tmp/ easy_install-pf6K8W/mwlib.ext-0.12.3/egg-dist-tmp-gcFuwq upstream-src/src/rl_addons/rl_accel/_rl_accel.c: In function 'hex32': upstream-src/src/rl_addons/rl_accel/_rl_accel.c:793:2: warning: format '%X' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat] upstream-src/src/rl_addons/rl_accel/_rl_accel.c: In function '_instanceStringWidthU': upstream-src/src/rl_addons/rl_accel/_rl_accel.c:1200:5: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] upstream-src/src/rl_addons/rl_accel/_rl_accel.c: In function 'Box_set_character': upstream-src/src/rl_addons/rl_accel/_rl_accel.c:1393:4: warning: format '%d' expects argument of type 'int', but argument 3 has type 'Py_ssize_t' [-Wformat] upstream-src/src/rl_addons/rl_accel/_rl_accel.c: In function '_instanceStringWidthU': upstream-src/src/rl_addons/rl_accel/_rl_accel.c:1225:2: warning: 'f' may be used uninitialized in this function [-Wuninitialized] upstream-src/src/rl_addons/rl_accel/_rl_accel.c:1224:2: warning: 't' may be used uninitialized in this function [-Wuninitialized] upstream-src/src/rl_addons/rl_accel/_rl_accel.c:1223:2: warning: 'L' may be used uninitialized in this function [-Wuninitialized] Installed /usr/lib/python2.7/site-packages/mwlib.ext-0.12.3-py2.7- linux-x86_64.egg Because this distribution was installed --multi-version, before you can import modules from this package in an application, you will need to 'import pkg_resources' and then use a 'require()' call similar to one of these examples, in order to select the desired version: pkg_resources.require("mwlib.ext") # latest installed version pkg_resources.require("mwlib.ext==0.12.3") # this exact version pkg_resources.require("mwlib.ext>=0.12.3") # this version or higher Finished processing dependencies for mwlib.rl root@hostname:pts/0 ~ # mw-render --writers Usage: mw-render [OPTIONS] [ARTICLETITLE...] mw-render: error: no such option: --writers root@hostname:pts/0 ~ # mw-render --list-writers xhtml XHTML 1.0 Transitional odf OpenDocument Text docbook DocBook XML On 14 Jun., 15:52, Volker Haas <[email protected]> wrote: > Did you recently upgrade your OS (which in turn upgraded python?)? > > In any case you should start out fresh. > > Delete old mwlib/mwlib.rl (assuming you used easy_install to install) > > easy_install -m mwlib > easy_install -m mwlib.rl > > check /usr/lib64/python2.7/site-packages/mwlib/ and the mwlib.rl > directory for left overs > > After that install again: > > easy_install mwlib > easy_install mwlib.rl > > On 06/09/2011 02:20 PM, zuul wrote: > > > > > > > > > > > File "/usr/lib/python2.7/site-packages/pkg_resources.py", line > > 1959, > > in load > > raise ImportError("%r has no %r attribute" % (entry,attr)) > > ImportError:<module 'mwlib._version' from > > '/usr/lib64/python2.7/site-packages/mwlib/_version.pyc'> has no 'main' > > attribute > > > I guess that you seams to be right - but I followed exactly the > > instructions ... how can I fix this issue? > > > Sincerely > > Wolf-Agathon > > > On 9 Jun., 11:08, Volker Haas<[email protected]> wrote: > >> On 06/02/2011 05:27 PM, zuul wrote: > > >>> I'm currently running the following environment > >>> Fedora 14 > >>> Python 2.7 > >>> gcc 4.5.1 > >>> mwlib 12.14 > >>> mwlib.rl 12.8 > >>> both mw-libraries were downloaded via git > >>> kernel 2.6.35.13 latest available via yum download > >>> whenever I run mw-render --list-writers I'm getting the following > >>> output > >>> bash $ mw-render --list-writers > >>> xhtml XHTML 1.0 Transitional > >>> odf OpenDocument Text > >>> docbook DocBook XML > >>> rl<NOT LOADABLE: No module named fontswitcher> > >> The message "<NOT LOADABLE: No module named fontswitcher> " indicates > >> that you are using incompatible versions of mwlib and mwlib.rl. > > >> Please execute the following command and post the output: mw-version > > >> I believe there is still and old version of mwlib/mwlib.rl somewhere on > >> your system. > > >> -- > >> volker haas brainbot technologies ag > >> fon +49 6131 2116394 boppstra e 64 > >> fax +49 6131 2116392 55118 mainz > >> [email protected] http://www.brainbot.com/ > > -- > volker haas brainbot technologies ag > fon +49 6131 2116394 boppstra e 64 > fax +49 6131 2116392 55118 mainz > [email protected] http://www.brainbot.com/ -- You received this message because you are subscribed to the Google Groups "mwlib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mwlib?hl=en.
