asreview / asreview

Active learning for systematic reviews

Home Page:https://asreview.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ASReview doesn't recognize the installation of Tensorflow

ArianaGGo opened this issue · comments

Describe the bug
I am trying to use the combination of Sentence BERT and neural network, but the system displays an Import Error. I have installed sentence-transformers and Tensorflow correctly, but it is not working.

What happened? And what did you expect to happen?
I followed the instructions to install the extensions and create the new project. After the warm-up, I receive constantly the same message: ImportError: Install tensorflow package to use Fully connected neural network (2 hidden layers)
I tried several actions: unistall and install again Tensorflow; updating ASReview; updating Python, etc, but nothing seems to work.

Screenshots
Captura de Pantalla 2023-09-08 a la(s) 11 38 17

Version information

  • OS: macOS Catalina 10.15.7
  • ASReview version: 1.2.1

Can you show the output in the terminal? That might provide some hints for us.

Sure! Here it is:

127.0.0.1 - - [2023-09-13 13:39:50] "GET / HTTP/1.1" 200 794 0.016475
127.0.0.1 - - [2023-09-13 13:39:50] "GET /static/js/main.71fabbab.js HTTP/1.1" 304 226 0.015829
127.0.0.1 - - [2023-09-13 13:39:50] "GET /static/css/main.8d8848ef.css HTTP/1.1" 304 223 0.003606
127.0.0.1 - - [2023-09-13 13:39:50] "GET /boot HTTP/1.1" 200 180 0.002516
127.0.0.1 - - [2023-09-13 13:39:50] "GET /static/media/asreview_sub_logo_lab_black_transparent.c4e14af313ba97465fff113a6b2e4fd7.svg HTTP/1.1" 304 284 0.002570
127.0.0.1 - - [2023-09-13 13:39:50] "GET /static/media/roboto-latin-400.176f8f5bd5f02b3abfcf.woff2 HTTP/1.1" 304 250 0.004383
127.0.0.1 - - [2023-09-13 13:39:54] "GET /static/media/roboto-latin-500.f5b74d7ffcdf85b9dd60.woff2 HTTP/1.1" 304 250 0.001999
127.0.0.1 - - [2023-09-13 13:39:54] "GET /static/media/roboto-latin-700.c18ee39fb002ad58b6dc.woff2 HTTP/1.1" 304 249 0.001564
127.0.0.1 - - [2023-09-13 13:39:54] "GET /api/projects/stats HTTP/1.1" 200 196 0.008367
127.0.0.1 - - [2023-09-13 13:39:54] "GET /api/projects HTTP/1.1" 200 1613 0.003100
127.0.0.1 - - [2023-09-13 13:40:09] "POST /api/projects/info HTTP/1.1" 201 399 0.020651
127.0.0.1 - - [2023-09-13 13:40:14] "PUT /api/projects/piloto-safe2/info HTTP/1.1" 200 419 0.012044
127.0.0.1 - - [2023-09-13 13:40:43] "GET /static/media/roboto-latin-400italic.d022bc70dc1bf7b3425d.woff2 HTTP/1.1" 200 17666 0.004493
127.0.0.1 - - [2023-09-13 13:40:44] "POST /api/projects/piloto-safe2/data HTTP/1.1" 200 157 0.985769
127.0.0.1 - - [2023-09-13 13:40:44] "GET /api/projects/piloto-safe2/info HTTP/1.1" 200 562 0.003395
127.0.0.1 - - [2023-09-13 13:40:44] "GET /api/projects/piloto-safe2/data HTTP/1.1" 200 254 0.131568
127.0.0.1 - - [2023-09-13 13:40:44] "GET /api/projects/piloto-safe2/labeled_stats HTTP/1.1" 200 253 0.009113
127.0.0.1 - - [2023-09-13 13:40:44] "GET /static/media/roboto-latin-500italic.0d8bb5b3ee5f5dac9e44.woff2 HTTP/1.1" 304 255 0.006022
127.0.0.1 - - [2023-09-13 13:40:47] "GET /api/algorithms HTTP/1.1" 200 1240 0.143226
127.0.0.1 - - [2023-09-13 13:40:47] "GET /api/projects/piloto-safe2/algorithms HTTP/1.1" 200 235 0.005748
127.0.0.1 - - [2023-09-13 13:40:47] "POST /api/projects/piloto-safe2/algorithms HTTP/1.1" 200 157 0.054337
127.0.0.1 - - [2023-09-13 13:40:50] "POST /api/projects/piloto-safe2/algorithms HTTP/1.1" 200 157 0.041079
127.0.0.1 - - [2023-09-13 13:40:53] "POST /api/projects/piloto-safe2/algorithms HTTP/1.1" 200 157 0.038088
127.0.0.1 - - [2023-09-13 13:40:54] "POST /api/projects/piloto-safe2/start HTTP/1.1" 200 157 0.019880
127.0.0.1 - - [2023-09-13 13:40:54] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.009120
127.0.0.1 - - [2023-09-13 13:41:06] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002677
2023-09-13 13:41:06.957902: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
127.0.0.1 - - [2023-09-13 13:41:18] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.004067
127.0.0.1 - - [2023-09-13 13:41:30] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.004147
127.0.0.1 - - [2023-09-13 13:41:43] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001763
127.0.0.1 - - [2023-09-13 13:41:55] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001762
127.0.0.1 - - [2023-09-13 13:42:08] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001657
127.0.0.1 - - [2023-09-13 13:42:20] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001995
127.0.0.1 - - [2023-09-13 13:42:33] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.003056
127.0.0.1 - - [2023-09-13 13:42:46] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002664
127.0.0.1 - - [2023-09-13 13:42:58] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002442
127.0.0.1 - - [2023-09-13 13:43:10] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002890
127.0.0.1 - - [2023-09-13 13:43:22] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001654
127.0.0.1 - - [2023-09-13 13:43:34] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002007
127.0.0.1 - - [2023-09-13 13:43:46] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002237
127.0.0.1 - - [2023-09-13 13:43:58] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001652
127.0.0.1 - - [2023-09-13 13:44:11] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002766
127.0.0.1 - - [2023-09-13 13:44:23] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.049409
127.0.0.1 - - [2023-09-13 13:44:35] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001792
127.0.0.1 - - [2023-09-13 13:44:47] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002990
127.0.0.1 - - [2023-09-13 13:45:00] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001627
127.0.0.1 - - [2023-09-13 13:45:13] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002990
127.0.0.1 - - [2023-09-13 13:45:25] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002336
127.0.0.1 - - [2023-09-13 13:45:37] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.004221
127.0.0.1 - - [2023-09-13 13:45:49] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002440
127.0.0.1 - - [2023-09-13 13:46:01] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002878
127.0.0.1 - - [2023-09-13 13:46:14] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.006317
127.0.0.1 - - [2023-09-13 13:46:26] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.003267
127.0.0.1 - - [2023-09-13 13:46:38] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.003092
127.0.0.1 - - [2023-09-13 13:46:50] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002895
127.0.0.1 - - [2023-09-13 13:47:03] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.003264
127.0.0.1 - - [2023-09-13 13:47:15] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.003784
127.0.0.1 - - [2023-09-13 13:47:27] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001430
127.0.0.1 - - [2023-09-13 13:47:39] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001282
127.0.0.1 - - [2023-09-13 13:47:51] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001572
127.0.0.1 - - [2023-09-13 13:48:03] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002612
127.0.0.1 - - [2023-09-13 13:48:15] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002646
127.0.0.1 - - [2023-09-13 13:48:27] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.003008
127.0.0.1 - - [2023-09-13 13:48:40] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002760
127.0.0.1 - - [2023-09-13 13:48:52] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002935
127.0.0.1 - - [2023-09-13 13:49:04] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.003714
127.0.0.1 - - [2023-09-13 13:49:16] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.003392
127.0.0.1 - - [2023-09-13 13:49:28] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.003885
127.0.0.1 - - [2023-09-13 13:49:40] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001415
127.0.0.1 - - [2023-09-13 13:49:52] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001846
127.0.0.1 - - [2023-09-13 13:50:04] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001416
127.0.0.1 - - [2023-09-13 13:50:16] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002847
127.0.0.1 - - [2023-09-13 13:50:28] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.003567
127.0.0.1 - - [2023-09-13 13:50:40] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002481
127.0.0.1 - - [2023-09-13 13:50:52] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001929
127.0.0.1 - - [2023-09-13 13:51:04] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002277
127.0.0.1 - - [2023-09-13 13:51:16] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001811
127.0.0.1 - - [2023-09-13 13:51:28] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001775
127.0.0.1 - - [2023-09-13 13:51:40] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001814
127.0.0.1 - - [2023-09-13 13:51:52] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001595
127.0.0.1 - - [2023-09-13 13:52:04] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001145
127.0.0.1 - - [2023-09-13 13:52:16] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001138
127.0.0.1 - - [2023-09-13 13:52:28] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002750
127.0.0.1 - - [2023-09-13 13:52:40] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001439
127.0.0.1 - - [2023-09-13 13:52:53] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.003103
127.0.0.1 - - [2023-09-13 13:53:05] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.003987
127.0.0.1 - - [2023-09-13 13:53:17] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002091
127.0.0.1 - - [2023-09-13 13:53:29] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001288
127.0.0.1 - - [2023-09-13 13:53:41] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002321
127.0.0.1 - - [2023-09-13 13:53:53] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001462
127.0.0.1 - - [2023-09-13 13:54:05] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002448
127.0.0.1 - - [2023-09-13 13:54:17] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001746
127.0.0.1 - - [2023-09-13 13:54:29] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001227
127.0.0.1 - - [2023-09-13 13:54:41] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002412
127.0.0.1 - - [2023-09-13 13:54:53] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.001472
127.0.0.1 - - [2023-09-13 13:55:05] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002995
127.0.0.1 - - [2023-09-13 13:55:17] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.003345
127.0.0.1 - - [2023-09-13 13:55:30] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002467
127.0.0.1 - - [2023-09-13 13:55:42] "GET /api/projects/piloto-safe2/status HTTP/1.1" 200 159 0.002139
Traceback (most recent call last):
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/asreview/main.py", line 91, in
main()
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/asreview/main.py", line 48, in main
entry.load()().execute(sys.argv[2:])
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/asreview/entry_points/lab.py", line 116, in execute
main_run_model(argv)
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/asreview/webapp/run_model.py", line 154, in main
raise err
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/asreview/webapp/run_model.py", line 143, in main
train_model(project)
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/asreview/webapp/run_model.py", line 116, in train_model
reviewer.train()
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/asreview/review/base.py", line 301, in train
self.classifier.fit(X_train, y_train)
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/asreview/models/classifiers/nn_2_layer.py", line 118, in fit
_check_tensorflow()
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/asreview/models/classifiers/nn_2_layer.py", line 41, in _check_tensorflow
raise ImportError(
ImportError: Install tensorflow package to use Fully connected neural network (2 hidden layers).
ERROR:root:Error on training
ERROR:asreview.webapp.start_flask:Exception on /api/projects/piloto-safe2/status [GET]
Traceback (most recent call last):
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/asreview/project.py", line 84, in decorated_function
return f(project, *args, **kwargs)
File "/Users/arianaguevaragomez/miniconda3/lib/python3.10/site-packages/asreview/webapp/api.py", line 1067, in api_get_status
raise Exception(error_message)
Exception: ImportError: Install tensorflow package to use Fully connected neural network (2 hidden layers).
ERROR:root:ImportError: Install tensorflow package to use Fully connected neural network (2 hidden layers).
127.0.0.1 - - [2023-09-13 13:55:54] "GET /api/projects/piloto-safe2/status HTTP/1.1" 500 271 0.018806

Have you installed tensorflow? to install all optional ASReview dependencies you can run
pip install asreview[all]

see also this part of the documentation

Yes, I have installed tensorflow and optional ASReview dependencies. I repeated the process and received an error message at the end:

(base) MacBook-Air-de-Ariana:~ arianaguevaragomez$ pip install asreview[all]
Requirement already satisfied: asreview[all] in ./miniconda3/lib/python3.10/site-packages (1.2.1)
Requirement already satisfied: numpy in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (1.24.3)
Requirement already satisfied: scikit-learn in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (1.2.2)
Requirement already satisfied: pandas<3,>=1 in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (2.0.2)
Requirement already satisfied: rispy~=0.7.0 in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (0.7.1)
Requirement already satisfied: dill in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (0.3.6)
Requirement already satisfied: xlrd>=1.0.0 in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (2.0.1)
Requirement already satisfied: setuptools in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (65.6.3)
Requirement already satisfied: flask>=2.0 in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (2.3.2)
Requirement already satisfied: flask-cors in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (3.0.10)
Requirement already satisfied: openpyxl in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (3.1.2)
Requirement already satisfied: gevent>=20 in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (22.10.2)
Requirement already satisfied: jsonschema in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (4.17.3)
Requirement already satisfied: filelock in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (3.12.0)
Requirement already satisfied: tqdm in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (4.65.0)
Requirement already satisfied: datahugger>=0.2 in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (0.3)
Requirement already satisfied: sentence-transformers in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (2.2.2)
Requirement already satisfied: gensim in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (4.3.2)
Requirement already satisfied: check-manifest in ./miniconda3/lib/python3.10/site-packages (from asreview[all]) (0.49)
Collecting tensorflow<2.13.0,>=2.0 (from asreview[all])
Obtaining dependency information for tensorflow<2.13.0,>=2.0 from https://files.pythonhosted.org/packages/39/1e/275239519a1cb1190c1cb762dab263fa0a017b74042f9f804972065c29b1/tensorflow-2.12.1-cp310-cp310-macosx_10_15_x86_64.whl.metadata
Downloading tensorflow-2.12.1-cp310-cp310-macosx_10_15_x86_64.whl.metadata (3.2 kB)
Requirement already satisfied: jsonpath-ng in ./miniconda3/lib/python3.10/site-packages (from datahugger>=0.2->asreview[all]) (1.5.3)
Requirement already satisfied: natsort in ./miniconda3/lib/python3.10/site-packages (from datahugger>=0.2->asreview[all]) (8.3.1)
Requirement already satisfied: requests in ./miniconda3/lib/python3.10/site-packages (from datahugger>=0.2->asreview[all]) (2.28.1)
Requirement already satisfied: scitree in ./miniconda3/lib/python3.10/site-packages (from datahugger>=0.2->asreview[all]) (0.5.3)
Requirement already satisfied: Werkzeug>=2.3.3 in ./miniconda3/lib/python3.10/site-packages (from flask>=2.0->asreview[all]) (2.3.6)
Requirement already satisfied: Jinja2>=3.1.2 in ./miniconda3/lib/python3.10/site-packages (from flask>=2.0->asreview[all]) (3.1.2)
Requirement already satisfied: itsdangerous>=2.1.2 in ./miniconda3/lib/python3.10/site-packages (from flask>=2.0->asreview[all]) (2.1.2)
Requirement already satisfied: click>=8.1.3 in ./miniconda3/lib/python3.10/site-packages (from flask>=2.0->asreview[all]) (8.1.3)
Requirement already satisfied: blinker>=1.6.2 in ./miniconda3/lib/python3.10/site-packages (from flask>=2.0->asreview[all]) (1.6.2)
Requirement already satisfied: zope.event in ./miniconda3/lib/python3.10/site-packages (from gevent>=20->asreview[all]) (4.6)
Requirement already satisfied: zope.interface in ./miniconda3/lib/python3.10/site-packages (from gevent>=20->asreview[all]) (6.0)
Requirement already satisfied: greenlet>=2.0.0 in ./miniconda3/lib/python3.10/site-packages (from gevent>=20->asreview[all]) (2.0.2)
Requirement already satisfied: python-dateutil>=2.8.2 in ./miniconda3/lib/python3.10/site-packages (from pandas<3,>=1->asreview[all]) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in ./miniconda3/lib/python3.10/site-packages (from pandas<3,>=1->asreview[all]) (2023.3)
Requirement already satisfied: tzdata>=2022.1 in ./miniconda3/lib/python3.10/site-packages (from pandas<3,>=1->asreview[all]) (2023.3)
Requirement already satisfied: absl-py>=1.0.0 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (1.4.0)
Requirement already satisfied: astunparse>=1.6.0 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (1.6.3)
Requirement already satisfied: flatbuffers>=2.0 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (23.5.26)
Requirement already satisfied: gast<=0.4.0,>=0.2.1 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (0.4.0)
Requirement already satisfied: google-pasta>=0.1.1 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (0.2.0)
Requirement already satisfied: h5py>=2.9.0 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (3.9.0)
Collecting jax>=0.3.15 (from tensorflow<2.13.0,>=2.0->asreview[all])
Downloading jax-0.4.14.tar.gz (1.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 9.5 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: libclang>=13.0.0 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (16.0.6)
Requirement already satisfied: opt-einsum>=2.3.2 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (3.3.0)
Requirement already satisfied: packaging in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (23.0)
Requirement already satisfied: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (4.23.4)
Requirement already satisfied: six>=1.12.0 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (1.16.0)
Requirement already satisfied: termcolor>=1.1.0 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (2.3.0)
Requirement already satisfied: typing-extensions<4.6.0,>=3.6.6 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (4.5.0)
Requirement already satisfied: wrapt<1.15,>=1.11.0 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (1.14.1)
Requirement already satisfied: grpcio<2.0,>=1.24.3 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (1.57.0)
Collecting tensorboard<2.13,>=2.12 (from tensorflow<2.13.0,>=2.0->asreview[all])
Downloading tensorboard-2.12.3-py3-none-any.whl (5.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.6/5.6 MB 10.5 MB/s eta 0:00:00
Collecting tensorflow-estimator<2.13,>=2.12.0 (from tensorflow<2.13.0,>=2.0->asreview[all])
Downloading tensorflow_estimator-2.12.0-py2.py3-none-any.whl (440 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 440.7/440.7 kB 7.8 MB/s eta 0:00:00
Collecting keras<2.13,>=2.12.0 (from tensorflow<2.13.0,>=2.0->asreview[all])
Downloading keras-2.12.0-py2.py3-none-any.whl (1.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 9.9 MB/s eta 0:00:00
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.23.1 in ./miniconda3/lib/python3.10/site-packages (from tensorflow<2.13.0,>=2.0->asreview[all]) (0.33.0)
Requirement already satisfied: build>=0.1 in ./miniconda3/lib/python3.10/site-packages (from check-manifest->asreview[all]) (1.0.0)
Requirement already satisfied: tomli in ./miniconda3/lib/python3.10/site-packages (from check-manifest->asreview[all]) (2.0.1)
Requirement already satisfied: scipy>=1.7.0 in ./miniconda3/lib/python3.10/site-packages (from gensim->asreview[all]) (1.10.1)
Requirement already satisfied: smart-open>=1.8.1 in ./miniconda3/lib/python3.10/site-packages (from gensim->asreview[all]) (6.3.0)
Requirement already satisfied: attrs>=17.4.0 in ./miniconda3/lib/python3.10/site-packages (from jsonschema->asreview[all]) (23.1.0)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in ./miniconda3/lib/python3.10/site-packages (from jsonschema->asreview[all]) (0.19.3)
Requirement already satisfied: et-xmlfile in ./miniconda3/lib/python3.10/site-packages (from openpyxl->asreview[all]) (1.1.0)
Requirement already satisfied: joblib>=1.1.1 in ./miniconda3/lib/python3.10/site-packages (from scikit-learn->asreview[all]) (1.2.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in ./miniconda3/lib/python3.10/site-packages (from scikit-learn->asreview[all]) (3.1.0)
Requirement already satisfied: transformers<5.0.0,>=4.6.0 in ./miniconda3/lib/python3.10/site-packages (from sentence-transformers->asreview[all]) (4.33.0)
Requirement already satisfied: torch>=1.6.0 in ./miniconda3/lib/python3.10/site-packages (from sentence-transformers->asreview[all]) (2.0.1)
Requirement already satisfied: torchvision in ./miniconda3/lib/python3.10/site-packages (from sentence-transformers->asreview[all]) (0.15.2)
Requirement already satisfied: nltk in ./miniconda3/lib/python3.10/site-packages (from sentence-transformers->asreview[all]) (3.8.1)
Requirement already satisfied: sentencepiece in ./miniconda3/lib/python3.10/site-packages (from sentence-transformers->asreview[all]) (0.1.99)
Requirement already satisfied: huggingface-hub>=0.4.0 in ./miniconda3/lib/python3.10/site-packages (from sentence-transformers->asreview[all]) (0.16.4)
Requirement already satisfied: wheel<1.0,>=0.23.0 in ./miniconda3/lib/python3.10/site-packages (from astunparse>=1.6.0->tensorflow<2.13.0,>=2.0->asreview[all]) (0.38.4)
Requirement already satisfied: pyproject_hooks in ./miniconda3/lib/python3.10/site-packages (from build>=0.1->check-manifest->asreview[all]) (1.0.0)
Requirement already satisfied: fsspec in ./miniconda3/lib/python3.10/site-packages (from huggingface-hub>=0.4.0->sentence-transformers->asreview[all]) (2023.9.0)
Requirement already satisfied: pyyaml>=5.1 in ./miniconda3/lib/python3.10/site-packages (from huggingface-hub>=0.4.0->sentence-transformers->asreview[all]) (6.0.1)
Requirement already satisfied: ml-dtypes>=0.2.0 in ./miniconda3/lib/python3.10/site-packages (from jax>=0.3.15->tensorflow<2.13.0,>=2.0->asreview[all]) (0.2.0)
Requirement already satisfied: MarkupSafe>=2.0 in ./miniconda3/lib/python3.10/site-packages (from Jinja2>=3.1.2->flask>=2.0->asreview[all]) (2.1.3)
Requirement already satisfied: google-auth<3,>=1.6.3 in ./miniconda3/lib/python3.10/site-packages (from tensorboard<2.13,>=2.12->tensorflow<2.13.0,>=2.0->asreview[all]) (2.22.0)
Requirement already satisfied: google-auth-oauthlib<1.1,>=0.5 in ./miniconda3/lib/python3.10/site-packages (from tensorboard<2.13,>=2.12->tensorflow<2.13.0,>=2.0->asreview[all]) (1.0.0)
Requirement already satisfied: markdown>=2.6.8 in ./miniconda3/lib/python3.10/site-packages (from tensorboard<2.13,>=2.12->tensorflow<2.13.0,>=2.0->asreview[all]) (3.4.4)
Requirement already satisfied: tensorboard-data-server<0.8.0,>=0.7.0 in ./miniconda3/lib/python3.10/site-packages (from tensorboard<2.13,>=2.12->tensorflow<2.13.0,>=2.0->asreview[all]) (0.7.1)
Requirement already satisfied: charset-normalizer<3,>=2 in ./miniconda3/lib/python3.10/site-packages (from requests->datahugger>=0.2->asreview[all]) (2.0.4)
Requirement already satisfied: idna<4,>=2.5 in ./miniconda3/lib/python3.10/site-packages (from requests->datahugger>=0.2->asreview[all]) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./miniconda3/lib/python3.10/site-packages (from requests->datahugger>=0.2->asreview[all]) (1.26.15)
Requirement already satisfied: certifi>=2017.4.17 in ./miniconda3/lib/python3.10/site-packages (from requests->datahugger>=0.2->asreview[all]) (2022.12.7)
Requirement already satisfied: sympy in ./miniconda3/lib/python3.10/site-packages (from torch>=1.6.0->sentence-transformers->asreview[all]) (1.12)
Requirement already satisfied: networkx in ./miniconda3/lib/python3.10/site-packages (from torch>=1.6.0->sentence-transformers->asreview[all]) (3.1)
Requirement already satisfied: regex!=2019.12.17 in ./miniconda3/lib/python3.10/site-packages (from transformers<5.0.0,>=4.6.0->sentence-transformers->asreview[all]) (2023.8.8)
Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in ./miniconda3/lib/python3.10/site-packages (from transformers<5.0.0,>=4.6.0->sentence-transformers->asreview[all]) (0.13.3)
Requirement already satisfied: safetensors>=0.3.1 in ./miniconda3/lib/python3.10/site-packages (from transformers<5.0.0,>=4.6.0->sentence-transformers->asreview[all]) (0.3.3)
Requirement already satisfied: ply in ./miniconda3/lib/python3.10/site-packages (from jsonpath-ng->datahugger>=0.2->asreview[all]) (3.11)
Requirement already satisfied: decorator in ./miniconda3/lib/python3.10/site-packages (from jsonpath-ng->datahugger>=0.2->asreview[all]) (5.1.1)
Requirement already satisfied: gitignorefile in ./miniconda3/lib/python3.10/site-packages (from scitree->datahugger>=0.2->asreview[all]) (1.1.2)
Requirement already satisfied: scisort in ./miniconda3/lib/python3.10/site-packages (from scitree->datahugger>=0.2->asreview[all]) (0.5.3)
Requirement already satisfied: seedir in ./miniconda3/lib/python3.10/site-packages (from scitree->datahugger>=0.2->asreview[all]) (0.4.2)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in ./miniconda3/lib/python3.10/site-packages (from torchvision->sentence-transformers->asreview[all]) (10.0.0)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in ./miniconda3/lib/python3.10/site-packages (from google-auth<3,>=1.6.3->tensorboard<2.13,>=2.12->tensorflow<2.13.0,>=2.0->asreview[all]) (5.3.1)
Requirement already satisfied: pyasn1-modules>=0.2.1 in ./miniconda3/lib/python3.10/site-packages (from google-auth<3,>=1.6.3->tensorboard<2.13,>=2.12->tensorflow<2.13.0,>=2.0->asreview[all]) (0.3.0)
Requirement already satisfied: rsa<5,>=3.1.4 in ./miniconda3/lib/python3.10/site-packages (from google-auth<3,>=1.6.3->tensorboard<2.13,>=2.12->tensorflow<2.13.0,>=2.0->asreview[all]) (4.9)
Requirement already satisfied: requests-oauthlib>=0.7.0 in ./miniconda3/lib/python3.10/site-packages (from google-auth-oauthlib<1.1,>=0.5->tensorboard<2.13,>=2.12->tensorflow<2.13.0,>=2.0->asreview[all]) (1.3.1)
Requirement already satisfied: mpmath>=0.19 in ./miniconda3/lib/python3.10/site-packages (from sympy->torch>=1.6.0->sentence-transformers->asreview[all]) (1.3.0)
Requirement already satisfied: pyasn1<0.6.0,>=0.4.6 in ./miniconda3/lib/python3.10/site-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard<2.13,>=2.12->tensorflow<2.13.0,>=2.0->asreview[all]) (0.5.0)
Requirement already satisfied: oauthlib>=3.0.0 in ./miniconda3/lib/python3.10/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<1.1,>=0.5->tensorboard<2.13,>=2.12->tensorflow<2.13.0,>=2.0->asreview[all]) (3.2.2)
Downloading tensorflow-2.12.1-cp310-cp310-macosx_10_15_x86_64.whl (230.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 230.1/230.1 MB 5.4 MB/s eta 0:00:00
Building wheels for collected packages: jax
Building wheel for jax (pyproject.toml) ... done
Created wheel for jax: filename=jax-0.4.14-py3-none-any.whl size=1535361 sha256=4c0556ad6fe53f5dd00567ba667f49a65bfd1f8d6d4fa62c65fde0e00cb8c897
Stored in directory: /Users/arianaguevaragomez/Library/Caches/pip/wheels/85/52/e7/dfa571c9f9b879e3facaa1584f52be04c4c3d1e14054ef40ab
Successfully built jax
Installing collected packages: tensorflow-estimator, keras, jax, tensorboard, tensorflow
Attempting uninstall: tensorflow-estimator
Found existing installation: tensorflow-estimator 2.13.0
Uninstalling tensorflow-estimator-2.13.0:
Successfully uninstalled tensorflow-estimator-2.13.0
Attempting uninstall: keras
Found existing installation: keras 2.13.1
Uninstalling keras-2.13.1:
Successfully uninstalled keras-2.13.1
Attempting uninstall: tensorboard
Found existing installation: tensorboard 2.13.0
Uninstalling tensorboard-2.13.0:
Successfully uninstalled tensorboard-2.13.0
Attempting uninstall: tensorflow
Found existing installation: tensorflow 2.13.0
Uninstalling tensorflow-2.13.0:
Successfully uninstalled tensorflow-2.13.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorflow-cpu 2.13.0 requires keras<2.14,>=2.13.1, but you have keras 2.12.0 which is incompatible.
tensorflow-cpu 2.13.0 requires tensorboard<2.14,>=2.13, but you have tensorboard 2.12.3 which is incompatible.
tensorflow-cpu 2.13.0 requires tensorflow-estimator<2.14,>=2.13.0, but you have tensorflow-estimator 2.12.0 which is incompatible.
Successfully installed jax-0.4.14 keras-2.12.0 tensorboard-2.12.3 tensorflow-2.12.1 tensorflow-estimator-2.12.0

Thanks for all your help!

Hello, I am experiencing the same error. I am trying to run this using the google.colab (tensorflow version 2.14.0) notebook is provided in the documentation.

PS: To make it run with the current ngrok version, these lines need to be added.

from pyngrok import conf, ngrok
conf.get_default().ngrok_version = "v2"

Hi @ArianaGGo,

I think I had the same error as you. I fixed it by downgrading tensorflow to 2.9.3. That seems to be the last tensorflow version where you can import from tensorflow.keras.wrappers which is where my problem occurred:

from tensorflow.keras.wrappers.scikit_learn import KerasClassifier

Might be worth a try for you as well, although it looks like @jteijema fixed it already on master branch here (not yet available via PyPI though pip install asreview==1.3rc1): 36a924b

Thank you very much, @jspaaks!
I downgraded tensorflow to 2.9.3 and it worked

Thanks a lot!

Happy to help :)