[egenix-users] Re: python-egenix-mxdatetime on Openmoko

M.-A. Lemburg mal at egenix.com
Mon Dec 15 15:46:24 CET 2008


Looking through the postings, your problem appears to be related
the compiler setup, not mxDateTime itself:

"""
>>> arm-angstrom-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No
>>> such file or directory
>>> error: command 'arm-angstrom-linux-gnueabi-gcc' failed with exit status 1
"""

The ImportError just tells you that no .so was found - because this
wasn't compiled.

On 2008-12-12 17:33, Joseph Reeves wrote:
> Apologies for the spam, but I have more information if it helps:
> 
> root at om-gta02:~/gnue-forms-0.6.1# python
> Python 2.5.2 (r252:60911, Oct 14 2008, 01:51:25)
> [GCC 4.1.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import mx.DateTime
> *** You don't have the (right) mxDateTime binaries installed !
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python2.5/site-packages/mx/DateTime/__init__.py",
> line 8, in <module>
>     from DateTime import *
>   File "/usr/lib/python2.5/site-packages/mx/DateTime/DateTime.py",
> line 9, in <module>
>     from mxDateTime import *
>   File "/usr/lib/python2.5/site-packages/mx/DateTime/mxDateTime/__init__.py",
> line 13, in <module>
>     raise ImportError, why
> ImportError: /usr/lib/python2.5/site-packages/mx/DateTime/mxDateTime/mxDateTime.so:
> cannot open shared object file: No such file or directory
> 
> root at om-gta02:~/gnue-forms-0.6.1# cat
> /usr/lib/python2.5/site-packages/mx/DateTime/mxDateTime/__init__.py
> """ mxDateTime - Date and time handling routines and types
> 
>     Copyright (c) 2000, Marc-Andre Lemburg; mailto:mal at lemburg.com
>     Copyright (c) 2000-2008, eGenix.com Software GmbH; mailto:info at egenix.com
>     See the documentation for further information on copyrights,
>     or contact the author. All Rights Reserved.
> """
> try:
>     from mxDateTime import *
>     from mxDateTime import __version__
> except ImportError, why:
>     print "*** You don't have the (right) mxDateTime binaries installed !"
>     raise ImportError, why
>     #from mxDateTime_Python import *
>     #from mxDateTime_Python import __version__
> 
> # Python part of the intialization
> try:
>     import time
>     setnowapi(time.time)
>     del time
> 
> except NameError:
>     pass
> root at om-gta02:~/gnue-forms-0.6.1#
> 
> 
> 
> 
> 2008/12/12 Joseph Reeves <iknowjoseph at gmail.com>:
>> I've just apt-get installed date time onto my Ubuntu machine and
>> recreated the produced file structure onto the Openmoko. Now when I
>> try and install gnue-forms I'm told:
>>
>> root at om-gta02:~/gnue-forms-0.6.1# python setup.py install
>> running install
>> checking GNUe Common Library
>> checking mxDateTime library
>> *** You don't have the (right) mxDateTime binaries installed !
>> ---
>> Could not import the mx.DateTime package.
>> Please install mxDateTime from the mxtools suite.
>> The file 'INSTALL' contains more information about dependencies.
>> root at om-gta02:~/gnue-forms-0.6.1#
>>
>> Obviously the binaries I've apt-get'd onto my laptop are for i686
>> machines, not the arm4 architecture of the Openmoko.
>>
>> Again, any help would be massively appreciated.
>>
>> Thanks, Joseph
>>
>>
>>
>> 2008/12/12 Joseph Reeves <iknowjoseph at gmail.com>:
>>> Dear all,
>>>
>>> I'm trying to install gnue-forms on Openmoko (www.openmoko.org), a
>>> requirement of which is python-egenix-mxdatetime.
>>>
>>> I've installed gcc (4.1.2-r14) downloaded the source directory
>>> (genix-mx-base-3.1.1) and have tried to install as per the
>>> instructions on the egenix website. The installation fails with:
>>>
>>> root at om-gta02:~/egenix-mx-base-3.1.1# python setup.py install
>>> running install
>>> running build
>>> running mx_autoconf
>>> arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -DNDEBUG
>>> -g -O3 -Wall -Wstrict-prototypes -fPIC -D_GNU_SOURCE=1 -I/usr/include
>>> -c _configtest.c -o _configtest.o
>>> arm-angstrom-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No
>>> such file or directory
>>> failure.
>>> removing: _configtest.c _configtest.o
>>> arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -DNDEBUG
>>> -g -O3 -Wall -Wstrict-prototypes -fPIC -D_GNU_SOURCE=1
>>> -I/usr/include/python2.5 -I/usr/include -c _configtest.c -o
>>> _configtest.o
>>> arm-angstrom-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No
>>> such file or directory
>>> failure.
>>> removing: _configtest.c _configtest.o
>>> macros to define: [('BAD_STATIC_FORWARD', '1')]
>>> macros to undefine: ['HAVE_STRPTIME']
>>> running build_ext
>>>
>>> building extension "mx.DateTime.mxDateTime.mxDateTime" (required)
>>> building 'mx.DateTime.mxDateTime.mxDateTime' extension
>>> arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -DNDEBUG
>>> -g -O3 -Wall -Wstrict-prototypes -fPIC -DUSE_FAST_GETCURRENTTIME
>>> -DBAD_STATIC_FORWARD=1 -UHAVE_STRPTIME -Imx/DateTime/mxDateTime
>>> -I/usr/include/python2.5 -I/usr/include -c
>>> mx/DateTime/mxDateTime/mxDateTime.c -o
>>> build/temp.linux-armv4tl-2.5_ucs2/mx-DateTime-mxDateTime-mxDateTime/mx/DateTime/mxDateTime/mxDateTime.o
>>> arm-angstrom-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No
>>> such file or directory
>>> error: command 'arm-angstrom-linux-gnueabi-gcc' failed with exit status 1
>>> root at om-gta02:~/egenix-mx-base-3.1.1#
>>>
>>> Any help getting python-egenix-mxdatetime installed would be greatly
>>> appreciated.
>>>
>>> Thanks, Joseph
>>>
> 
> 
> _______________________________________________________________________
> eGenix.com User Mailing List                     http://www.egenix.com/
> https://www.egenix.com/mailman/listinfo/egenix-users

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Dec 15 2008)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________
2008-12-02: Released mxODBC.Connect 1.0.0      http://python.egenix.com/

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/



More information about the egenix-users mailing list