Discussion:
No module named fcntl
Jürgen Schinker
2005-01-19 22:04:57 UTC
Permalink
!!! Failed to complete python imports. There are internal modules for
!!! python and failure here indicates that you have a problem with python
!!! itself and thus portage is no able to continue processing.

!!! You might consider starting python with verbose flags to see what has
!!! gone wrong. Here is the information we got for this exception:
No module named fcntl

got this error can somebody help

thanks

Jürgen


--
gentoo-***@gentoo.org mailing list
Axel Schmalowsky
2005-01-19 23:39:13 UTC
Permalink
Post by Jürgen Schinker
!!! Failed to complete python imports. There are internal modules for
!!! python and failure here indicates that you have a problem with python
!!! itself and thus portage is no able to continue processing.
!!! You might consider starting python with verbose flags to see what has
No module named fcntl
got this error can somebody help
thanks
Jürgen
--
try to re-emerge python because it seems that your python-lib is incomplete.

Axel

--
gentoo-***@gentoo.org mailing list
Jürgen Schinker
2005-01-19 22:56:38 UTC
Permalink
Post by Axel Schmalowsky
Post by Jürgen Schinker
!!! Failed to complete python imports. There are internal modules for
!!! python and failure here indicates that you have a problem with python
!!! itself and thus portage is no able to continue processing.
!!! You might consider starting python with verbose flags to see what has
No module named fcntl
got this error can somebody help
thanks
Jürgen
--
try to re-emerge python because it seems that your python-lib is incomplete.
Axel
how can i do this with emerge not working?

--
gentoo-***@gentoo.org mailing list
Axel Schmalowsky
2005-01-20 01:58:02 UTC
Permalink
Post by Jürgen Schinker
Post by Axel Schmalowsky
Post by Jürgen Schinker
!!! Failed to complete python imports. There are internal modules for
!!! python and failure here indicates that you have a problem with python
!!! itself and thus portage is no able to continue processing.
!!! You might consider starting python with verbose flags to see what has
No module named fcntl
got this error can somebody help
thanks
Jürgen
--
try to re-emerge python because it seems that your python-lib is incomplete.
Axel
how can i do this with emerge not working?
--
You can download python from http://www.python.org
Unzip it, run ./configure with the parameters portage is using (you'll
find this in file /usr/bin/ebuild.sh in function econf) and then run make.
The parameters portags is using for make install can you find as well in
file /usr/bin/einstall in function einstall.
After that, your python should be complete thus you should be able to
emerge normally.

Axel
Collins Richey
2005-01-20 00:43:39 UTC
Permalink
On Wed, 19 Jan 2005 23:56:38 +0100 (CET), Jürgen Schinker
Post by Jürgen Schinker
Post by Axel Schmalowsky
Post by Jürgen Schinker
!!! Failed to complete python imports. There are internal modules for
!!! python and failure here indicates that you have a problem with python
!!! itself and thus portage is no able to continue processing.
!!! You might consider starting python with verbose flags to see what has
No module named fcntl
got this error can somebody help
thanks
Jürgen
--
try to re-emerge python because it seems that your python-lib is incomplete.
Axel
how can i do this with emerge not working?
Go to /usr/portage/sys-apps/portage/files/README.RESCUE.

Follow the instructions to get a working emerge, then remerge python
and portage.
--
Collins

--
gentoo-***@gentoo.org mailing list
Jürgen Schinker
2005-01-20 13:05:16 UTC
Permalink
Post by Axel Schmalowsky
You can download python from http://www.python.org
Unzip it, run ./configure with the parameters portage is using (you'll
find this in file /usr/bin/ebuild.sh in function econf) and then run make. The
parameters portags is using for make install can you find as well in file
/usr/bin/einstall in function einstall.
After that, your python should be complete thus you should be able to
emerge normally.
what parameters should i use?

econf() {
if [ -z "${ECONF_SOURCE}" ]; then
ECONF_SOURCE="."
fi
if [ -x "${ECONF_SOURCE}/configure" ]; then
if hasq autoconfig $FEATURES && ! hasq autoconfig $RESTRICT; then
if [ -e /usr/share/gnuconfig/ -a -x /bin/basename ]; then
local x
for x in $(find ${S} -type f -name config.guess -o
-name config.sub) ; do
einfo "econf: updating $x with
/usr/share/gnuconfig/$(/bin/basename ${x})"
cp /usr/share/gnuconfig/$(/bin/basename
${x}) ${x}
done
fi
fi

if [ ! -z "${CBUILD}" ]; then
EXTRA_ECONF="--build=${CBUILD} ${EXTRA_ECONF}"
fi

if [ ! -z "${CTARGET}" ]; then
EXTRA_ECONF="--target=${CTARGET} ${EXTRA_ECONF}"
fi

# if the profile defines a location to install libs to aside from
default, pass it on.
# if the ebuild passes in --libdir, they're responsible for the
conf_libdir fun.
if [ ! -z "${CONF_LIBDIR}" ] && [ "${*/--libdir}" == "$*" ]; then
if [ "${*/--prefix}" == "$*" ]; then
CONF_PREFIX="/usr"
else
local args="$(echo $*)"
local -a pref=($(echo ${args/*--prefix[= ]}))
CONF_PREFIX=${pref}
fi
export CONF_PREFIX
EXTRA_ECONF="--libdir=/${CONF_PREFIX}/${CONF_LIBDIR}
${EXTRA_ECONF}"
fi

echo "${ECONF_SOURCE}/configure" \
--prefix=/usr \
--host=${CHOST} \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--datadir=/usr/share \
--sysconfdir=/etc \
--localstatedir=/var/lib \
${EXTRA_ECONF} \
"$@"

"${ECONF_SOURCE}/configure" \
--prefix=/usr \
--host=${CHOST} \
--mandir=/usr/share/man \
--infodir=/usr/share/info \



--
gentoo-***@gentoo.org mailing list
Bastian Balthazar Bux
2005-01-20 13:19:00 UTC
Permalink
Post by Jürgen Schinker
Post by Axel Schmalowsky
You can download python from http://www.python.org
Unzip it, run ./configure with the parameters portage is using (you'll
find this in file /usr/bin/ebuild.sh in function econf) and then run make. The
parameters portags is using for make install can you find as well in file
/usr/bin/einstall in function einstall.
After that, your python should be complete thus you should be able to
emerge normally.
what parameters should i use?
[snip]

./configure \
--prefix=/usr \
--host=x86_64-pc-linux-gnu \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--datadir=/usr/share \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--libdir=/usr/lib \
--with-fpectl \
--enable-shared \
--enable-ipv6 \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--with-threads \
--with-cxx=no \
--enable-unicode=ucs4

this is how it configure on my amd64 system, *change* --host accordingly
to your /etc/make.conf, you can choose to not enable ipv6



--
gentoo-***@gentoo.org mailing list
Axel Schmalowsky
2005-01-20 14:25:55 UTC
Permalink
Post by Jürgen Schinker
Post by Axel Schmalowsky
You can download python from http://www.python.org
Unzip it, run ./configure with the parameters portage is using (you'll
find this in file /usr/bin/ebuild.sh in function econf) and then run make. The
parameters portags is using for make install can you find as well in file
/usr/bin/einstall in function einstall.
After that, your python should be complete thus you should be able to
emerge normally.
what parameters should i use?
econf() {
if [ -z "${ECONF_SOURCE}" ]; then
ECONF_SOURCE="."
fi
if [ -x "${ECONF_SOURCE}/configure" ]; then
if hasq autoconfig $FEATURES && ! hasq autoconfig $RESTRICT; then
if [ -e /usr/share/gnuconfig/ -a -x /bin/basename ]; then
local x
for x in $(find ${S} -type f -name config.guess -o
-name config.sub) ; do
einfo "econf: updating $x with
/usr/share/gnuconfig/$(/bin/basename ${x})"
cp /usr/share/gnuconfig/$(/bin/basename
${x}) ${x}
done
fi
fi
if [ ! -z "${CBUILD}" ]; then
EXTRA_ECONF="--build=${CBUILD} ${EXTRA_ECONF}"
fi
if [ ! -z "${CTARGET}" ]; then
EXTRA_ECONF="--target=${CTARGET} ${EXTRA_ECONF}"
fi
# if the profile defines a location to install libs to aside from
default, pass it on.
# if the ebuild passes in --libdir, they're responsible for the
conf_libdir fun.
if [ ! -z "${CONF_LIBDIR}" ] && [ "${*/--libdir}" == "$*" ]; then
if [ "${*/--prefix}" == "$*" ]; then
CONF_PREFIX="/usr"
else
local args="$(echo $*)"
local -a pref=($(echo ${args/*--prefix[= ]}))
CONF_PREFIX=${pref}
fi
export CONF_PREFIX
EXTRA_ECONF="--libdir=/${CONF_PREFIX}/${CONF_LIBDIR}
${EXTRA_ECONF}"
fi
echo "${ECONF_SOURCE}/configure" \
--prefix=/usr \
--host=${CHOST} \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--datadir=/usr/share \
--sysconfdir=/etc \
--localstatedir=/var/lib \
${EXTRA_ECONF} \
The parameters above are the one portage is using.
Additionally, you can choose optional parameters which you'll get by
running ./configure --help
Post by Jürgen Schinker
"${ECONF_SOURCE}/configure" \
--prefix=/usr \
--host=${CHOST} \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--
Collins Richey
2005-01-20 17:35:37 UTC
Permalink
On Thu, 20 Jan 2005 14:25:55 +0000, Axel Schmalowsky
You can download python from http://www.python.org Unzip it, run
./configure with the parameters portage is using (you'll find this in file
/usr/bin/ebuild.sh in function econf) and then run make. The parameters
portags is using for make install can you find as well in file
/usr/bin/einstall in function einstall. After that, your python should be
complete thus you should be able to emerge normally. what parameters should
i use? econf() { if [ -z "${ECONF_SOURCE}" ]; then ECONF_SOURCE="." fi if [
-x "${ECONF_SOURCE}/configure" ]; then if hasq autoconfig $FEATURES && !
hasq autoconfig $RESTRICT; then if [ -e /usr/share/gnuconfig/ -a -x
/bin/basename ]; then local x for x in $(find ${S} -type f -name
config.guess -o -name config.sub) ; do einfo "econf: updating $x with
/usr/share/gnuconfig/$(/bin/basename ${x})" cp
/usr/share/gnuconfig/$(/bin/basename ${x}) ${x} done fi fi if [ ! -z
"${CBUILD}" ]; then EXTRA_ECONF="--build=${CBUILD} ${EXTRA_ECONF}" fi if [ !
-z "${CTARGET}" ]; then EXTRA_ECONF="--target=${CTARGET} ${EXTRA_ECONF}" fi
# if the profile defines a location to install libs to aside from default,
pass it on. # if the ebuild passes in --libdir, they're responsible for the
conf_libdir fun. if [ ! -z "${CONF_LIBDIR}" ] && [ "${*/--libdir}" == "$*"
]; then if [ "${*/--prefix}" == "$*" ]; then CONF_PREFIX="/usr" else local
args="$(echo $*)" local -a pref=($(echo ${args/*--prefix[= ]}))
CONF_PREFIX=${pref} fi export CONF_PREFIX
EXTRA_ECONF="--libdir=/${CONF_PREFIX}/${CONF_LIBDIR} ${EXTRA_ECONF}" fi echo
"${ECONF_SOURCE}/configure" \ --prefix=/usr \ --host=${CHOST} \
--mandir=/usr/share/man \ --infodir=/usr/share/info \ --datadir=/usr/share \
parameters above are the one portage is using.
Additionally, you can choose optional parameters which you'll get by
running ./configure --help
"${ECONF_SOURCE}/configure" \ --prefix=/usr \ --host=${CHOST} \
--mandir=/usr/share/man \ --infodir=/usr/share/info \ --
As I mentioned earlier, gentoo already has recovery procedures builtin
(README.RESCUE), so you don't need to download and built python from
external sources.

If you want to do it the hard way, fine and dandy, but it's not necessary.
--
Collins

--
gentoo-***@gentoo.org mailing list
Loading...