CARACAS, Venezuela (AP) - President Hugo Chavez was lauded as a modern-day reincarnation of Latin American liberator Simon Bolivar and a disciple of Cuba's Fidel Castro at a fiery, foot-stomping state funeral on Friday that at times smacked of a political rally as presidents, princes and left-wing glitterati looked on. Chavez's hand-picked successor, Nicolas Maduro, emotionally eulogized the fallen leader at the military academy where the funeral was held, his voice booming over Chavez's flag-draped casket as he pledged eternal loyalty. "Here we are, Comandante, your men, on their feet," Maduro shouted, government officials rising behind him. All your men and women ... loyal until beyond death. "Chavez Lives!" he declared. Mission Accomplished! But all was not peace and harmony in a country deeply divided by Chavez's 14 years in power. The opposition coalition announced it would boycott Maduro's swearing-in later Friday, calling it unconstitutional. The dispute foreshadows a bitter presidential campaign to come, with elections mandated within 30 days of Chavez's death. The opposition also rejected the original plan to hold the swearing-in at the military academy, complaining that the armed forces had already virtually endorsed Maduro as Chavez's rightful heir. The government announced at midday that the ceremony had been moved to the National Assembly building. The country's Supreme Court ruled Friday that Maduro became acting president when Chavez died and could thus run in the election without having to step down. The constitution bars sitting vice presidents from running for the top job. Opposition leader Henrique Capriles, who is expected to challenge Maduro, called the decision a "fraud." The funeral began with Venezuela's national youth orchestra singing the national anthem, led by famed conductor Gustavo Dudamel. The streets outside the military academy took on a carnival atmosphere, with military bands launching into marches and an expanse of supporters wearing the red of Chavez's socialist party. Street vendors sold paper replicas of the presidential sash, which many people in the line slipped over their shoulder. Throngs watched the ceremony on huge monitors under the blazing sun, while a line to see Chavez's body stretched 1 ½ miles (2 kilometers) but was halted as the funeral got under way. In the funeral hall, more than 30 political leaders including Cuba's Raul Castro, Spanish Crown Prince Felipe de Borbon, and Iran's Mahmoud Ahmadinejad stood at attention before Chavez's flag-draped coffin, which was closed for the ceremony. Maduro said that no Venezuelan leader, even Bolivar, who died in exile, faced and overcame such treachery and opposition as Chavez, who succumbed to cancer on Tuesday, at the age of 58 "Here you are, unconquered, pure, transparent, unique, true and always alive," Maduro shouted as many in attendance cried. Comandante, they couldn't defeat you and they will never, ever defeat us. Despite the blustery language of his speech and the expulsion on Tuesday of two U.S. military attaches on suspicion of spying, Maduro made a point of welcoming the U.S. delegation led by Rep. Gregory Meeks, a New York Democrat, and former Rep. William Delahunt, a Democrat from Massachusetts. Chavez often railed against America even as he sold the country billions of dollars in oil each year. State Department officials have voiced hope that Maduro will prove a more pragmatic leader than the often bombastic Chavez, assuming he wins a full term. Television cameras captured Hollywood star Sean Penn in attendance at the funeral, while the Rev. Jesse Jackson preached rapprochement between his country and Venezuela. "We pray to God today that you will heal the breach between the U.S. and Venezuela," Jackson said. But U.S. enemies such as Castro and Ahmadinejad also won loud applause. Maduro announced Thursday that the government would embalm Chavez's body and put it on permanent display, a decision that touched off strong passions on both sides. Venezuelans watched the funeral from cafes, with many saying they were flattered to be the subject of the world's attention. "If my Comandante was such a divisive man who fought with everyone and with other countries, wouldn't he be alone (at his funeral)?" asked Argenis Urbina, a 51-year-old bookseller who was riveted to the coverage on TV. Others said they were put off by what they saw as an excess of pomp, particularly the plan to put Chavez's body on display. Some 300 people also watched the funeral on screens set up in the Simon Bolivar plaza in Chavez's plains hometown of Sabaneta, where people had laid out flowers, candles and photos of the late leader. But critics say he left his successors a monumental task, with annual inflation of more than 20 percent and public debt that quadrupled to more than $100 billion. The government gave national and international media no direct access to the funeral, a measure of the strict control with which Chavez and his followers have ruled the country for years. Following the funeral, National Assembly Speaker Diosdado Cabello was to swear in Maduro as interim president, as Chavez desired, despite complaints by the opposition that Cabello is the rightful holder of that post under the constitution. "Venezuelans should walk along the path of constitutionality," he said. Today, more than ever we reject that they use the name of the president of the republic, who today is being buried, for political ends. Associated Press writers E. Eduardo Castillo, Christopher Toothaker and Paul Haven in Caracas contributed to this report. Vivian Sequera on Twitter: www.twitter.com/VivianSequera