Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#21569 - [avogadro] needs a rebuild for sip
Attached to Project:
Arch Linux
Opened by zeld (zeld) - Tuesday, 02 November 2010, 12:06 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 18 December 2010, 14:09 GMT
Opened by zeld (zeld) - Tuesday, 02 November 2010, 12:06 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 18 December 2010, 14:09 GMT
|
DetailsDescription:
I tried to recompile avogadro from source because the binary do not run and give me this error: $ avogadro The _C_API object in the sip python module is invalid. Could not initialize SIP API ! terminate called after throwing an instance of 'boost::python::error_already_set' Aborted $ Additional info: extra/avogadro 1.0.1-1 zeld |
This task depends upon
Closed by Andrea Scarpino (BaSh)
Saturday, 18 December 2010, 14:09 GMT
Reason for closing: Fixed
Additional comments about closing: avogadro 1.0.1-5
Saturday, 18 December 2010, 14:09 GMT
Reason for closing: Fixed
Additional comments about closing: avogadro 1.0.1-5
/build/src/avogadro-1.0.1/libavogadro/src/python/sip.cpp: In static member function 'static void* QClass_converters<T>::QClass_from_PyQt(PyObject*)':
/build/src/avogadro-1.0.1/libavogadro/src/python/sip.cpp:207:21: error: 'struct sipSimpleWrapper' has no member named 'u'
make[2]: *** [libavogadro/src/python/CMakeFiles/python-module.dir/sip.cpp.o] Error 1
make[1]: *** [libavogadro/src/python/CMakeFiles/python-module.dir/all] Error 2
The _C_API object in the sip python module is invalid.
Could not initialize SIP API !
terminate called after throwing an instance of 'boost::python::error_already_set'
Aborted
Fedora 14 gives the same error as well
there are three options:
a) Downgrade sip to 4.10.5-1.
b) Wait till the next release.
c) Apply the following path to avogadro ( http://bugs.gentoo.org/attachment.cgi?id=254359):
--- libavogadro/src/python/sip.cpp.old 2010-11-14 14:55:44.928487067 -0800
+++ libavogadro/src/python/sip.cpp 2010-11-14 15:37:31.589487066 -0800
@@ -198,13 +198,19 @@
#endif
// reinterpret to sipWrapper
+#if SIP_API_MAJOR_NR >= 8
+ sipSimpleWrapper *wrapper = reinterpret_cast<sipSimpleWrapper*>(obj_ptr);
+ return wrapper->data;
+#else
+
#ifdef SIP_4_8
sipSimpleWrapper *wrapper = reinterpret_cast<sipSimpleWrapper*>(obj_ptr);
#else
sipWrapper *wrapper = reinterpret_cast<sipWrapper*>(obj_ptr);
+ // return the C++ pointer
#endif
- // return the C++ pointer
return wrapper->u.cppPtr;
+#endif
}
QClass_converters()
we already include that patch into avogadro
http://gold.cryos.net:8080/#change,299
This patch has already been applied to the master. But until a new release appear no chance.
and we already applied it in our package
The _C_API object in the sip python module is invalid.
Could not initialize SIP API !
terminate called after throwing an instance of 'boost::python::error_already_set'
http://gold.cryos.net:8080/#change,299
Only one file has to be changed: avogadro/src/python/sip.cpp. No patch is needed for cmake/modules/PythonDeps.cmake.
I tried to look for a working patch on gold.cryos.net but the site takes several minutes to load a nearly empty page.
Considering that the package is completely unusable because of this, perhaps the severity should be higher than "low". ;)
https://bugzilla.redhat.com/show_bug.cgi?id=642248
I applied the patch but the build fails:
[ 95%] Building CXX object avogadro/src/CMakeFiles/avogadro-app.dir/qrc_avogadro.cxx.o
Linking CXX executable ../../bin/avogadro
[ 95%] Built target avogadro-app
make: *** [all] Error 2
Aborting...