Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot upgrade/install the newest Minerl package #558

Closed
Smu-Tan opened this issue Jul 13, 2021 · 14 comments
Closed

Cannot upgrade/install the newest Minerl package #558

Smu-Tan opened this issue Jul 13, 2021 · 14 comments
Labels
bug Something isn't working question Issue is a question

Comments

@Smu-Tan
Copy link

Smu-Tan commented Jul 13, 2021

I installed Minerl 0.3.6 version, but failed to upgrade it.

Here's the error I encountered:

image

@Miffyli
Copy link
Contributor

Miffyli commented Jul 13, 2021

Hmm this might be some remnant files that do not wish to be deleted. I think your best bet is to either manually remove the directory in question and then call pip install minerl, or to create a fresh environment.

@Miffyli Miffyli added the question Issue is a question label Jul 13, 2021
@Smu-Tan
Copy link
Author

Smu-Tan commented Jul 13, 2021

Hmm this might be some remnant files that do not wish to be deleted. I think your best bet is to either manually remove the directory in question and then call pip install minerl, or to create a fresh environment.

Thx for help! I tried to delete files that were mentioned in the errors then install minerl, as well as create a new environment. Unfortunately, both methods cannot work.

@Miffyli
Copy link
Contributor

Miffyli commented Jul 13, 2021

Hmm quick googling seems to indicate this might be a OS issue (e.g. anti-virus locking files) pypa/pip#4734

Does the package install correctly for you? This seems to be some temp cleaning up issues. You can try this by opening Python and doing import minerl. Some people suggest running the pip command as admin (not really super safe, but that is just how Windows wants do things...).

@SammyTaleb
Copy link

SammyTaleb commented Jul 13, 2021

I have exactly the same issue, I cannot install the minerl package. A quick view to the traceback error shows that the building fails because the folder directory cannot be found : "[Win Error 3]"

image

@Miffyli Miffyli added the bug Something isn't working label Jul 13, 2021
@Smu-Tan
Copy link
Author

Smu-Tan commented Jul 13, 2021

I have exactly the same issue, I cannot install the minerl package. A quick view to the traceback error shows that the building fails because the folder directory cannot be found : "[Win Error 3]"

image

Can you try pip install minerl==0.3.6? that's how I installed the package before, but I cant upgrade it to 0.4.0.

@Miffyli
Copy link
Contributor

Miffyli commented Jul 13, 2021

For the time being you can try using pip install minerl==0.3.7. This version has most of the utilities of 0.4.0, except for the new BASALT environments and a new dataloader, but you can still get started with it :)

Meanwhile could you guys provide the environments and operating systems you use so I could try replicating this issue (e.g. are you using anaconda? Windows 10/11? etc)

@Smu-Tan
Copy link
Author

Smu-Tan commented Jul 13, 2021

For the time being you can try using pip install minerl==0.3.7. This version has most of the utilities of 0.4.0, except for the new BASALT environments and a new dataloader, but you can still get started with it :)

Meanwhile could you guys provide the environments and operating systems you use so I could try replicating this issue (e.g. are you using anaconda? Windows 10/11? etc)

Hi, 0.3.7 works for me! I'm using windows 10 (version 2004), conda 4.9.2.

@SammyTaleb
Copy link

@Smu-Tan I've tried the version 0.3.6 but no distribution is found for matplotlib==3.0.3

@Miffyli minerl==0.3.7 failed building wheel but curiously it works.

I am using anaconda on Windows 10 20H2
The environment is a fresh one, with only tensorflow, numpy and their dependencies installed on it
Do you need other details ?

@Miffyli
Copy link
Contributor

Miffyli commented Jul 13, 2021

Thanks @Smu-Tan and @SammyTaleb ! This should be enough, I will look into this in the following days :)

@Miffyli
Copy link
Contributor

Miffyli commented Jul 13, 2021

Hmm I was not able to reproduce the error on my machine :/. Steps:

  1. Install miniconda (Python 3.8) from here: https://docs.conda.io/en/latest/miniconda.html
  2. Create new environment in the miniconda prompt and install minerl:
conda create -n minerl python=3.9
conda activate minerl
pip install minerl
  1. In python prompt run
import minerl, gym
env = gym.make("MineRLTreechop-v0")
obs = env.reset()

Other things you might want to check out:

@Sparks123
Copy link

I have exactly the same issue. Have you guys solve it?

@Sparks123
Copy link

I have exactly the same issue. Have you guys solve it?

my os is windows 10. But minerl(0.4.0) can be installed on Ubuntu

@Miffyli
Copy link
Contributor

Miffyli commented Jul 14, 2021

If anybody can share a full output log when you try to install/run MineRL, that would go a long way! Meanwhile, also check your java versions that they match (see here #559 (comment) )

@Sparks123
Copy link

Hmm I was not able to reproduce the error on my machine :/. Steps:

  1. Install miniconda (Python 3.8) from here: https://docs.conda.io/en/latest/miniconda.html
  2. Create new environment in the miniconda prompt and install minerl:
conda create -n minerl python=3.9
conda activate minerl
pip install minerl
  1. In python prompt run
import minerl, gym
env = gym.make("MineRLTreechop-v0")
obs = env.reset()

Other things you might want to check out:

I finally solve the problem with doing nothing but try several times with your solutions(run pip with admin and Check that you have long-paths enabled in Windows). Anyway thanks a lot.

@Miffyli Miffyli closed this as completed Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Issue is a question
Projects
None yet
Development

No branches or pull requests

4 participants