stateofai / naver-paper

Automatic Naver Paper Machine
MIT License
23 stars 42 forks source link

AttributeError: 'NoneType' object has no attribute 'split' #9

Closed dongbum closed 10 months ago

dongbum commented 10 months ago

run_new.py 실행시

AttributeError: 'NoneType' object has no attribute 'split'

오류가 납니다.

운영체제 : 데비안 리눅스 12 파이썬 : 3.11

콘솔창의 메시지는 다음과 같습니다.

admin@ip-:~/naver/naver-paper$ python3 run_new.py 
/bin/sh: 1: google-chrome: not found
/bin/sh: 1: google-chrome-stable: not found
/bin/sh: 1: google-chrome-beta: not found
/bin/sh: 1: google-chrome-dev: not found
/bin/sh: 1: google-chrome: not found
/bin/sh: 1: google-chrome-stable: not found
/bin/sh: 1: google-chrome-beta: not found
/bin/sh: 1: google-chrome-dev: not found
Traceback (most recent call last):
  File "/home/admin/naver/naver-paper/run_new.py", line 64, in <module>
    driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options)
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/admin/.local/lib/python3.11/site-packages/webdriver_manager/chrome.py", line 40, in install
    driver_path = self._get_driver_binary_path(self.driver)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/admin/.local/lib/python3.11/site-packages/webdriver_manager/core/manager.py", line 40, in _get_driver_binary_path
    file = self._download_manager.download_file(driver.get_driver_download_url(os_type))
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/admin/.local/lib/python3.11/site-packages/webdriver_manager/drivers/chrome.py", line 32, in get_driver_download_url
    driver_version_to_download = self.get_driver_version_to_download()
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/admin/.local/lib/python3.11/site-packages/webdriver_manager/core/driver.py", line 48, in get_driver_version_to_download
    return self.get_latest_release_version()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/admin/.local/lib/python3.11/site-packages/webdriver_manager/drivers/chrome.py", line 64, in get_latest_release_version
    determined_browser_version = ".".join(determined_browser_version.split(".")[:3])
                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'
admin@ip-:~/naver/naver-paper$
stateofai commented 10 months ago

크롬 설치 후 한번 해보시겠어요? 아래 리드미 참고 하시면 됩니다 https://github.com/stateofai/naver-paper/blob/main/README.md

$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
$ sudo apt-get update
$ sudo apt-get install -y gdebi-core
$ sudo gdebi google-chrome-stable_current_amd64.deb