You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by xinfang <pc...@gmail.com> on 2009/02/23 23:41:49 UTC

uses Ant build the donet package for M4 occur problem

i try to uses Ant build M4 on windows .  i according to Read.txt  and 
installed the ANT NANT. Python..etc..
when i running ant command show me no mllib module .  the more info please
refer to below list. 
thanks

=====================================================
C:\Qpid\dotnet\client-010\gentool>ant
Buildfile: build.xml

check_jython_deps:

build:
     [java] Traceback (innermost last):
     [java]   File "C:\Qpid\dotnet\client-010\gentool/codegen", line 24, in
?
     [java] ImportError: no module named mllib

BUILD FAILED
C:\Qpid\dotnet\client-010\gentool\build.xml:38: Java returned: -1

Total time: 2 seconds
C:\Qpid\dotnet\client-010\gentool>
===============================================================


-- 
View this message in context: http://n2.nabble.com/uses-Ant-build-the-donet-package-for-M4-occur-problem-tp2374877p2374877.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: uses Ant build the donet package for M4 occur problem

Posted by Gordon Sim <gs...@redhat.com>.
xinfang wrote:
> i have download form these link .   here is the  last error message 
> C:\Qpid\qpid-M4\qpid-M4\dotnet\client-010\gentool>ant
> Buildfile: build.xml
> check_jython_deps:
> build:
> BUILD SUCCESSFUL
> Total time: 0 seconds
> 
> hoho.. thank you for suggest
> 
> 
> 
> first time i get the package from this url 
> http://svn.apache.org/repos/asf/qpid/trunk/qpid/dotnet/client-010/
> 
> and i found out that why my first time can't build it . because i only
> download the dotnet package into disk. 
> today i try to download all file into disk
> http://svn.apache.org/repos/asf/qpid/trunk
> 
> and go to client-010 folder running ant it works. 

Glad to hear that; thanks for the update!

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: uses Ant build the donet package for M4 occur problem

Posted by xinfang <pc...@gmail.com>.
i have download form these link .   here is the  last error message 
C:\Qpid\qpid-M4\qpid-M4\dotnet\client-010\gentool>ant
Buildfile: build.xml
check_jython_deps:
build:
BUILD SUCCESSFUL
Total time: 0 seconds

hoho.. thank you for suggest



first time i get the package from this url 
http://svn.apache.org/repos/asf/qpid/trunk/qpid/dotnet/client-010/

and i found out that why my first time can't build it . because i only
download the dotnet package into disk. 
today i try to download all file into disk
http://svn.apache.org/repos/asf/qpid/trunk

and go to client-010 folder running ant it works. 

Thanks Gordon

xinfang








-- 
View this message in context: http://n2.nabble.com/uses-Ant-build-the-donet-package-for-M4-occur-problem-tp2374877p2386608.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: uses Ant build the donet package for M4 occur problem

Posted by Gordon Sim <gs...@redhat.com>.
xinfang wrote:
> thanks . may be the donet package should be include this package, or add a
> comment text in Read.txt.because first time i want to try to download it
> from internet ,but doesn't work.  anyway i have get it from python package .
> and install it in my local folder(python folder (c:\Python26\Lib)

Can I confirm you are building from the full M4 tarball (in which case 
it does have the necessary libs included)? I.e. 
http://www.apache.org/dist/qpid/M4/qpid-M4.tar.gz?

The dotnet specific zip 
(http://www.apache.org/dist/qpid/M4/qpid-dotnet-0-10-M4.zip) is just a 
binary package from the looks of things.

> go back the build step:
> i continue build it ..give me "ImportError: No module named templating". ok
> ok search it in python package, no mach file.  oooo .....no idea.  
> 
> try to installed python3.0. think the new version my be include this
> module.... when installed done. got the python3.0 still doesn't work, and
> show me no module named mllib again....  
> 
> faint... uninstall all python .. and installed python2.6 again... installed
> the mllib package again.(copy the package file in c:\Python26\Lib\mllib) .
> ok when i try to running Ant again.  
> still give me the word  " no module name mllib")..    WoWo !!!I'm crash!!
> 
> then i open the Python command line and try to running codegen file's code 
> 
>>> import mllib                                ------------ work
> 
> so make sure only uses Ant can't import the mllib...
> 
> do i need install wxpython2.8.? i guess my be the env config need to change. 
> but i don't know what's i miss.

I'm not sure either I'm afraid and at the moment don't have a windows 
machine to test on. You could try editing the path used for the mllib in 
the ant build file, e.g. change:

   <property name="mllib.dir" location="../../../python" />

to use a windows specific absolute path?

Arnaud, can you suggest anything here? Have you been successful in 
building with ant on windows?

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: uses Ant build the donet package for M4 occur problem

Posted by xinfang <pc...@gmail.com>.
thanks . may be the donet package should be include this package, or add a
comment text in Read.txt.because first time i want to try to download it
from internet ,but doesn't work.  anyway i have get it from python package .
and install it in my local folder(python folder (c:\Python26\Lib)

go back the build step:
i continue build it ..give me "ImportError: No module named templating". ok
ok search it in python package, no mach file.  oooo .....no idea.  

try to installed python3.0. think the new version my be include this
module.... when installed done. got the python3.0 still doesn't work, and
show me no module named mllib again....  

faint... uninstall all python .. and installed python2.6 again... installed
the mllib package again.(copy the package file in c:\Python26\Lib\mllib) .
ok when i try to running Ant again.  
still give me the word  " no module name mllib")..    WoWo !!!I'm crash!!

then i open the Python command line and try to running codegen file's code 

>>import mllib                                ------------ work

so make sure only uses Ant can't import the mllib...

do i need install wxpython2.8.? i guess my be the env config need to change. 
but i don't know what's i miss.

----------------------------------------
C:\Qpid\trunk\gentool>ant
Buildfile: build.xml

check_jython_deps:

build:
     [java] Traceback (innermost last):
     [java]   File "C:\Qpid\trunk\gentool/codegen", line 24, in ?
     [java] ImportError: no module named mllib

BUILD FAILED
C:\Qpid\trunk\gentool\build.xml:38: Java returned: -1

Total time: 1 second
C:\Qpid\trunk\gentool>python
Python 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)]
on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os, sys, mllib
>>> from templating import Parser
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named templating
>>>

-- 
View this message in context: http://n2.nabble.com/uses-Ant-build-the-donet-package-for-M4-occur-problem-tp2374877p2380911.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: uses Ant build the donet package for M4 occur problem

Posted by Gordon Sim <gs...@redhat.com>.
xinfang wrote:
> i try to uses Ant build M4 on windows .  i according to Read.txt  and 
> installed the ANT NANT. Python..etc..
> when i running ant command show me no mllib module .  the more info please
> refer to below list. 

That is a python module, available in the python directory in svn. If 
you check out the python folder alongside dotnet (you will also need the 
specs folder) the ant script should locate it when generating the 
required c# classes.

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org