Comments (9)
Hello, I’m not sure what you have encountered here, but I think you can try the following steps:
- Install gym and find the package path of your gym, you type print(gym.
__path__
) in your python interpreter to find it. - 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'
- 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.
That perfectly solves the problem!
Many thanks for help.
from online-3d-bpp-drl.
Hello, I’m not sure what you have encountered here, but I think you can try the following steps:
- Install gym and find the package path of your gym, you type print(gym.
__path__
) in your python interpreter to find it.- 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'
- 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.
Hello, I’m not sure what you have encountered here, but I think you can try the following steps:
- Install gym and find the package path of your gym, you type print(gym.
__path__
) in your python interpreter to find it.- 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'
- 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.
Hello, I’m not sure what you have encountered here, but I think you can try the following steps:
- Install gym and find the package path of your gym, you type print(gym.
__path__
) in your python interpreter to find it.- 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'
- 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.
Hello, I’m not sure what you have encountered here, but I think you can try the following steps:
- Install gym and find the package path of your gym, you type print(gym.
__path__
) in your python interpreter to find it.- 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'
- 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.
Hello, I’m not sure what you have encountered here, but I think you can try the following steps:
- Install gym and find the package path of your gym, you type print(gym.
__path__
) in your python interpreter to find it.- 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'
- 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.
Hello, I’m not sure what you have encountered here, but I think you can try the following steps:
- Install gym and find the package path of your gym, you type print(gym.
__path__
) in your python interpreter to find it.- 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'
- 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.
Hello, I’m not sure what you have encountered here, but I think you can try the following steps:
- Install gym and find the package path of your gym, you type print(gym.
__path__
) in your python interpreter to find it.- 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'
- 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 (20)
- ModuleNotFoundError: No module named 'baselines.common.vec_env.shmem_vec_env' HOT 2
- When I enabled the rotation, program: "RuntimeError: CUDA error: device-side assert triggered HOT 2
- the training speed problem HOT 1
- EOFError at connection.py HOT 5
- visual graph HOT 2
- Learning Online-3D-BPP-DRL - Get amount of the used containers HOT 3
- Learning Online-3D-BPP-DRL - Get amount of the used containers HOT 1
- Extrapolating to 4D HOT 1
- How to map to real-world data? HOT 1
- Unable to access or Execute the env files bin3D.py HOT 2
- BrokenPipeError HOT 4
- Are there something wrong with readme? HOT 3
- How to run the code with a2c HOT 2
- [Paper] Is Figure 2 (left) correct?
- a mistake that can not solve
- ValueError: cannot reshape array of size 1600 into shape (10,10) HOT 7
- RuntimeError: symeig_cuda: the algorithm failed to converge HOT 5
- RuntimeError: CUDA out of memory. HOT 1
- RuntimeError: Error(s) in loading state_dict for Policy: size mismatch for base.critic_linear.bias HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from online-3d-bpp-drl.