Menu

#509 wrong python site-packages dir on Fedora x86_64

v_1.0.1
closed
nobody
Python (5)
5
2012-09-12
2010-11-23
No

The python module installs to the wrong site-packages directory on Fedora x86_64. This is with avogadro 1.0.1. On 64bit Fedora (14), there are 2 different directories for python modules:

/usr/lib64/python2.7/site-packages - contains 64bit modules
/usr/lib/python2.7/site-packages - contains cpu arch independent modules (and any 32bit modules, for multilib installations)

The Avogadro.so file is clearly 64bit compiled code, so should be under /usr/lib64. The fix is to use sysconfig.get_python_lib(1) instead of sysconfig.get_python_lib() - on 32bit, these both return the same directory.

Discussion

  • Edward Sheldrake

    trivial fix

     
  • Konstantin Tokarev

    Thank you, fix submitted to Gerrit

    BTW, does Avogadro Python work fine for you with Python 2.7?

     
  • Edward Sheldrake

    No, it's not working - it's the same error as in https://bugzilla.redhat.com/show_bug.cgi?id=642248

    Moving the module doesn't fix it (and I didn't really expect it to).

     
  • Geoff Hutchison

    Geoff Hutchison - 2011-01-23

    I just pushed this patch to Gerritt for 1.0 -- using sysconfig.get_python_lib(1) instead of sysconfig.get_python_lib().

    Thanks!

     
  • Marcus D. Hanwell

    This fix was applied in 1.0 and master. It should make it into our next release.