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

Installation issue: keras - tensorflow #86

Open
olarraUPC opened this issue May 30, 2024 · 8 comments
Open

Installation issue: keras - tensorflow #86

olarraUPC opened this issue May 30, 2024 · 8 comments

Comments

@olarraUPC
Copy link

Hi,

After succesfully installing nilm-contrib I am trying to run an experiment using the Seq2Point disaggregation algorithm.

When I do this an error pops up saying I am missing teensorflow. If I try to install it this leads to more errors.

Although it would seem that the Seq2Point algorithm does not use tensorflow, the version of keras it uses calls tensorflow.

I already tried installing different versions of keras but there are always compatibility isuues.

I have tried every method I could think of (including the responses provided in other issues) and nothing seems to work.

I installed through anaconda, through pip, tried different versions of python, keras, tensorflow, numpy... etc.... I tried offline installation and nothing

Can someone help me please? Or is this package still workable?

Thanks a lot!

@nipunbatra
Copy link
Member

We are looking to upgrade to a torch based implementation. It should happen soon. Will put some details out in coming days.

@olarraUPC
Copy link
Author

We are looking to upgrade to a torch based implementation. It should happen soon. Will put some details out in coming days.

great, but in the meantime is there anyway to make it work as it is?

@arnav177
Copy link

arnav177 commented May 31, 2024

#86
Here are a few suggestions that might help resolve the issue:

Create a Fresh Environment: Sometimes, conflicts arise due to residual dependencies from previous installations. Try creating a new, clean environment using Anaconda:

conda create --name nilm-env python=3.12
conda activate nilm-env

Install TensorFlow and Keras in a Specific Order: Ensure compatibility by installing specific versions of TensorFlow and Keras. For example:
conda install tensorflow=2.10 keras=3.3.3

Check for nilm-contrib Dependencies: Make sure you have all the necessary dependencies for nilm-contrib installed. Sometimes, missing or outdated dependencies can cause issues.
pip install -r requirements.txt

Verify Installation: After setting up the environment, verify that TensorFlow and Keras are correctly installed and compatible:

import tensorflow as tf
import keras
print(tf.version)
print(keras.version)

@olarraUPC
Copy link
Author

#86 Here are a few suggestions that might help resolve the issue:

Create a Fresh Environment: Sometimes, conflicts arise due to residual dependencies from previous installations. Try creating a new, clean environment using Anaconda:

conda create --name nilm-env python=3.13 conda activate nilm-env

Install TensorFlow and Keras in a Specific Order: Ensure compatibility by installing specific versions of TensorFlow and Keras. For example: conda install tensorflow=2.16 keras=3.3.3

Check for nilm-contrib Dependencies: Make sure you have all the necessary dependencies for nilm-contrib installed. Sometimes, missing or outdated dependencies can cause issues. pip install -r requirements.txt

Verify Installation: After setting up the environment, verify that TensorFlow and Keras are correctly installed and compatible:

import tensorflow as tf import keras print(tf.version) print(keras.version)

Thanks for your reply @arnav177 , Python version 3.13 is programmed to be released in October this year and the latest version of tensorflow available from conda is 2.10.0.

Can you give me some feedback on this please?

Thanks a lot!

@olarraUPC
Copy link
Author

#86 Here are a few suggestions that might help resolve the issue:

Create a Fresh Environment: Sometimes, conflicts arise due to residual dependencies from previous installations. Try creating a new, clean environment using Anaconda:

conda create --name nilm-env python=3.12 conda activate nilm-env

Install TensorFlow and Keras in a Specific Order: Ensure compatibility by installing specific versions of TensorFlow and Keras. For example: conda install tensorflow=2.10 keras=3.3.3

Check for nilm-contrib Dependencies: Make sure you have all the necessary dependencies for nilm-contrib installed. Sometimes, missing or outdated dependencies can cause issues. pip install -r requirements.txt

Verify Installation: After setting up the environment, verify that TensorFlow and Keras are correctly installed and compatible:

import tensorflow as tf import keras print(tf.version) print(keras.version)

@arnav177 do you have any other advice please?

best regards

Oscar

@olarraUPC
Copy link
Author

olarraUPC commented Jun 19, 2024

We are looking to upgrade to a torch based implementation. It should happen soon. Will put some details out in coming days.

any news @nipunbatra ?

@olarraUPC
Copy link
Author

#86 Here are a few suggestions that might help resolve the issue:
Create a Fresh Environment: Sometimes, conflicts arise due to residual dependencies from previous installations. Try creating a new, clean environment using Anaconda:
conda create --name nilm-env python=3.13 conda activate nilm-env
Install TensorFlow and Keras in a Specific Order: Ensure compatibility by installing specific versions of TensorFlow and Keras. For example: conda install tensorflow=2.16 keras=3.3.3
Check for nilm-contrib Dependencies: Make sure you have all the necessary dependencies for nilm-contrib installed. Sometimes, missing or outdated dependencies can cause issues. pip install -r requirements.txt
Verify Installation: After setting up the environment, verify that TensorFlow and Keras are correctly installed and compatible:
import tensorflow as tf import keras print(tf.version) print(keras.version)

Thanks for your reply @arnav177 , Python version 3.13 is programmed to be released in October this year and the latest version of tensorflow available from conda is 2.10.0.

Can you give me some feedback on this please?

Thanks a lot!

any other advice @arnav177 still haven't manage to install it

@olarraUPC
Copy link
Author

We are looking to upgrade to a torch based implementation. It should happen soon. Will put some details out in coming days.

any news @nipunbatra ?

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