Coder Social home page Coder Social logo

Comments (13)

praveen-palanisamy avatar praveen-palanisamy commented on June 1, 2024

Hi @Yiquan-lol ,
This is likely related to #27. To confirm, could you add the python package versions you are using in your env?
You can run this command: pip freeze > packages.txt and upload the packages.txt in your reply.

from macad-gym.

Yiquan-lol avatar Yiquan-lol commented on June 1, 2024

package.txt
I created the environment from the conda-env.yml file

from macad-gym.

praveen-palanisamy avatar praveen-palanisamy commented on June 1, 2024

@Yiquan-lol : Thanks for the python environment info.
I am unfortunately not able to reproduce this error. Could you please try again with this line:
import tensorflow
added after this line:

and report back if your issues is solved/not-solved?:

from macad-gym.

Yiquan-lol avatar Yiquan-lol commented on June 1, 2024

Oh , I followed the same steps to reinstall the Conda environment and basci agent.py is running.Thank you for your previous help

from macad-gym.

Yiquan-lol avatar Yiquan-lol commented on June 1, 2024

I found a problem: after setting up the macad-gym environment, I could run basic-agent.py, but the 'import tensorflow' would tell me that I was missing the cudatoolkit file.
When I used 'conda install cudatoolkit==8.0 condainstall cudnn', I failed to run basic_agent.py and had the same problem as before.

from macad-gym.

praveen-palanisamy avatar praveen-palanisamy commented on June 1, 2024

Thank you for the follow-on and updates!
Could you post the full error log? That'll help to see what's going wrong.

from macad-gym.

Yiquan-lol avatar Yiquan-lol commented on June 1, 2024

After installing the MacAd-Gym environment, you can run basic_agent.py.When running "import tensorflow", "error_1" appears.
error_1.txt
After I install the cudatoolkit and cudnn, run "basic_anent" and "error_2" will appear.
error_2.txt
Can you use TensorFlow directly after installing the MacAd-Gym environment?
Did you install cudatoolkit and cudnn via "conda install"?

from macad-gym.

praveen-palanisamy avatar praveen-palanisamy commented on June 1, 2024

Thanks for the logs with clear explanation!

  1. After you installed cudatoolkit==8.0, did you try adding the import tensorflow to that particular line in that file as mentioned here: #40 (comment) ?

  2. Can you use TensorFlow directly after installing the MacAd-Gym environment?

    Yes. In case this detail helps, I have cuda-8.0 on my system and the following commands sets up the required env vars:

    • export PATH="$PATH:/usr/local/cuda-8.0/bin"
    • export LD_LIBRARY_PATH="/usr/local/cuda-8.0/lib64"
  3. Did you install cudatoolkit and cudnn via "conda install"?

    No

from macad-gym.

Yiquan-lol avatar Yiquan-lol commented on June 1, 2024

I did what you told me, but I still made the same error.
Can I change the tensorFlow version in conda_env.yml and reinstall the macad-yym environment to accommodate the CUDA version of my system?

from macad-gym.

Yiquan-lol avatar Yiquan-lol commented on June 1, 2024

I used the conda directive to install the same version of TensorFlow as yours:
conda install tensorflow-gpu==1.4.1
When I run basic agent.py again, I get a new error:
error_3.txt
I don't know what's going on here

from macad-gym.

praveen-palanisamy avatar praveen-palanisamy commented on June 1, 2024

@Yiquan-lol , did you happen to get this issue resolved?
It doesn't seem to be easily reproducible and your error log points to some issues at the cpython/symbol level, specific to the GNU libc on your system and the CARLA wheel built using cpython.

from macad-gym.

Yiquan-lol avatar Yiquan-lol commented on June 1, 2024

Oh, that's too bad.
I see that your Conda environment has Torch, so maybe I can use PyTorch for training.
Thank you for your help.

from macad-gym.

praveen-palanisamy avatar praveen-palanisamy commented on June 1, 2024

@Yiquan-lol , if you are unblocked, can this issue be closed?

from macad-gym.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.