Fixy-TR/fixy

python app.py hatası

Opened this issue · 1 comments

Merhaba,

Aşağıdaki hata alınmaktadır.

(base) D:\AcikHack\github\fixy\fixy_app>python app.py
2020-09-06 16:23:04.181954: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-09-06 16:23:04.182188: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
D:\ProgramData\Anaconda3\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
D:\ProgramData\Anaconda3\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
D:\ProgramData\Anaconda3\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
D:\ProgramData\Anaconda3\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
D:\ProgramData\Anaconda3\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
D:\ProgramData\Anaconda3\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
Using TensorFlow backend.
2020-09-06 16:23:07.929984: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found
2020-09-06 16:23:07.930156: E tensorflow/stream_executor/cuda/cuda_driver.cc:313] failed call to cuInit: UNKNOWN ERROR (303)
2020-09-06 16:23:07.935596: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: Samsung-pc
2020-09-06 16:23:07.935871: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: Samsung-pc
2020-09-06 16:23:07.947857: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x2a5d79522a0 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-09-06 16:23:07.947995: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
gülüyor musun
Traceback (most recent call last):
File "app.py", line 26, in
with open('templates/stopwords-tr.txt', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'templates/stopwords-tr.txt'

Merhabalar,
Tensorflow versiyonunu kontrol edebilirsin. Muhtemelen package versiyon farklılığından dolayı hata alıyorsun. Yükseltme durumlarında fonksiyonlarda değişiklik olabiliyor. Stopwords-tr.txt dosyası projenin içinde mevcut. Bu dosyayı fixy_app içindeki templates klasörüne taşırsan bu hatayı da çözebilirsin.

Proje için kurmanı tavsiye ettiğimiz paketler:
Tensorflow 2.2.0 ya da 2.3.0
Tensorboard 2.3.0
Keras 2.4.3
sklearn 0.23.1
pandas 1.0.5
numpy 1.17.4
jpype 1.0.1
flask 1.1.1
Deepchecker 0.0.1

Geri bildirimin için teşekkürler:)