Python socket bind cannot assign requested address

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

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

OSError: [Errno 49] Can’t assign requested address #379

OSError: [Errno 49] Can’t assign requested address #379

Comments

I just tried upgrading 0.7.3 to 0.8.1 and my runs are failing with error below. Downgrading back to 0.7.3 fixes the problem

Traceback (most recent call last): File "launch_interact.py", line 49, in wandb.init(project='moonscrub', name=args.run_name) File "/Users/yaroslavvb/anaconda3/envs/main/lib/python3.6/site-packages/wandb/__init__.py", line 778, in init _init_headless(run) File "/Users/yaroslavvb/anaconda3/envs/main/lib/python3.6/site-packages/wandb/__init__.py", line 184, in _init_headless server = wandb_socket.Server() File "/Users/yaroslavvb/anaconda3/envs/main/lib/python3.6/site-packages/wandb/wandb_socket.py", line 29, in __init__ self.socket.bind(('localhost', 0)) OSError: [Errno 49] Can't assign requested address > /Users/yaroslavvb/anaconda3/envs/main/lib/python3.6/site-packages/wandb/wandb_socket.py(29)__init__() -> self.socket.bind(('localhost', 0)) (Pdb) 

This is MacOS 10.13.6, Python 3.6.8 :: Anaconda, Inc.

Читайте также:  Основные формы для html

The text was updated successfully, but these errors were encountered:

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

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

Running jupyter notebook gives me: OSError: [Errno 99] Cannot assign requested address #2427

Running jupyter notebook gives me: OSError: [Errno 99] Cannot assign requested address #2427

Comments

I just started using Codenvy. I wanted to run jupyter notebook (http://jupyter.org) but it gave me the following error:

It could be that I am just not getting the concept right, I’m completely new to this program. If that’s the case, please point me in the right direction 👍

Traceback (most recent call last): File "/usr/local/bin/jupyter-notebook", line 11, in sys.exit(main()) File "/usr/local/lib/python3.4/dist-packages/jupyter_core/application.py", line 267, in launch_instance return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs) File "/usr/local/lib/python3.4/dist-packages/traitlets/config/application.py", line 657, in launch_instance app.initialize(argv) File "", line 2, in initialize File "/usr/local/lib/python3.4/dist-packages/traitlets/config/application.py", line 87, in catch_config_error return method(app, *args, **kwargs) File "/usr/local/lib/python3.4/dist-packages/notebook/notebookapp.py", line 1296, in initialize self.init_webapp() File "/usr/local/lib/python3.4/dist-packages/notebook/notebookapp.py", line 1120, in init_webapp self.http_server.listen(port, self.ip) File "/usr/local/lib/python3.4/dist-packages/tornado/tcpserver.py", line 142, in listen sockets = bind_sockets(port, address=address) File "/usr/local/lib/python3.4/dist-packages/tornado/netutil.py", line 197, in bind_sockets sock.bind(sockaddr) OSError: [Errno 99] Cannot assign requested address 

Reproduction Steps:

sudo apt update sudo apt install python3-pip sudo pip3 install -vU setuptools sudo pip3 install jupyter jupyter notebook 

Codenvy version: 5.17.0

Читайте также:  Python сделать скриншот приложения

OS and version: Not sure (it’s on codenvy.io, no self-hosted)

Docker version: Also not sure

Codenvy cli.log output: N/a

The text was updated successfully, but these errors were encountered:

Источник

Получаю ошибку OSError: [Errno 99] Cannot assign requested address

Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нем неправильно.
Необходимо обновить браузер или попробовать использовать другой.

Антон

Новичок

ОС Ubuntu
Среда anaconda/spyder/ Python 3.8

При запуске выдает ошибку:

runfile(‘/home/anton/Загрузки/AutoRCCar-master/test/stream_server_test.py’, wdir=’/home/anton/Загрузки/AutoRCCar-master/test’)
Traceback (most recent call last):

File «/home/anton/Загрузки/AutoRCCar-master/test/stream_server_test.py», line 50, in
VideoStreamingTest(h, p)

File «/home/anton/Загрузки/AutoRCCar-master/test/stream_server_test.py», line 12, in __init__
self.server_socket.bind((host, port))

OSError: [Errno 99] Cannot assign requested address

import numpy as np
import cv2
import socket

class VideoStreamingTest(object):
def __init__(self, host, port):

self.server_socket = socket.socket()
self.server_socket.bind((host, port))
self.server_socket.listen(0)
self.connection, self.client_address = self.server_socket.accept()
self.connection = self.connection.makefile(‘rb’)
self.host_name = socket.gethostname()
self.host_ip = socket.gethostbyname(self.host_name)
self.streaming()

try:
print(«Host: «, self.host_name + ‘ ‘ + self.host_ip)
print(«Connection from: «, self.client_address)
print(«Streaming. «)
print(«Press ‘q’ to exit»)

# need bytes here
stream_bytes = b’ ‘
while True:
stream_bytes += self.connection.read(1024)
first = stream_bytes.find(b’\xff\xd8′)
last = stream_bytes.find(b’\xff\xd9′)
if first != -1 and last != -1:
jpg = stream_bytes[first:last + 2]
stream_bytes = stream_bytes[last + 2:]
image = cv2.imdecode(np.frombuffer(jpg, dtype=np.uint8), cv2.IMREAD_COLOR)
cv2.imshow(‘image’, image)

if cv2.waitKey(1) & 0xFF == ord(‘q’):
break
finally:
self.connection.close()
self.server_socket.close()

if __name__ == ‘__main__’:
# host, port
h, p = «192.168.1.100», 8000
VideoStreamingTest(h, p)

Источник

Оцените статью