Git Product home page Git Product logo

Comments (5)

gaikwadrahul8 avatar gaikwadrahul8 commented on June 8, 2024

Hi, @agence-gvam

I'm really sorry to hear that you spent whole day to solve Tensorflow.js installation, as I see you're using Python version 3.12.2 which does not support currently with Tensorflow.js as far I know so if you did not try Python version apart from 3.12.2 then please give try with one of the Python version from 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 and it should work

I tried in Google Colab notebook and it's working as expected for your reference I have added gist-file I know Google colab uses Linux OS and it's using Python 3.10.12 version and I'm able to install latest tensorflowjs version which is 4.17.0

I would request you to please give it try with one of the Python version from 3.6, 3.7, 3.8, 3.9, 3.10, 3.11 and it should work. if issue still persists please help us with error log to investigate this issue further from our end.

Thank you for your cooperation and patience.

from tfjs.

gaikwadrahul8 avatar gaikwadrahul8 commented on June 8, 2024

Hi, @garywillcodeit

To confirm, were you able to successfully install tensorflow-decision-forests along with tensorflowjs on your MacOS
system by using different Python versions ? If the installation was successful and able to run your code without any errors , please feel free to close this issue.

If you're still encountering problems, please provide us with a new error log and your code snippet after attempting the instructions and workaround. This will help us investigate the issue further on our end.

Thank you for your cooperation and patience in resolving this matter.

from tfjs.

gaikwadrahul8 avatar gaikwadrahul8 commented on June 8, 2024

Hi, @garywillcodeit

I haven't got any confirmation from your end but I tried to install latest version of tensorflow-decision-forests with latest version tensorflowjs and it's working as expected in Google colab with Python version 3.10.12 and it should work in MacOS also but your issue still persists please feel free to post your comment with new error log so I'll go ahead and re-open this issue again for further assistance, At the moment I'm closing this issue.

Thank you for your cooperation and patience.

from tfjs.

google-ml-butler avatar google-ml-butler commented on June 8, 2024

Are you satisfied with the resolution of your issue?
Yes
No

from tfjs.

kyan0045 avatar kyan0045 commented on June 8, 2024

Same issue here, tried the same steps and then went onto v4.17.0, which didn't work, so as suggested, I switched python versions, which lead to this:

System information

OS: Windows 10
TensorFlow.js version: 4.17.0
Python version : 3.11.8

Also tried it on 3.10.11, same error

PS C:\Users\gener\Downloads\projects\ai\catchtwo-ai> tensorflowjs_converter --input_format keras old/model.h5 new/model1
2024-03-31 15:17:05.576100: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
WARNING:tensorflow:From C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.

WARNING:root:Failure to load the inference.so custom c++ tensorflow ops. This error is likely caused the version of TensorFlow and TensorFlow Decision Forests are not compatible. Full error:C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\tensorflow\ops\inference\inference.so not found
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Scripts\tensorflowjs_converter.exe\__main__.py", line 4, in <module>
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflowjs\__init__.py", line 21, in <module>
    from tensorflowjs import converters
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflowjs\converters\__init__.py", line 21, in <module>
    from tensorflowjs.converters.converter import convert
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflowjs\converters\converter.py", line 37, in <module>
    from tensorflowjs.converters import tf_saved_model_conversion_v2
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflowjs\converters\tf_saved_model_conversion_v2.py", line 28, in <module>
    import tensorflow_decision_forests
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\__init__.py", line 64, in <module>
    from tensorflow_decision_forests import keras
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\keras\__init__.py", line 53, in <module>
    from tensorflow_decision_forests.keras import core
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\keras\core.py", line 62, in <module>
    from tensorflow_decision_forests.keras import core_inference
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\keras\core_inference.py", line 36, in <module>
    from tensorflow_decision_forests.tensorflow.ops.inference import api as tf_op
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\tensorflow\ops\inference\api.py", line 179, in <module>
    from tensorflow_decision_forests.tensorflow.ops.inference import op
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\tensorflow\ops\inference\op.py", line 15, in <module>
    from tensorflow_decision_forests.tensorflow.ops.inference.op_dynamic import *
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\tensorflow\ops\inference\op_dynamic.py", line 24, in <module>
    raise e
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\tensorflow\ops\inference\op_dynamic.py", line 21, in <module>
    ops = tf.load_op_library(resource_loader.get_path_to_datafile("inference.so"))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow\python\framework\load_library.py", line 54, in load_op_library
    lib_handle = py_tf.TF_LoadLibrary(library_filename)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tensorflow.python.framework.errors_impl.NotFoundError: C:\Users\gener\AppData\Local\Programs\Python\Python311\Lib\site-packages\tensorflow_decision_forests\tensorflow\ops\inference\inference.so not found

from tfjs.

Related Issues (20)

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.