Code Monkey home page Code Monkey logo

Comments (8)

freak-head avatar freak-head commented on May 26, 2024

you installed requirements using pip3 so use python3 chromium.py

from yeetmeet.

eyjge avatar eyjge commented on May 26, 2024

you installed requirements using pip3 so use python3 chromium.py

python3 chromium.py
[0821/192826.246975:WARNING:exception_snapshot_linux.cc(427)] Unhandled signal -1
[0821/192826.353981:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0821/192826.354033:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[387091:387120:0821/192827.243031:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=512
Traceback (most recent call last):
  File "chromium.py", line 9, in <module>
    from bot import updater, dp, browser
  File "/home/ubuntu/YeetMeet/bot/__init__.py", line 25, in <module>
    browser = webdriver.Chrome(options=options)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 76, in __init__
    RemoteWebDriver.__init__(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: DevToolsActivePort file doesn't exist

ubuntu@instance-20210712-1350:~/YeetMeet$ [0821/193145.246123:WARNING:exception_snapshot_linux.cc(427)] Unhandled signal -1
[0821/193145.346464:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0821/193145.346516:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[387091:387120:0821/193146.356787:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=512
[0821/193215.545788:WARNING:exception_snapshot_linux.cc(427)] Unhandled signal -1
[0821/193215.643871:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0821/193215.643920:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[387091:387120:0821/193216.257418:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=512
[387750:387750:0821/193245.747749:ERROR:gpu_init.cc(441)] Passthrough is not supported, GL is swift 
``
Thank you for your help,i can run it now,but i meet this error,what can i do?Thx

from yeetmeet.

freak-head avatar freak-head commented on May 26, 2024

Add these arguments in bot/init.py

options.add_argument('--remote-debugging-port=9222')
options.add_argument("--user-data-dir=selenium")
options.add_argument("start-maximized")
options.add_argument("--disable-infobars")
options.add_argument("--disable-extensions")
options.add_argument("--disable-gpu")
options.add_argument("--disable-dev-shm-usage")

Don't forget to remove duplicates

from yeetmeet.

eyjge avatar eyjge commented on May 26, 2024

Add these arguments in bot/init.py

options.add_argument('--remote-debugging-port=9222')
options.add_argument("--user-data-dir=selenium")
options.add_argument("start-maximized")
options.add_argument("--disable-infobars")
options.add_argument("--disable-extensions")
options.add_argument("--disable-gpu")
options.add_argument("--disable-dev-shm-usage")

Don't forget to remove duplicates

ubuntu@instance-20210712-1350:~$ google-chrome-stable &
[1] 517463
ubuntu@instance-20210712-1350:~$ cd YeetMeet
ubuntu@instance-20210712-1350:~/YeetMeet$ python3 chromium.py
[0822/141507.604169:WARNING:exception_snapshot_linux.cc(427)] Unhandled signal -1
[0822/141508.758525:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0822/141508.758573:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[517463:517494:0822/141516.343662:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=512

^C
^CTraceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 76, in __init__
    RemoteWebDriver.__init__(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot create default profile directory


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "chromium.py", line 9, in <module>
    from bot import updater, dp, browser
  File "/home/ubuntu/YeetMeet/bot/__init__.py", line 32, in <module>
    browser = webdriver.Chrome(options=options)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 83, in __init__
    self.quit()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 158, in quit
    self.service.stop()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 151, in stop
    self.send_remote_shutdown_command()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 127, in send_remote_shutdown_command
    url_request.urlopen("%s/shutdown" % self.service_url)
  File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.8/urllib/request.py", line 521, in open
    meth = getattr(processor, meth_name)
KeyboardInterrupt

Yes,i put them in bot/init.py,but it shows this,what can i do?Thank you.

from yeetmeet.

freak-head avatar freak-head commented on May 26, 2024

uhhh....im not sure of this can u share your repo link? if u don't mind

from yeetmeet.

1337w0rm avatar 1337w0rm commented on May 26, 2024

Add these arguments in bot/init.py
options.add_argument('--remote-debugging-port=9222')
options.add_argument("--user-data-dir=selenium")
options.add_argument("start-maximized")
options.add_argument("--disable-infobars")
options.add_argument("--disable-extensions")
options.add_argument("--disable-gpu")
options.add_argument("--disable-dev-shm-usage")
Don't forget to remove duplicates

ubuntu@instance-20210712-1350:~$ google-chrome-stable &
[1] 517463
ubuntu@instance-20210712-1350:~$ cd YeetMeet
ubuntu@instance-20210712-1350:~/YeetMeet$ python3 chromium.py
[0822/141507.604169:WARNING:exception_snapshot_linux.cc(427)] Unhandled signal -1
[0822/141508.758525:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0822/141508.758573:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[517463:517494:0822/141516.343662:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=512

^C
^CTraceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 76, in __init__
    RemoteWebDriver.__init__(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot create default profile directory


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "chromium.py", line 9, in <module>
    from bot import updater, dp, browser
  File "/home/ubuntu/YeetMeet/bot/__init__.py", line 32, in <module>
    browser = webdriver.Chrome(options=options)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 83, in __init__
    self.quit()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 158, in quit
    self.service.stop()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 151, in stop
    self.send_remote_shutdown_command()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 127, in send_remote_shutdown_command
    url_request.urlopen("%s/shutdown" % self.service_url)
  File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.8/urllib/request.py", line 521, in open
    meth = getattr(processor, meth_name)
KeyboardInterrupt

Yes,i put them in bot/init.py,but it shows this,what can i do?Thank you.

Dont' add options.add_argument("--user-data-dir=selenium")

from yeetmeet.

eyjge avatar eyjge commented on May 26, 2024

Add these arguments in bot/init.py
options.add_argument('--remote-debugging-port=9222')
options.add_argument("--user-data-dir=selenium")
options.add_argument("start-maximized")
options.add_argument("--disable-infobars")
options.add_argument("--disable-extensions")
options.add_argument("--disable-gpu")
options.add_argument("--disable-dev-shm-usage")
Don't forget to remove duplicates

ubuntu@instance-20210712-1350:~$ google-chrome-stable &
[1] 517463
ubuntu@instance-20210712-1350:~$ cd YeetMeet
ubuntu@instance-20210712-1350:~/YeetMeet$ python3 chromium.py
[0822/141507.604169:WARNING:exception_snapshot_linux.cc(427)] Unhandled signal -1
[0822/141508.758525:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0822/141508.758573:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[517463:517494:0822/141516.343662:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=512

^C
^CTraceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 76, in __init__
    RemoteWebDriver.__init__(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot create default profile directory


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "chromium.py", line 9, in <module>
    from bot import updater, dp, browser
  File "/home/ubuntu/YeetMeet/bot/__init__.py", line 32, in <module>
    browser = webdriver.Chrome(options=options)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 83, in __init__
    self.quit()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 158, in quit
    self.service.stop()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 151, in stop
    self.send_remote_shutdown_command()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 127, in send_remote_shutdown_command
    url_request.urlopen("%s/shutdown" % self.service_url)
  File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.8/urllib/request.py", line 521, in open
    meth = getattr(processor, meth_name)
KeyboardInterrupt

Yes,i put them in bot/init.py,but it shows this,what can i do?Thank you.

Dont' add options.add_argument("--user-data-dir=selenium")

ubuntu@instance-20210712-1350:~$ google-chrome-stable &
[1] 529026
ubuntu@instance-20210712-1350:~$ python3 chromium.py
python3: can't open file 'chromium.py': [Errno 2] No such file or directory
ubuntu@instance-20210712-1350:~$ cd YeetMeet
ubuntu@instance-20210712-1350:~/YeetMeet$ python3 chromium.py
[0822/172602.049491:WARNING:exception_snapshot_linux.cc(427)] Unhandled signal -1
[0822/172603.468374:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0822/172603.468506:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[529026:529056:0822/172609.182576:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=512
Traceback (most recent call last):
  File "chromium.py", line 9, in <module>
    from bot import updater, dp, browser
  File "/home/ubuntu/YeetMeet/bot/__init__.py", line 30, in <module>
    browser = webdriver.Chrome(options=options)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 76, in __init__
    RemoteWebDriver.__init__(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: chrome not reachable

ubuntu@instance-20210712-1350:~/YeetMeet$ [0822/172811.953533:WARNING:exception_snapshot_linux.cc(427)] Unhandled signal -1
[0822/172812.147147:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0822/172812.147208:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[529026:529056:0822/172813.252647:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=512
[0822/172842.644919:WARNING:exception_snapshot_linux.cc(427)] Unhandled signal -1
[0822/172842.752561:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0822/172842.752611:ERROR:file_io_posix.cc(144)] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[529026:529056:0822/172843.665586:ERROR:gpu_process_host.cc(995)] GPU process exited unexpectedly: exit_code=512
^C
ubuntu@instance-20210712-1350:~/YeetMeet$ [529519:529519:0822/172910.858574:ERROR:gpu_init.cc(441)] Passthrough is not supported, GL is swiftshader

Yes, I delete options.add_argument("--user-data-dir=selenium") in init.py and it shows this,the chrome icon was shown but there's nothing show inside.What can i do?

from yeetmeet.

eyjge avatar eyjge commented on May 26, 2024

uhhh....im not sure of this can u share your repo link? if u don't mind

???

from yeetmeet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.