Hello eveeryone. I encountered such an error while making an application with Python Django.
python manage.py check_imei
Message: service /workspace/.cache/selenium/chromedriver/linux64/118.0.5993.70/chromedriver unexpectedly exited. status code was: 127
check_imei.py:
**from** core.models **import** Phones
**from** django.core.management.base **import** BaseCommand
**from** selenium **import** webdriver
**from** selenium.webdriver.chrome.options **import** Options
**from** selenium.webdriver.common.by **import** By
**from** selenium.webdriver.common.keys **import** Keys
**from** selenium.webdriver.support **import** expected_conditions **as** EC
**from** selenium.webdriver.support.ui **import** WebDriverWait
**class** Command(BaseCommand):
help = 'Send Mail to Users'
chrome_options = Options()
chrome_options.add_argument("--headless")
driver = webdriver.Chrome(options=chrome_options)
**def** handle(self, *args, **kwargs):
self.refresh_property()
**def** check_status_func(self, imei):
self.driver.get("https://portal.rinn.az/az/imei-check-service")
**assert** "Portalı" **in** self.driver.title
elem = self.driver.find_element(By.ID, "imeiCheck")
elem.clear()
elem.send_keys(imei)
elem.send_keys(Keys.RETURN)
wait = WebDriverWait(self.driver, 10)
popup_element = wait.until(
EC.visibility_of_element_located((By.CLASS_NAME, "imei-check-service__modal-description")))
information = popup_element.text
**return** information
@staticmethod
**def** check_status(status):
**if** "keçib" **in** status:
**return** "Qeydiyyatdan keçib!"
**elif** "keçirilməyib" **in** status:
**return** "Qedyiyyatdan keçirilməyib!"
**return** status
**def** refresh_property(self):
**for** phone **in** Phones.objects.filter(status="Qedyiyyatdan keçirilməyib!"):
status = self.check_status_func(imei=phone.imei)
phone.status = self.check_status(status=status)
phone.save()
Everything works except the check_imei command thank you in advance
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi! I have similar issue. Have you figured out a solution? Thank you!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
