Re: lock access to serial port

2008-03-19 Thread Andra
I tried ready-made commands for file locking, and turned to that LCK
file just in case some permissions are wrong and that's the reason the
commands fail.

On 19 Marts, 15:43, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2008-03-18, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > how to get ttyS0 serial port for exclusive access? I have a python
> > script that uses this device with AT commands. I need that two
> > instances can call simultaneosuly this python script but only one of
> > them gets the device. I tried fcntl.flock, it was just ignored, put
> > writtable file LCK..ttyS0 in /var/lock,
>
> Using a lock file is the traditional method of providing
> mutually exclusive access to a serial port.
>
> > tried ioctl (but I may not know what are appropriate
> > arguments), googled half a day for various phrases, error
> > messages etcwithout success.
>
> It's unclear what "without success" means.  Lockfiles have been
> used for decades, and they work fine as long as all of the
> applications follow the rules.
>
> --
> Grant
-- 
http://mail.python.org/mailman/listinfo/python-list


Python Twitter Error

2016-02-10 Thread Andra-Irina Vasile
Hello!

Could you be so kind to help me with an issue? I have some problems with
python when I am trying to use the twitter api... I have Python 3.5.1 (32
bit). I tried to reinstall the module, but I am still receiving the same
errors... I attached in this email some screenshots with them.

Thank you in advance!

Best regards,
Andra-Irina Vasile
-- 
https://mail.python.org/mailman/listinfo/python-list