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

M.-A. Lemburg mal at egenix.com
Mon Jan 19 11:18:54 CET 2009


On 2009-01-14 17:14, Joseph Reeves wrote:
> Thanks Marc-Andre,
> 
> It appears I didn't have cpp installed. I've installed that the phone
> but error with the results below:
> 
> http://pastebin.com/f3473c120
> 
> It seems to be a lack of time.h and python.h that is causing issues
> this time. I've not got a working phone today, but will try installing
> all the available libs tomorrow and seeing how far I get.
> 
> On the subject, I see that the eGenix website states:
> 
> "If you need distribution archives for platforms not mentioned here,
> please contact support at egenix.com for details. It is very likely that
> we can find a way to help you."
> 
> I'll try sending an email - the openmoko distribution makes great use
> of python and it seems that there is a great potential for the mx Base
> Distribution on this phone; an ipk based install file could be very
> popular.

I don't think we can support OpenMoko at this time. However, if there
are things we'd need to change in the setup or configuration to make
compilation easier on such more exotic platforms, we'll of course try
to help.

Thanks,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Jan 19 2009)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        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/


> Cheers,
> 
> Joseph
> 
> 
> 
> 2008/12/15 M.-A. Lemburg <mal at egenix.com>:
>> 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