Error Belajar Koversi Mata Uang

from forex_python.converter import CurrencyRates c = CurrencyRates() amount = int(input("Masukkan Jumlah : ")) from_currency = input ("Kode Mata Uang asal : ").upper() to_currency = input("Kode Mata Uang tujuan : ").upper() print (from_currency, "To", to_currency, amount) result = c.convert(from_currency, to_currency, amount) print (result)

berikut error yang muncul : Traceback (most recent call last): File "c:\Users\Admin\Lat_MPP2\koversi_MataUang.py", line 7, in <module> result = c.convert(from_currency, to_currency, amount) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Admin\AppData\Roaming\Python\Python311\site-packages\forex_python\converter.py", line 108, in convert raise RatesNotAvailableError("Currency Rates Source Not Ready") forex_python.converter.RatesNotAvailableError: Currency Rates Source Not Ready

avatar sofyanismail
@sofyanismail

1 Kontribusi 0 Poin

Diperbarui 9 bulan yang lalu

1 Jawaban:

Coba refrensi ke sini ya https://stackoverflow.com/questions/68896900/strange-currency-rates-source-not-ready-forex-python-error atau issue di Github package yang kamu gunakan https://github.com/MicroPyramid/forex-python/issues/153

Sepertinya API nya yang bermasalah

avatar hilmanski
@hilmanski

2695 Kontribusi 2139 Poin

Dipost 9 bulan yang lalu

Tanggapan

makasih mas

Login untuk ikut Jawaban