Closed ShadowDawg closed 3 weeks ago
HI @ShadowDawg, have you tried using the offline mode? Like this:
johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", online=False, tz_str="America/New_York", lng=-87.1111, lat=37.7711)
Hi! Yes, this fixes the issue. Thanks for the quick response.
Descripition
The module creates a SQLite cache file (
kerykeion_geonames_cache.sqlite
) in acache
folder, which makes it unusable in serverless environments with read-only filesystems, such as Vercel.Problem
When deployed to a serverless environment, the module attempts to write to the filesystem, resulting in a permission error:
Copy[Errno 30] Read-only file system: '/var/task/cache'
Steps to Reproduce
Use the module in a serverless function (e.g., AWS Lambda, Vercel, etc.) Attempt to create an
AstrologicalSubject
Encounter a read-only filesystem errorIs there anything that could be done on my side to fix/bypass this issue? Or is it something to do with the module itself?