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

nilmtk-contrib installation failed #64

Open
cemik1 opened this issue Mar 2, 2022 · 2 comments
Open

nilmtk-contrib installation failed #64

cemik1 opened this issue Mar 2, 2022 · 2 comments

Comments

@cemik1
Copy link

cemik1 commented Mar 2, 2022

I can not install nilmtk-contrib package. Installed libraries and listing below. What could be a problem?
System - win10 64-bit
conda 4.11.0

packages in environment at C:\Users\710_004733\Anaconda3\envs\nilmtk-env:

Name Version Build Channel

nilmtk 0.4.3 py_0 nilmtk
scikit-learn 1.0.2 py38hb60ee80_0 conda-forge
keras 2.4.3 pyhd8ed1ab_0 conda-forge
keras-applications 1.0.8 py_1 conda-forge
keras-preprocessing 1.1.2 pyhd8ed1ab_0 conda-forge
cvxpy 1.1.18 py38haa244fe_0 conda-forge
cvxpy-base 1.1.18 py38h5d928e2_0 conda-forge

(nilmtk-env) C:\Users\710_004733>conda install -c conda-forge -c nilmtk nilmtk-contrib
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment:
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.|
failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

(nilmtk-env) C:\Users\710_004733>

@rpolea
Copy link

rpolea commented Mar 13, 2022

Ok @cemik1 I think I have just managed to get this to work by creating the dedicated environment within conda and installing nilmtk and nilmtk-contrib at the same time. I believe conda finds the appropriate installs to use when calling both and in the new environment there shouldn't be any conflicts. I was having issues before as I did nilmtk first and then tried to install nilmtk-contrib into the same environment.

Just to say I used Anaconda for Windows.

conda create -n nilmtk-test -c conda-forge -c nilmtk nilmtk-contrib

I did find there was an issue when testing the imports of the neural nets like Seq2Seq as it said tensorflow wasn't installed/found. I installed tensorflow within the environment but it gave me an error, however it seems to accept the import now.

Will update if I find that it still doesn't work.

@paulfrank1997
Copy link

@rpolea Can I ask you about what version of tensorflow, h5py and keras you install? The original nilmtk-contrib does not contain tensorflow. But after I tried to install it by myself, I still got errors. So I was wondering whether that was caused by version problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants