festival in honor of Apollo on the 7th of Pyanepsion (fourth month of the Attic calendar, corresponding to October-November), from Greek Pyanepsia (plural), literally "the feast of cooking beans," from pyanos, variant of kyamos, name of a kind of bean, a word of unknown origin (perhaps foreign or Pre-Greek), + epsein "to boil, cook." At this festival a dish of pulse was offered to the god.
The same word for the same stuff entered Portuguese and Spanish (brasil) and Italian (brasile). The South American country was named Santa Cruz by its "discoverer," Pedro Alvarez Cabral (1500), but within a decade on maps it began to be called terra de brasil "red-dyewood land" because it produced a valuable red dyewood similar to East Indian type, and that name predominated from 1550s.
Complicating matters is Hy Brasil, a name attested since early 14c. for a legendary island or rock in the North Atlantic off the west coast of Ireland. It is so-called perhaps from the "red dyewood" word by association with Pliny's Insulae Purpurariae ("Purple Islands") in the Atlantic off the coast of Morocco.