-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
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
TypeError: No method matches given arguments for Person..ctor: #12
Comments
Sorry for the late reply, i thought the issue was major so saved it for this week..... @rickspark4 check out the readme file now, it contains a working example |
Hey @sengiv Regards: |
if possible please list the demo files that is causing error, they probably contain outdated code. the repo basically needs spring cleaning 🧹 |
I am getting below error and not able to understand how to solve it,
i am trying to run below code as mentioned in pip documentation
from vedastro.calculators import SaturnInAries
from vedastro.objects import GeoLocation, Time, Person, Gender
import VedAstro.Library as VedAstro
Create a GeoLocation object for Tokyo, Japan
geolocation = GeoLocation(location="Tokyo", latitude=35.6895, longitude=139.6917).geolocation
Define the birth date, time, and time offset
date = "07/05/2010"
time = "06:42"
time_offset = "+09:00"
Create a Time object for the birth date, time, and time offset
time_ob = Time(date, time, time_offset, geolocation).time_object
Define the person's ID, user ID, notes, name, and gender
id = "1234"
user_id = "123"
notes = ""
name = "John Doe"
gender = Gender.Male
Create a Person object for John Doe with the provided details
john_doe = Person(id=id, user_id=user_id, name=name, gender=gender, birth_time=time_ob, notes=notes).person
do calculation to check if saturn is in aries at a given time
saturn_aries = VedAstro.HoroscopeCalculatorMethods.SaturnInAries(time_ob)
data if the astro event occured
occurrence = saturn_aries.Occuring
get the planets or houses related to this astro event
related_body = saturn_aries.RelatedBody
Print the results
print("Occurrence of Saturn in Aries:", occurrence)
print("Related celestial body:", related_body)
TypeError: No method matches given arguments for Person..ctor: (<class 'str'>, <class 'str'>, <class 'VedAstro.Library.Time'>, <class 'VedAstro.Library.Gender'>, <class 'str'>, <class 'str'>, <class 'NoneType'>)
The text was updated successfully, but these errors were encountered: