« first day (4903 days earlier)      last day (39 days later) » 

7:52 AM
@roganjosh Never heard of Splunk, funny name, sounds a bit like gunk so I'm surprised
 
8:37 AM
One of the places I worked years ago used it to analyse log files. It has its own proprietary language that I found clunky but you could isolate particular log messages in literally billions of lines of logs very quickly
 
 
1 hour later…
9:44 AM
@roganjosh That does sound tremendously useful
I wish we had better log searching, currently we don't have any log aggregation and search :(
 
 
3 hours later…
12:24 PM
"Splunk" is easily the most questionable name I've heard since "Figma".
2
 
hahaha totally
 
12:52 PM
I've always assumed that Figma comes from "figment" as in "figment of your imagination" because it's basically mocking up how something should look if you actually built it. Splunk maybe from "spelunking"?
 
1:07 PM
@roganjosh Apparently, spot on - splunk.com/en_us/resources/videos/…
 
It's certainly a memorable name given its similarity to an English word that has been repurposed over time into something very NSFW
For a short while going from Spark to SQLite3 ,I had missed its simplicity until sqlite3.OperationalError: near "FROM": syntax error on a query that works elsewhere. Not particularly helpful in a query spanning hundreds of lines :'( Line numbers, Sqlite...?
 
 
3 hours later…
3:51 PM
I'm having a brain fart and can't seem to google what I want to do. I've created a library that someone could import anywhere they want. However, I want to know where my classes are actually running so that I can make a directory right next to wherever their script is running. Can someone remind me how to do this please?
 
os.getcwd()?
 
Yep, it was that simple, thanks. For some reason I had it in my mind that I had to go up the stack
 
4:15 PM
The executed script isn't necessarily in the CWD. If you want the location of the script, use import __main__; print(__main__.__file__)
 
 
6 hours later…
9:55 PM
Hi, I am trying to build a python module using python -m command, but it throws following error
from langchain.document_loaders import PyPDFLoader
ImportError: cannot import name 'PyPDFLoader' from 'langchain.document_loaders' (/opt/miniconda3/lib/python3.9/site-packages/langchain/document_loaders/__init__.py)
Can anyone help on this? Following is the order I followed - deleted poetry.lock file, poetry install, and then python -m [module_name]
 
10:11 PM
I don't understand what you mean by "build a python module using python -m command"
 
That is the command I used to run the entire module
I mean compile and run
python -m [module_name]
 
But that's not how a library is used? Are you passing it command line args?
 
Oh okay, then I have understood it in incorrectly
What does python -m command do?
I am using MacOS terminal to compile the code base
 
Before we get into that, where did you find python -m [module_name] specifically in relation to langchain?
 
I think the correct import is from langchain_community.document_loaders import PyPDFLoader
 
10:27 PM
@Aran-Fey from langchain.document_loaders import PyPDFLoader this is what I also have used
 
@YatShan This is the statement that I'm most focused on. People just don't talk about "compiling" python libraries generally. It's always a step in some way, but pip install will do all of that for you and, if there are extensions (C/C++/Rust) that genuinely need compiling then it can (often) happen automatically. Basically, all you should need to do is pip install into your environment
 
@YatShan That's not what I used, though
 
Once you have it pip installed, the CLI should be available
 
@Aran-Fey langchain.community
langchain_community
 
Indeed
 
10:29 PM
I will try with langchain_community and see whether errors are not coming
 
stackoverflow.com/q/78189952/4799172 needs more detail. it takes hundreds of lines of code to do this and there are multiple routes to making it work (both backend HTML generation or frontend on-the-fly)
 

« first day (4903 days earlier)      last day (39 days later) »