Just to add, 

Fixing the Numpy include path will probably work, but if you don't want to 
build gym-chrono yourself from source and want to get up and running 
quickly, you could also set-up a docker container using instructions from 
here - https://github.com/projectchrono/gym-chrono/tree/master/docker.

Best
Huzaifa


On Wednesday, February 7, 2024 at 10:04:09 PM UTC-6 JASON Z wrote:

> Prakhar,
>
> As Radu suggested above, the error is with the numpy include directory 
> setting in cmake.
>
> You are welcomed to follow up and open new issues under the gymchrono 
> repo. As the linked code is Json's fork and gymchrono is still under 
> development, the github repo might be a better place for us to help you.
>
> Thanks,
> Json
>
> On Wednesday, February 7, 2024 at 3:00:53 PM UTC-6 Radu Serban wrote:
>
>> Prakhar,
>>
>>  
>>
>> First of all, you are using a non-official fork of Chrono.  If you 
>> want/need, for whatever reasons, use that particular code, you will need to 
>> talk to the owner of that fork (in this case, Json).
>>
>> Here, we can only provide support for the official Chrono distribution.
>>
>>  
>>
>> Having said that, the error message you get gives a pretty clear hint.  
>> You did not set the CMake NUMPY_INCLUDE_DIR variable quite right: you 
>> should not have the final “/numpy” in the path you provide. 
>>
>>  
>>
>> --Radu
>>
>>  
>>
>> *From:* [email protected] <[email protected]> *On 
>> Behalf Of *Prakhar Gupta
>> *Sent:* Wednesday, February 7, 2024 6:38 PM
>> *To:* ProjectChrono <[email protected]>
>> *Subject:* [chrono] PyChrono and GymChrono Build Questions
>>
>>  
>>
>> Hi, 
>>
>> I am trying to transition to pychrono for RL setup and training. I am 
>> following the instructions on 
>> https://github.com/projectchrono/gym-chrono?tab=readme-ov-file 
>> <https://urldefense.com/v3/__https:/github.com/projectchrono/gym-chrono?tab=readme-ov-file__;!!Mak6IKo!NzNEFitrh8AA997b9hSATIoWxv7JCxOl1b3iimxoWOYIDFnYg4-VEsFy4oGkORgRR7HqZn6IAYPGk_bfXG_WNdw$>
>>  
>> to set up and run gym-chrono.
>>
>>  
>>
>> System: 
>>
>> Ubuntu 20.04 x86_64, GPU: 3 x Nvidia A6000
>>
>>  
>>
>> I get the following error (attached "make_output.txt") while I try to 
>> build the chrono (feature/robot_model) branch. I pulled this branch as in 
>> instructions and edited lines 42-50 to ignore the git info: 
>> https://github.com/zzhou292/chrono/blob/2d86e61777100948b704d95b12d7cb57ee6baaa9/src/chrono_parsers/ChParserURDF.cpp#L42
>>  
>> <https://urldefense.com/v3/__https:/github.com/zzhou292/chrono/blob/2d86e61777100948b704d95b12d7cb57ee6baaa9/src/chrono_parsers/ChParserURDF.cpp*L42__;Iw!!Mak6IKo!NzNEFitrh8AA997b9hSATIoWxv7JCxOl1b3iimxoWOYIDFnYg4-VEsFy4oGkORgRR7HqZn6IAYPGk_bftiXHwT4$>
>>
>>  
>>
>> I installed numpy==1.24.0 with conda and added the include directory 
>> during cmake configure 
>> (/home/user/anaconda3/lib/python3.11/site-packages/numpy/core/include/numpy).
>>  
>> Not sure what's wrong here. Does anyone have any thoughts?
>>
>>  
>>
>> Thanks
>>
>> Prakhar Gupta
>>
>> Grad Student, Clemson U.
>>
>>  
>>
>>  
>>
>>  
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "ProjectChrono" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/projectchrono/35ac0750-b510-49b5-80ed-e8f36e4256a8n%40googlegroups.com
>>  
>> <https://urldefense.com/v3/__https:/groups.google.com/d/msgid/projectchrono/35ac0750-b510-49b5-80ed-e8f36e4256a8n*40googlegroups.com?utm_medium=email&utm_source=footer__;JQ!!Mak6IKo!NzNEFitrh8AA997b9hSATIoWxv7JCxOl1b3iimxoWOYIDFnYg4-VEsFy4oGkORgRR7HqZn6IAYPGk_bfubebvs4$>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/projectchrono/cf7166e7-bd92-47c7-8058-321ca9ab371dn%40googlegroups.com.

Reply via email to