Giter Club home page Giter Club logo

Comments (9)

alexfrom0815 avatar alexfrom0815 commented on July 24, 2024

Hello, I’m not sure what you have encountered here, but I think you can try the following steps:

  1. Install gym and find the package path of your gym, you type print(gym.__path__) in your python interpreter to find it.
  2. Create a folder named ‘user’ under 'your gym path/envs/' and move the 'bpp0' folder into 'your gym path/envs/user', the final path should be 'your gym path/envs/user/bpp0'
  3. Add registration to 'your gym path/envs/__init__.py', The newly added content should be:
    register(
    id='Bpp-v0',
    entry_point='gym.envs.user.bpp0:PackingGame',
    )

This is my solution, maybe not so elegant, but in my experience it works well, I hope it can solve your problem!

Best wishes!

from online-3d-bpp-drl.

strongteck avatar strongteck commented on July 24, 2024

That perfectly solves the problem!
Many thanks for help.

from online-3d-bpp-drl.

Ultraopxt avatar Ultraopxt commented on July 24, 2024

Hello, I’m not sure what you have encountered here, but I think you can try the following steps:

  1. Install gym and find the package path of your gym, you type print(gym.__path__) in your python interpreter to find it.
  2. Create a folder named ‘user’ under 'your gym path/envs/' and move the 'bpp0' folder into 'your gym path/envs/user', the final path should be 'your gym path/envs/user/bpp0'
  3. Add registration to 'your gym path/envs/__init__.py', The newly added content should be:
    register(
    id='Bpp-v0',
    entry_point='gym.envs.user.bpp0:PackingGame',
    )

This is my solution, maybe not so elegant, but in my experience it works well, I hope it can solve your problem!

Best wishes!

Hello, I have followed your steps but got the following error:

AttributeError: module 'gym.envs.user.bpp0' has no attribute 'PackingGame'

Any helps? Many thanks.

from online-3d-bpp-drl.

F2Wang avatar F2Wang commented on July 24, 2024

Hello, I’m not sure what you have encountered here, but I think you can try the following steps:

  1. Install gym and find the package path of your gym, you type print(gym.__path__) in your python interpreter to find it.
  2. Create a folder named ‘user’ under 'your gym path/envs/' and move the 'bpp0' folder into 'your gym path/envs/user', the final path should be 'your gym path/envs/user/bpp0'
  3. Add registration to 'your gym path/envs/__init__.py', The newly added content should be:
    register(
    id='Bpp-v0',
    entry_point='gym.envs.user.bpp0:PackingGame',
    )

This is my solution, maybe not so elegant, but in my experience it works well, I hope it can solve your problem!
Best wishes!

Hello, I have followed your steps but got the following error:

AttributeError: module 'gym.envs.user.bpp0' has no attribute 'PackingGame'

Any helps? Many thanks.

I have the same problem, have you found a solution yet?

from online-3d-bpp-drl.

Ultraopxt avatar Ultraopxt commented on July 24, 2024

Hello, I’m not sure what you have encountered here, but I think you can try the following steps:

  1. Install gym and find the package path of your gym, you type print(gym.__path__) in your python interpreter to find it.
  2. Create a folder named ‘user’ under 'your gym path/envs/' and move the 'bpp0' folder into 'your gym path/envs/user', the final path should be 'your gym path/envs/user/bpp0'
  3. Add registration to 'your gym path/envs/__init__.py', The newly added content should be:
    register(
    id='Bpp-v0',
    entry_point='gym.envs.user.bpp0:PackingGame',
    )

This is my solution, maybe not so elegant, but in my experience it works well, I hope it can solve your problem!
Best wishes!

Hello, I have followed your steps but got the following error:
AttributeError: module 'gym.envs.user.bpp0' has no attribute 'PackingGame'
Any helps? Many thanks.

I have the same problem, have you found a solution yet?

Not yet.

from online-3d-bpp-drl.

alexfrom0815 avatar alexfrom0815 commented on July 24, 2024

Hello, I’m not sure what you have encountered here, but I think you can try the following steps:

  1. Install gym and find the package path of your gym, you type print(gym.__path__) in your python interpreter to find it.
  2. Create a folder named ‘user’ under 'your gym path/envs/' and move the 'bpp0' folder into 'your gym path/envs/user', the final path should be 'your gym path/envs/user/bpp0'
  3. Add registration to 'your gym path/envs/__init__.py', The newly added content should be:
    register(
    id='Bpp-v0',
    entry_point='gym.envs.user.bpp0:PackingGame',
    )

This is my solution, maybe not so elegant, but in my experience it works well, I hope it can solve your problem!
Best wishes!

Hello, I have followed your steps but got the following error:

AttributeError: module 'gym.envs.user.bpp0' has no attribute 'PackingGame'

Any helps? Many thanks.

Sorry, I am unable to determine the cause of this error (gym installation or 'Bpp-v0' registration) due to insufficient information, but I can provide a debugging suggestion.

You can change the variable value of 'env_name' in config.py from 'Bpp-v0' to gym's original environment, such as 'CartPole-v0', (this environment is also registered in 'your gym path/envs/__init__. py'). If the environment of 'CartPole-v0' cannot be loaded, then there is a problem with the installation of gym. Otherwise, the problem lies in the registration of the environment of 'Bpp-v0'. In this case, you can also compare the registration format of the environment 'CartPole-v0' under 'your gym path/envs/__init__. py' to check whether your 'Bpp-v0' is registered correctly. Good luck!

from online-3d-bpp-drl.

Ultraopxt avatar Ultraopxt commented on July 24, 2024

Hello, I’m not sure what you have encountered here, but I think you can try the following steps:

  1. Install gym and find the package path of your gym, you type print(gym.__path__) in your python interpreter to find it.
  2. Create a folder named ‘user’ under 'your gym path/envs/' and move the 'bpp0' folder into 'your gym path/envs/user', the final path should be 'your gym path/envs/user/bpp0'
  3. Add registration to 'your gym path/envs/__init__.py', The newly added content should be:
    register(
    id='Bpp-v0',
    entry_point='gym.envs.user.bpp0:PackingGame',
    )

This is my solution, maybe not so elegant, but in my experience it works well, I hope it can solve your problem!
Best wishes!

Hello, I have followed your steps but got the following error:
AttributeError: module 'gym.envs.user.bpp0' has no attribute 'PackingGame'
Any helps? Many thanks.

Sorry, I am unable to determine the cause of this error (gym installation or 'Bpp-v0' registration) due to insufficient information, but I can provide a debugging suggestion.

You can change the variable value of 'env_name' in config.py from 'Bpp-v0' to gym's original environment, such as 'CartPole-v0', (this environment is also registered in 'your gym path/envs/__init__. py'). If the environment of 'CartPole-v0' cannot be loaded, then there is a problem with the installation of gym. Otherwise, the problem lies in the registration of the environment of 'Bpp-v0'. In this case, you can also compare the registration format of the environment 'CartPole-v0' under 'your gym path/envs/__init__. py' to check whether your 'Bpp-v0' is registered correctly. Good luck!

Many thanks

from online-3d-bpp-drl.

F2Wang avatar F2Wang commented on July 24, 2024

Hello, I’m not sure what you have encountered here, but I think you can try the following steps:

  1. Install gym and find the package path of your gym, you type print(gym.__path__) in your python interpreter to find it.
  2. Create a folder named ‘user’ under 'your gym path/envs/' and move the 'bpp0' folder into 'your gym path/envs/user', the final path should be 'your gym path/envs/user/bpp0'
  3. Add registration to 'your gym path/envs/__init__.py', The newly added content should be:
    register(
    id='Bpp-v0',
    entry_point='gym.envs.user.bpp0:PackingGame',
    )

This is my solution, maybe not so elegant, but in my experience it works well, I hope it can solve your problem!
Best wishes!

Hello, I have followed your steps but got the following error:
AttributeError: module 'gym.envs.user.bpp0' has no attribute 'PackingGame'
Any helps? Many thanks.

Sorry, I am unable to determine the cause of this error (gym installation or 'Bpp-v0' registration) due to insufficient information, but I can provide a debugging suggestion.
You can change the variable value of 'env_name' in config.py from 'Bpp-v0' to gym's original environment, such as 'CartPole-v0', (this environment is also registered in 'your gym path/envs/__init__. py'). If the environment of 'CartPole-v0' cannot be loaded, then there is a problem with the installation of gym. Otherwise, the problem lies in the registration of the environment of 'Bpp-v0'. In this case, you can also compare the registration format of the environment 'CartPole-v0' under 'your gym path/envs/__init__. py' to check whether your 'Bpp-v0' is registered correctly. Good luck!

Many thanks

Hi, don't know if you figured out the issue, for me I should have copied bpp0 folder to under Online-3D-BPP-DRL/envs to gym path/envs/user/bpp0, while I only created a new folder under that path and put an init file in there...

from online-3d-bpp-drl.

strongteck avatar strongteck commented on July 24, 2024

Hello, I’m not sure what you have encountered here, but I think you can try the following steps:

  1. Install gym and find the package path of your gym, you type print(gym.__path__) in your python interpreter to find it.
  2. Create a folder named ‘user’ under 'your gym path/envs/' and move the 'bpp0' folder into 'your gym path/envs/user', the final path should be 'your gym path/envs/user/bpp0'
  3. Add registration to 'your gym path/envs/__init__.py', The newly added content should be:
    register(
    id='Bpp-v0',
    entry_point='gym.envs.user.bpp0:PackingGame',
    )

This is my solution, maybe not so elegant, but in my experience it works well, I hope it can solve your problem!
Best wishes!

Hello, I have followed your steps but got the following error:
AttributeError: module 'gym.envs.user.bpp0' has no attribute 'PackingGame'
Any helps? Many thanks.

Sorry, I am unable to determine the cause of this error (gym installation or 'Bpp-v0' registration) due to insufficient information, but I can provide a debugging suggestion.
You can change the variable value of 'env_name' in config.py from 'Bpp-v0' to gym's original environment, such as 'CartPole-v0', (this environment is also registered in 'your gym path/envs/__init__. py'). If the environment of 'CartPole-v0' cannot be loaded, then there is a problem with the installation of gym. Otherwise, the problem lies in the registration of the environment of 'Bpp-v0'. In this case, you can also compare the registration format of the environment 'CartPole-v0' under 'your gym path/envs/__init__. py' to check whether your 'Bpp-v0' is registered correctly. Good luck!

Many thanks

Hi, don't know if you figured out the issue, for me I should have copied bpp0 folder to under Online-3D-BPP-DRL/envs to gym path/envs/user/bpp0, while I only created a new folder under that path and put an init file in there...

Make sure gym is well installed before you dig deeper to the copy folder stuff by testing it with a standard environment (say
'CartPole-v0' as pointed by alex).

from online-3d-bpp-drl.

Related Issues (19)

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.