|
Hopefully quick Python installation question: I've installed 3.7.3 onto a Windows server, confirmed the path is set, and restarted it. I can now execute commands from command line, PowerShell, etc. locally just fine, but the same commands produce a "Can't find a default Python" error if I attempt to execute them as a remote batch job. The remote user has administrative rights, any ideas of what I might be missing?
|
# ¿ May 29, 2019 04:53 |
|
|
# ¿ May 2, 2024 08:41 |
|
Proteus Jones posted:The only thing I can think of off the top of my head the $PATH for python is not being passed to the remote user an environment setting. If I run it directly it works fine. If I try specifying the version, the py launcher helpfully informs me that it can't detect Python being installed. Test script (PyTest.py just runs print("test")): code:
code:
|
# ¿ May 29, 2019 13:51 |
|
Whats the “best” way using boto3 to read S3 content into a stream that can be used in in a single POST request? I’d prefer to stick with Lambda “native” libraries if possible but it’s not critical.
|
# ¿ Feb 15, 2022 13:06 |
|
CarForumPoster posted:It'd be like 3 lines of code if you use boto3+requests. To clarify, I’m looking to post like 10-20GB of data so I’m looking to stream it. Loading the whole file into memory isn’t going to be feasible in Lambda.
|
# ¿ Feb 15, 2022 14:40 |
|
Bad Munki posted:If you’re using lambda (and, say, api gateway) and hoping to stream that content back to a client, it won’t work the way you want, lambda returns its response en bloc, unless they’ve changed something fundamental about it since I last had to deal with this. I appreciate you checking. I'm invoking the an AWS Lambda function through Step Functions and using it to push data via API (currently using urllib3 since it's baked into the image and simple enough). The Lambda return value is going to be discarded.
|
# ¿ Feb 15, 2022 14:55 |
|
Anyone have any experience with Paramiko throwing an error during a rename? I can connect to the SFTP server and download a file from that remote host, but asking it to move the remote file (into remote archive path) results in an "[Errno 2] File not found". I can use the same client to lstat both the original filepath and the destination directory filepath and both return the appropriate information. I have full admin rights with the user on the SFTP-side. This is using an SFTP client object that's created using the .from_transport() method. The other commands I'm issuing with it (list_dir, file) work fine. There's not really much to it: Python code:
|
# ¿ Mar 24, 2022 17:15 |
|
It’s Globalscape EFT, a relatively robust but persnickety hosting tool. I think it’s probably just going to be a no-go and I’ll just redo it from the SFTP-end and manipulate things at the OS. I’m genuinely curious is there’s anything that could be done to get it working but I’m not interested enough not to take the easy fix.
|
# ¿ Mar 24, 2022 19:28 |
|
I’m looking to replicate OpenSSL aes-256-cbc decryption of a .zip file using an RSA .pem public key file. We’ve got a script that just runs the command line executable and that works fine, but they want to port it to a AWS Lambda function. I’ve looked over a variety of pyopenssl and pycryptodome examples and I just cannot seem to dig up a working example that properly converts the .pem format to AES with the right results. Has anyone had any experience they can share on this?
|
# ¿ Feb 23, 2023 02:29 |
|
QuarkJets posted:I don't, and this is an unsatisfying answer, but what if you just deploy a container image that runs that script? It’s not out of the realm of possibility. I’ve managed to convert all their other processes to Python functions or classes so at least as a learning exercise I’d like to make it happen, but I’m not above taking the easy way out.
|
# ¿ Feb 23, 2023 03:04 |
|
|
# ¿ May 2, 2024 08:41 |
|
Cyril Sneer posted:Fun little learning project I want to do but need some direction. I want to extract the all the video transcripts from a particular youtube channel and make them both keyword and semantically searchable, returning the relevant video timestamps. This sounds like a good use-case for a vectored database and retrieval-augmented generation (RAG) and/or semantic search. You can use your dialog text as the target material and the rest as metadata you can retrieve on match. Theres a number of free options for database, including local ChromaDB instances (which use SQLite) or free-tier Pinecone.io which has good library support and a decent web UI.
|
# ¿ Apr 17, 2024 11:49 |