EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EpicsQT and Archiver Appliance
From: Michael Davidsaver <[email protected]>
To: Abdalla Ahmad <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Wed, 26 Apr 2017 09:17:14 -0400
On 04/26/2017 06:50 AM, Abdalla  Ahmad wrote:
> Dear Michael
> 
> Can you please elaborate more on installing the proxy you wrote? I'm having difficulties running it on Scientific Linux 7 machine.
> 
> First I have the requirements (numpy, twisted and protocol-buffer), then I did:
> 
> python setup.py build
> sudo python setup.py install
> 
> After that I ran the command as in the README:
> 
> twistd -n a2aproxy -P 8888 AA-SERVER-URL:17665
> 
> And then I get "Wrong number of arguments". 

oops, the README was wrong!  '-A' is missing.  Now fixed.

An known working example from nsls2 can be seen in
debian/channelarchiver-a2aproxy.default in the source tree.

> twistd a2aproxy -P 8889 -A http://capp01.cs.nsls2.local:17665/mgmt/bpl/getApplianceInfo -d


> Running "twistd a2aproxy" gives an error like "No module named EPICSEvent_pb2". Also when reordering the arguments it does not recognize the "-n" option.

twistd is picky about ordering of arguments as these are parsed by
different code.  Arguments before the application name ('a2aproxy' in
this case) are for twisted itself (run 'twistd -h').  The remaining
arguments are for the application.  (run 'twistd a2aproxy -h')


> "No module named EPICSEvent_pb2"

Switch to some other directory and retry.

By default python searches the current directory before /usr/local.  I
would guess that, after installation, your shell is still in the source
directory, so 'import carchive' finds the copy in the source tree which
doesn't contain the generated files.

> python -c 'import carchive; print carchive.__file__'

Will show the path of the module which was imported.


Replies:
RE: EpicsQT and Archiver Appliance Abdalla Ahmad
References:
RE: EpicsQT and Archiver Appliance Abdalla Ahmad

Navigate by Date:
Prev: RE: EpicsQT and Archiver Appliance Abdalla Ahmad
Next: Re: caRepeater not found when starting ioc under procServ Hinko Kocevar
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: EpicsQT and Archiver Appliance Abdalla Ahmad
Next: RE: EpicsQT and Archiver Appliance Abdalla Ahmad
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024