Beta testing e Bug Finding di Luigi Usai per l’applicazione che gestisce i tensori narratologici/narrativi, ossia i Narrative Tensors.
C:\Luigi Usai 2025\Sorgenti Python\Casa Editrice completa\Tensori Narrativi\Software Tensori Narrativi>python tensori6.py
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won’t be available and only tokenizers, configuration and file/data utilities can be used.
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won’t be available and only tokenizers, configuration and file/data utilities can be used.
No model was supplied, defaulted to distilbert/distilbert-base-uncased-finetuned-sst-2-english and revision 714eb0f (https://huggingface.co/distilbert/distilbert-base-uncased-finetuned-sst-2-english).
Using a pipeline without specifying a model name and revision in production is not recommended.
config.json: 100
C:\Python313\Lib\site-packages\huggingface_hub\file_download.py:143: UserWarning: `huggingface_hub` cache-system uses symlinks by default to efficiently store duplicated files but your machine does not support them in C:\Users\Laurea\.cache\huggingface\hub\models–distilbert–distilbert-base-uncased-finetuned-sst-2-english. Caching files will still work but in a degraded version that might require more space on your disk. This warning can be disabled by setting the `HF_HUB_DISABLE_SYMLINKS_WARNING` environment variable. For more details, see https://huggingface.co/docs/huggingface_hub/how-to-cache#limitations.
To support symlinks on Windows, you either need to activate Developer Mode or to run Python as an administrator. In order to activate developer mode, see this article: https://docs.microsoft.com/en-us/windows/apps/get-started/enable-your-device-for-development
warnings.warn(message)
Traceback (most recent call last):
File “C:\Luigi Usai 2025\Sorgenti Python\Casa Editrice completa\Tensori Narrativi\Software Tensori Narrativi\tensori6.py”, line 120, in visualize_tensor
tensor_data = self.generate_tensor(self.text_edit.toPlainText())
File “C:\Luigi Usai 2025\Sorgenti Python\Casa Editrice completa\Tensori Narrativi\Software Tensori Narrativi\tensori6.py”, line 93, in generate_tensor
sentiment_analyzer = pipeline(“sentiment-analysis”)
File “C:\Python313\Lib\site-packages\transformers\pipelines\__init__.py”, line 942, in pipeline
framework, model = infer_framework_load_model(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
adapter_path if adapter_path is not None else model,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
…<5 lines>…
**model_kwargs,
^^^^^^^^^^^^^^^
)
^
File “C:\Python313\Lib\site-packages\transformers\pipelines\base.py”, line 242, in infer_framework_load_model
raise RuntimeError(
…<3 lines>…
)
RuntimeError: At least one of TensorFlow 2.0 or PyTorch should be installed. To install TensorFlow 2.0, read the instructions at https://www.tensorflow.org/install/ To install PyTorch, read the instructions at https://pytorch.org/.
C:\Luigi Usai 2025\Sorgenti Python\Casa Editrice completa\Tensori Narrativi\Software Tensori Narrativi>
C:\Luigi Usai 2025\Sorgenti Python\Casa Editrice completa\Tensori Narrativi\Software Tensori Narrativi>pip install PyTorch
Collecting PyTorch
Downloading pytorch-1.0.2.tar.gz (689 bytes)
Preparing metadata (setup.py) … done
Building wheels for collected packages: PyTorch
DEPRECATION: Building ‘PyTorch’ using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the `–use-pep517` option, (possibly combined with `–no-build-isolation`), or adding a `pyproject.toml` file to the source tree of ‘PyTorch’. Discussion can be found at https://github.com/pypa/pip/issues/6334
Building wheel for PyTorch (setup.py) … error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
Traceback (most recent call last):
File “<string>”, line 2, in <module>
exec(compile(”’
~~~~^^^^^^^^^^^^
# This is <pip-setuptools-caller> — a caller that pip uses to run setup.py
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
…<32 lines>…
exec(compile(setup_py_code, filename, “exec”))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
”’
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “<pip-setuptools-caller>”, line 35, in <module>
File “C:\Users\Laurea\AppData\Local\Temp\pip-install-svqlr631\pytorch_25773b9aea2744e0acc2df87492da706\setup.py”, line 15, in <module>
raise Exception(message)
Exception: You tried to install “pytorch”. The package named for PyTorch is “torch”
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for PyTorch
Running setup.py clean for PyTorch
Failed to build PyTorch
ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyTorch)
C:\Luigi Usai 2025\Sorgenti Python\Casa Editrice completa\Tensori Narrativi\Software Tensori Narrativi>
C:\Luigi Usai 2025\Sorgenti Python\Casa Editrice completa\Tensori Narrativi\Software Tensori Narrativi>pip install spacy
Collecting spacy
Using cached spacy-3.8.2.tar.gz (1.3 MB)
Installing build dependencies … error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [67 lines of output]
Ignoring numpy: markers ‘python_version < “3.9”‘ don’t match your environment
Collecting setuptools
Using cached setuptools-80.4.0-py3-none-any.whl.metadata (6.5 kB)
Collecting cython<3.0,>=0.25
Using cached Cython-0.29.37-py2.py3-none-any.whl.metadata (3.1 kB)
Collecting cymem<2.1.0,>=2.0.2
Using cached cymem-2.0.11-cp313-cp313-win_amd64.whl.metadata (8.8 kB)
Collecting preshed<3.1.0,>=3.0.2
Using cached preshed-3.0.9.tar.gz (14 kB)
Installing build dependencies: started
Installing build dependencies: finished with status ‘done’
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status ‘done’
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status ‘done’
Collecting murmurhash<1.1.0,>=0.28.0
Using cached murmurhash-1.0.12-cp313-cp313-win_amd64.whl.metadata (2.2 kB)
Collecting thinc<8.4.0,>=8.3.0
Using cached thinc-8.3.6-cp313-cp313-win_amd64.whl.metadata (15 kB)
Collecting numpy<2.1.0,>=2.0.0
Using cached numpy-2.0.2.tar.gz (18.9 MB)
Installing build dependencies: started
Installing build dependencies: finished with status ‘done’
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status ‘done’
Installing backend dependencies: started
Installing backend dependencies: finished with status ‘done’
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status ‘error’
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
[21 lines of output]
+ C:\Python313\python.exe C:\Users\Laurea\AppData\Local\Temp\pip-install-5yv1hdi7\numpy_397bba384c2449089cdf3cba0285e61d\vendored-meson\meson\meson.py setup C:\Users\Laurea\AppData\Local\Temp\pip-install-5yv1hdi7\numpy_397bba384c2449089cdf3cba0285e61d C:\Users\Laurea\AppData\Local\Temp\pip-install-5yv1hdi7\numpy_397bba384c2449089cdf3cba0285e61d\.mesonpy-m5pq6hid -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md –native-file=C:\Users\Laurea\AppData\Local\Temp\pip-install-5yv1hdi7\numpy_397bba384c2449089cdf3cba0285e61d\.mesonpy-m5pq6hid\meson-python-native-file.ini
The Meson build system
Version: 1.4.99
Source dir: C:\Users\Laurea\AppData\Local\Temp\pip-install-5yv1hdi7\numpy_397bba384c2449089cdf3cba0285e61d
Build dir: C:\Users\Laurea\AppData\Local\Temp\pip-install-5yv1hdi7\numpy_397bba384c2449089cdf3cba0285e61d\.mesonpy-m5pq6hid
Build type: native build
Project name: NumPy
Project version: 2.0.2
WARNING: Failed to activate VS environment: Could not parse vswhere.exe output
..\meson.build:1:0: ERROR: Unknown compiler(s): [[‘icl’], [‘cl’], [‘cc’], [‘gcc’], [‘clang’], [‘clang-cl’], [‘pgcc’]]
The following exception(s) were encountered:
Running `icl “”` gave “[WinError 2] Impossibile trovare il file specificato”
Running `cl /?` gave “[WinError 2] Impossibile trovare il file specificato”
Running `cc –version` gave “[WinError 2] Impossibile trovare il file specificato”
Running `gcc –version` gave “[WinError 2] Impossibile trovare il file specificato”
Running `clang –version` gave “[WinError 2] Impossibile trovare il file specificato”
Running `clang-cl /?` gave “[WinError 2] Impossibile trovare il file specificato”
Running `pgcc –version` gave “[WinError 2] Impossibile trovare il file specificato”
A full log can be found at C:\Users\Laurea\AppData\Local\Temp\pip-install-5yv1hdi7\numpy_397bba384c2449089cdf3cba0285e61d\.mesonpy-m5pq6hid\meson-logs\meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
C:\Luigi Usai 2025\Sorgenti Python\Casa Editrice completa\Tensori Narrativi\Software Tensori Narrativi>pip install spacy==3.7.2
Collecting spacy==3.7.2
Downloading spacy-3.7.2.tar.gz (1.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 5.0 MB/s eta 0:00:00
Installing build dependencies … /