Re: Brl-cad with clojure

2019-07-09 Thread Oleksandr Shulgin
On Tue, Jul 9, 2019 at 10:35 AM Vikram Shaw  wrote:

> I want to create a Brl-cad project using Clojure programming language in
> which I can create a database and some solid figure like sphere.
> I have written the code using ``sh`` clojure function but getting error.
> The ``sh`` function is working fine as I have checked in repl.
> This is the code I'm using:
> *(ns brl-cad.core*
> *(:require [clojure.java.shell :refer [sh]]))*
>
> *(defn example []*
> *(println (:out (sh "-c" "./mged" "test.g"*
>
> I have added the mged path also: 
> */usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:Applications/BRL-CAD\
> \:\ MGED\ 7.24.0.app/Contents/Resources/rel-7.24.0/bin:/opt/X11/bin*
>
> Error which I'm getting: *Execution error (IOException) at
> java.lang.ProcessImpl/forkAndExec (ProcessImpl.java:-2).*
> *error=2, No such file or directory*
>
> I am using Mac OSX.
> I'm having problem with creating database and solid figure like sphere.
>

Hi,

This doesn't seem to be a Clojure-specific question or a question about
"creating a database and a solid figure".

You are trying to run mged binary, but it's not in the current directory of
the process that runs your Clojure program apparently.

If it's on the PATH, then you should run it w/o prefixing the command with
"./" (this instructs to look in the current directory and ignores the
search paths).  If the mged binary is installed at "/Applications/BRL-CAD\
\:\ MGED\ 7.24.0.app/Contents/Resources/rel-7.24.0/bin" on your system,
then you should make sure to include the leading forward slash in your PATH
definition for it to be found.

I would recommend trying to make it work outside of your Clojure program
first, before trying to run it with functions from clojure.java.shell
namespace.

Cheers,
--
Alex

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/CACACo5SNpqTnhgd8OR61XgKaV7BovMGyR6AMS30XSSKjEBNnww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] Cognitect Labs' aws-api 0.8.345

2019-07-09 Thread David Chelimsky
Hadil,

We've got a fix ready on master. If you update your deps.edn to use 
sha 971084a0a64a8c10db525ea9f8fdc251787ad058, you can try it out. Please 
report on https://github.com/cognitect-labs/aws-api/issues/88 if you do.

Thanks,
David

On Monday, July 8, 2019 at 9:11:02 AM UTC-5, David Chelimsky wrote:
>
> Please report issues like this directly to 
> https://github.com/cognitect-labs/aws-api/issues to make sure they get on 
> our radar. In this case I've already added 
> https://github.com/cognitect-labs/aws-api/issues/88.
>
> You do need 1.10 to use it to use 1.10 features like Datafy (e.g. with 
> REBL), however we want aws-api to work with 1.9. We'll get a release out 
> soon to address this issue.
>
> Thanks,
> David
>
> On Saturday, July 6, 2019 at 4:59:31 PM UTC-5, Hadil Sabbagh wrote:
>>
>> Yes, I did. It’s working again with aws-api 0.8.305
>>
>> On Jul 6, 2019, at 2:39 PM,   
>> wrote:
>>
>> That’s new in Clojure 1.10. I thought Cognitect AWS stuff required 1.10 
>> from the get-go but I assume you had it working on 1.9?
>>  
>> Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN
>> An Architect's View -- http://corfield.org/
>>
>> "If you're not annoying somebody, you're not really alive."
>> -- Margaret Atwood
>>  
>> *From: *Hadil Sabbagh
>> *Sent: *Saturday, July 6, 2019 1:50 PM
>> *To: *Clojure
>> *Subject: *Re: [ANN] Cognitect Labs' aws-api 0.8.345
>>  
>> Since installing aws-api 0.8.345, I am getting the following error:
>>  
>> ```Unable to resolve symbol: requiring-resolve in this context, 
>> compiling:(cognitect/aws/http.clj:63:10)```
>>
>> On Saturday, July 6, 2019 at 12:14:59 PM UTC-7, David Chelimsky wrote:
>>
>> Cognitect Labs' aws-api 0.8.345 is now available!
>>  
>> CHANGES
>>
>>- Update pom.xml with same deps as deps.edn #86 
>>
>>
>> README: https://github.com/cognitect-labs/aws-api/
>> API Docs: https://cognitect-labs.github.io/aws-api/
>> Changelog: 
>> https://github.com/cognitect-labs/aws-api/blob/master/CHANGES.md
>> Latest Releases of api, endpoints, and all services: 
>> https://github.com/cognitect-labs/aws-api/blob/master/latest-releases.edn
>>  
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clo...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clo...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/clojure/4d2f950b-db35-4437-9172-e1e36b0502ef%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>  
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clo...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clo...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/clojure/5d21151a.1c69fb81.f193c.dbd6%40mx.google.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/36ca3822-0fb4-4cf6-9638-eb21aa89e026%40googlegroups.com.
For more options, visit 

Brl-cad with clojure

2019-07-09 Thread Vikram Shaw
I want to create a Brl-cad project using Clojure programming language in 
which I can create a database and some solid figure like sphere.
I have written the code using ``sh`` clojure function but getting error. 
The ``sh`` function is working fine as I have checked in repl.
This is the code I'm using:
*(ns brl-cad.core*
*(:require [clojure.java.shell :refer [sh]]))*

*(defn example []*
*(println (:out (sh "-c" "./mged" "test.g"*

I have added the mged path also: 
*/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:Applications/BRL-CAD\ 
\:\ MGED\ 7.24.0.app/Contents/Resources/rel-7.24.0/bin:/opt/X11/bin*

Error which I'm getting: *Execution error (IOException) at 
java.lang.ProcessImpl/forkAndExec (ProcessImpl.java:-2).*
*error=2, No such file or directory*

I am using Mac OSX.
I'm having problem with creating database and solid figure like sphere.

Thank You

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/clojure/8cee85cf-4887-4acc-b850-2f8fcc126eee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.