Hi,

you could also try pyowfs ... would be interesting if it works on win32 
though ;)

regards,
marcus.



On 2013-05-27 11:03, Nitish Jha wrote:
> Hi
>
> i tried using the ownet interface but i get this error when i try to get
> a list of the devices. (I m using the fake devices option in owserver)
>
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File "/usr/local/lib/python2.7/dist-packages/ownet/__init__.py", line
> 169, in __init__
>      self.useCache(self._useCache)
>    File "/usr/local/lib/python2.7/dist-packages/ownet/__init__.py", line
> 321, in useCache
>      self._type    = self._connection.read('/system/adapter/name.0')
>    File "/usr/local/lib/python2.7/dist-packages/ownet/connection.py",
> line 126, in read
>      s.connect((self._server, self._port))
>    File "/usr/lib/python2.7/socket.py", line 224, in meth
>      return getattr(self._sock,name)(*args)
> TypeError: an integer is required
>
>
> i have updated the ownet to the latest version from the cvs as earlier
> versions were also giving other errors. '
> i get some errors when running on windows or linux. the server is
> running on linux.
>
> Thanks,
> Nitish
>
>
>
> On Fri, May 24, 2013 at 10:25 PM, Paul Alfille <[email protected]
> <mailto:[email protected]>> wrote:
>
>     If the swig interface is hard to compile under Cygwin (Windows) you
>     can use the pure python ownet.py
>
>     The code is in the distribution, or at
>     http://owfs.cvs.sourceforge.net/viewvc/owfs/owfs/module/ownet/python/
>
>     Basically, this is a python module that connects to owserver via
>     tcp. owserver can be running locally, or on another machine.
>
>
>     On Fri, May 24, 2013 at 11:49 AM, Nitish Jha <[email protected]
>     <mailto:[email protected]>> wrote:
>
>         I wanted to know if it is possible to get python bindings for
>         owfs in windows. I have been using owfs-2.8p14 and it seems to
>         work well. I wanted to use python. Has any one tried building
>         python bindings on windows using swig and have any suggestions ?
>
>         thanks.
>         Nitish
>
>         
> ------------------------------------------------------------------------------
>         Try New Relic Now & We'll Send You this Cool Shirt
>         New Relic is the only SaaS-based application performance
>         monitoring service
>         that delivers powerful full stack analytics. Optimize and
>         monitor your
>         browser, app, & servers with just a few lines of code. Try New Relic
>         and get this awesome Nerd Life shirt!
>         http://p.sf.net/sfu/newrelic_d2d_may
>         _______________________________________________
>         Owfs-developers mailing list
>         [email protected]
>         <mailto:[email protected]>
>         https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
>
>     
> ------------------------------------------------------------------------------
>     Try New Relic Now & We'll Send You this Cool Shirt
>     New Relic is the only SaaS-based application performance monitoring
>     service
>     that delivers powerful full stack analytics. Optimize and monitor your
>     browser, app, & servers with just a few lines of code. Try New Relic
>     and get this awesome Nerd Life shirt!
>     http://p.sf.net/sfu/newrelic_d2d_may
>     _______________________________________________
>     Owfs-developers mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
>
>
>
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to