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

error instalasi #4

Open
Axel-One opened this issue Apr 4, 2024 · 9 comments
Open

error instalasi #4

Axel-One opened this issue Apr 4, 2024 · 9 comments

Comments

@Axel-One
Copy link

Axel-One commented Apr 4, 2024

127.0.0.1 - - [03/Apr/2024 22:30:21] "GET / HTTP/1.1" 500 -
Traceback (most recent call last):
File "C:\Program Files\Python311\Lib\site-packages\flask\app.py", line 1488, in call
return self.wsgi_app(environ, start_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\flask\app.py", line 1466, in wsgi_app
response = self.handle_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\flask\app.py", line 1463, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\flask\app.py", line 872, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\flask_cors\extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\flask\app.py", line 870, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\flask\app.py", line 855, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\PENDUKUNG\NyanTranslate-main\app.py", line 90, in final
result = subprocess.run(['php', './web/final.php'], capture_output=True, text=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\Python311\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified
127.0.0.1 - - [03/Apr/2024 22:30:22] "GET /?debugger=yes&cmd=resource&f=debugger.js HTTP/1.1" 304 -
127.0.0.1 - - [03/Apr/2024 22:30:22] "GET /?debugger=yes&cmd=resource&f=style.css HTTP/1.1" 304 -
127.0.0.1 - - [03/Apr/2024 22:30:22] "GET /?debugger=yes&cmd=resource&f=console.png HTTP/1.1" 304 -

@Axel-One
Copy link
Author

Axel-One commented Apr 4, 2024

entah apa error nya dimana sudah 1 jam saya coba cari masalahnya

@Axel-One
Copy link
Author

Axel-One commented Apr 4, 2024

cara make aplikasinya yang benar bagaimana ? apa yang harus dibuka supaya aplikasi berjalan sempurna, punya saya cuma jalan di terminal tidak menampilkan tampilan aplikasi seperti pada gambar

@Mabzak-Knight
Copy link
Owner

klo boleh tau installnya di komputer pribadi atau di tempat lain? bisa juga coba lihat tutorial instalisasi di google colab disini https://www.youtube.com/watch?v=PlbIb--9OMg&ab_channel=RuangIlmuDigital

@Axel-One
Copy link
Author

Axel-One commented Apr 6, 2024

pake komputer pribadi

@Mabzak-Knight
Copy link
Owner

klo pakai komputer pribadi kemungkinan ada paket yg belum terinstall atau sudah terinstal tetapi beda versi, ada juga kemungkinan port atau localhost sudah terpakai dengan aplikasi lain, "FileNotFoundError: [WinError 2] The system cannot find the file specified" ini menandakan file webnya tidak ketemu. coba install paket berikut
import subprocess
apt-get install php
from flask import Flask
pastikan folder2 project tidak ada yg hilang di folder NyanTranslate, jalankan python di dalam foldernya langsung, jika tidak bisa coba gunakan versi google colab disini:
https://colab.research.google.com/drive/1VYGrG1XeBse_iUM4QfQHpbL7l0nyzQox?usp=sharing#scrollTo=q8vCy4JrAcH3

@Axel-One
Copy link
Author

Axel-One commented Apr 7, 2024

baik nanti akan saya coba

@Axel-One
Copy link
Author

tetep gak bisa, apa versi python yang anda pakai untuk membuat ini setidaknya versi yang anda gunakan di vidio tutorial

@Mabzak-Knight
Copy link
Owner

seharusnya versi terbaru bisa, sya pakai komputer tua( core 2 - ddr 3 - ram 4gb - gk pakai vga ) juga masih bisa jalan, klo dari error di stu error saat menjalankan phpnya, jika masih ingin coba2, coba cari tutorial Cara Mengatasi Error 304

@Axel-One
Copy link
Author

cara buka webnya jika menggunakan komputer pribadi gimana ? saya sudah coba tapi gak mau kebuka padahal errornnya sudah hilang, dan sedikit laporan google colab anda ada error sehingga bahasa mandarin tidak bisa di terjemahkan ke indo dan mungkin hal lain

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

2 participants