All Questions
454
questions
0
votes
1
answer
696
views
Exposing 11434 port in Docker container to access Ollama local model
I am trying to connect local Ollama 2 model, that uses port 11434 on my local machine, with my Docker container running Linux Ubuntu 22.04. I can confirm that Ollama model definitely works and is ...
0
votes
0
answers
63
views
Why can't I connect to the default port on localhost when using Milvus?
I'm just starting to use Milvus, but cannot connect to the port given in the example. I am running directly on my machine (i.e. not a Docker image), but cannot get initial exampe to work:
$ python
...
0
votes
1
answer
39
views
Trouble renewing Tor IP address on Windows 11 using stem library
I'm trying to automate the renewal of Tor IP addresses using Python on Windows 11 with the stem library. However, I keep encountering the following error:
Error renewing Tor IP: [WinError 10061] No ...
0
votes
0
answers
63
views
Connect DJI Ryze Tello drone to WSL through ROS
I am a beginner programmer in Python and I am currently carrying a project that involves connecting a Tello drone to WSL (Ubuntu 22.04), using ROS2 (Humble distro).
I am using the DJItelloPy library, ...
0
votes
0
answers
59
views
Python port scanning with asyncio too many open files
I am trying to build a port scanner in python using asyncio for asynchronous handling.
When trying in the PyCharm env, i don't get any error and ports and shown open as it should.
When trying in ...
0
votes
1
answer
91
views
OSError: [WinError 10049] The requested address is not valid in its context Python code
I am trying to connect to an ip and listen to that port. I keep getting this error message OSError: [WinError 10049] The requested address is not valid in its context It was working when I was using ...
0
votes
0
answers
34
views
Python port checker not working on Linux; just returns all ports
#Python code for simple port scanning
import socket #importing library
listofports = []
ip = socket.gethostbyname (socket.gethostname()) #getting ip-address of host
for port in range(65535): #...
2
votes
0
answers
45
views
Why is only the port version not printed in the output?
I was trying to automate the NMAP Port Scanning using Python. When I executed the script, all went good, excepting the version of the port.
Here's the code:
import nmap
nm = nmap.PortScanner()
...
0
votes
0
answers
45
views
Achieving proper timeout in python
Currently in my python code, I'm reading data from device via creating serial communication as mentioned below:
import serial
com_port = serial.Serial("COM1", 9600, timeout = 0.5)
here, ...
0
votes
1
answer
65
views
Why does using Data in R ,having different results when using same in Python
There are different types of json inputs which needs to be transformed.
Inputs:
Sample#1:
{ "table_name": [{ "id": 1, "name": "john" },{ "id": 2, &...
0
votes
1
answer
35
views
Threaded Flask app gives OSError: [Errno 98] Address already in use in Jenkins job
I am starting my Flask app in the thread and when I test it in local environment it works perfectly but whenever I run on Jenkins it gives an already in use error.
Here is my main test application to ...
0
votes
1
answer
122
views
Retrieve data from interactive brokers from inside a docker container
I have a docker container and a script with the following code:
import backtrader as bt
import pandas as pd
class MyStrategy(bt.Strategy):
def __init__(self):
...
0
votes
0
answers
296
views
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) PostgreSQL
It says:
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError)
Im using FastAPI in miniproject, and trying to run "database.py"
from sqlalchemy import create_engine
from sqlalchemy....
0
votes
0
answers
31
views
Max retries exceeded with url (GTM server side)
I have setup GTM server side following this guide: https://aws-solutions-library-samples.github.io/advertising-marketing/using-google-tag-manager-for-server-side-website-analytics-on-aws.html
Now, ...
0
votes
0
answers
57
views
Getting com ports in Python
I ran into the same problem. When I try to get com ports through Python, I get an empty list. I'm trying to get it using this code:
import serial.tools.list_ports
class Ports():
@staticmethod
...