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

Joseph Reeves iknowjoseph at gmail.com
Fri Dec 12 16:33:57 CET 2008


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
>>
>



More information about the egenix-users mailing list