We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Serial with OSX Leopard (Read 8945 times)
Serial with OSX Leopard
Oct 27th, 2007, 6:37am
 
I just got a copy of Leopard, and I can't get the serial library to work. Maybe someone can help me out. I get the following error.

check_group_uucp(): error testing lock file creation Error details:Permission deniedcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
gnu.io.PortInUseException: Unknown Application

at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)

i tried to run the "macosx_setup.command" script but i got this error:

sudo: niutil: command not found
sudo: niutil: command not found

Hopefully someone can help me out. thank you

Re: Serial with OSX Leopard
Reply #1 - Oct 27th, 2007, 4:52pm
 
I was able to make the serial work, by going into the folder properties and manually changing the permissions for the lock and uucp folder.

Re: Serial with OSX Leopard
Reply #2 - Oct 29th, 2007, 6:07am
 
Hi. I'm experiencing the same problem as you. Could you type down how you made it work, step by step and where I find the folders you mentioned?

Previously I used...

sudo chgrp uucp /var/lock
sudo chmod 775 /var/lock

...to make it work, but it doesn't seem to help under Leopard.

Thanks!
Re: Serial with OSX Leopard
Reply #3 - Oct 29th, 2007, 4:21pm
 
No problem... here you go.

1. Under Finder click on the "Go" Menu
2. Select "Go to Folder..."
3. Type "/var/"
4. Finder will open var folder.
5. Right click on folder named "lock" and select "Get info"
6. Open drop arrow titled "Sharing & Permissions"
7. I set all privileges to: "Read & Write"
8. Close Info
9. Go to the Var folder on the finder and open the "spool" folder
10. Right click on folder named "uucp" and select "Get info"
11. Open drop arrow titled "Sharing & Permissions"
12. I set all privileges to: "Read & Write"
13. Close Info
14. DONE

This is what i did to make it work, I am not sure what impact it might have on security by setting these to read & write, but at least it allows the serial library to work.

Let me know if it worked for you. Good luck!
Re: Serial with OSX Leopard
Reply #4 - Oct 30th, 2007, 8:03am
 
I got it working using this method.  But I had to run the macosx_setup.command first, then go back and fix the permissions.  But for the record, dscl can be used instead of niutil.  Just a heads up for those of us who lost it in the upgrade to the new cat.
Re: Serial with OSX Leopard
Reply #5 - Nov 2nd, 2007, 9:04pm
 
I am alternating between two errors.

After i run the macosx_setup.command, "everyone" is set to Read only in /var/lock.  I notice in the terminal that the group for these perms is _uucp, not uucp.

In that state, I get this error:

Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7

check_group_uucp(): error testing lock file creation Error details:Permission deniedcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
gnu.io.PortInUseException: Unknown Application

at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)

java.lang.RuntimeException: Error inside Serial.<init>()

at processing.serial.Serial.errorMessage(Serial.java:583)

at processing.serial.Serial.<init>(Serial.java:148)

at processing.serial.Serial.<init>(Serial.java:102)

at Temporary_829_3245.setup(Temporary_829_3245.java:10)

at processing.core.PApplet.handleDisplay(PApplet.java:1384)

at processing.core.PGraphics.requestDisplay(PGraphics.java:690)

at processing.core.PApplet.run(PApplet.java:1556)

at java.lang.Thread.run(Thread.java:613)




Then, according to bacadd, I hand edit the "everyone" permissions for /var/lock/ to Read and Write (note /var/spool/uucp is Read/Write in all cases, and doesn't change).  I get this error:

Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7

RXTX uucp_lock() /var/lock/LK.003.009.000 is there
gnu.io.PortInUseException: Unknown Application

at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)

java.lang.RuntimeException: Error inside Serial.<init>()

at processing.serial.Serial.errorMessage(Serial.java:583)

at processing.serial.Serial.<init>(Serial.java:148)

at processing.serial.Serial.<init>(Serial.java:102)

at Temporary_4187_6908.setup(Temporary_4187_6908.java:10)

at processing.core.PApplet.handleDisplay(PApplet.java:1384)

at processing.core.PGraphics.requestDisplay(PGraphics.java:690)

at processing.core.PApplet.run(PApplet.java:1556)

at java.lang.Thread.run(Thread.java:613)
Re: Serial with OSX Leopard
Reply #6 - Nov 3rd, 2007, 4:43pm
 
if you get stuck you may also want to check in with the rxtx mailing list:
http://mailman.qbang.org/mailman/listinfo/rxtx

i'm happy to make changes to the setup script, but don't have a copy of leopard to test such things myself.
Re: Serial with OSX Leopard
Reply #7 - Nov 5th, 2007, 1:28am
 
From the RXTX guys:

Hi,

You will need to get the 2.1-8 code from CVS. See the FAQ for more
information:

http://rxtx.qbang.org/wiki/index.php/FAQ

Andre

I downloaded the development code (2.1-8).
I copied the resulting librxtxSerial.jnilib and RXTXcomm.jar into the /libraries/serial/library/

Yet I still see this on Processing:
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7

Re: Serial with OSX Leopard
Reply #8 - Nov 5th, 2007, 2:45pm
 
thanks for looking into this.

look for other copies of the RXTX files in your sketchbook or libraries folders. barring that, it's possible that they've not changed the rev number in cvs, though usually they mark cvs releases as "pre" or "devel" or something like that.
Re: Serial with OSX Leopard
Reply #9 - Nov 15th, 2007, 11:22pm
 
You could also grab the rxtx libraries from Arduino.  I compiled them with locking disabled to avoid these kinds of issues (and the need for the macosx_setup.command).
Re: Serial with OSX Leopard
Reply #10 - Nov 17th, 2007, 4:12pm
 
great, thanks. will do that.
Re: Serial with OSX Leopard
Reply #11 - Dec 14th, 2007, 8:37am
 
Hi

Is there a new update of Processing planned to address this issue? Is there a release date yet?

Thanks a loti
Re: Serial with OSX Leopard
Reply #12 - Dec 14th, 2007, 7:30pm
 
I got the latest processing 0135, and it worked fine out of the box.
Page Index Toggle Pages: 1