Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8049531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:48:36+00:00 2026-06-05T06:48:36+00:00

I am using a software called Mitsuba. It comes along with a Python implementation,

  • 0

I am using a software called Mitsuba. It comes along with a Python implementation, wrapped with Boost. This line in Python:

scene = SceneHandler.loadScene(fileResolver.resolve("model.xml"), paramMap)

yields an error. The type of fileResolver.resolve is fs::path and the type of paramMap is ParameterMap according to the documentation.

The function signature in the C++ code is:

SceneHandler::loadScene(const fs::path &filename, const ParameterMap &params) 

The error is:

Traceback (most recent call last):
  File "...\foo.py", line 22, in <module>
    scene = SceneHandler.loadScene(fileResolver.resolve("model.xml"), paramMap)
ArgumentError: Python argument types in
    SceneHandler.loadScene(str, StringMap)
did not match C++ signature:
    loadScene(class boost::filesystem2::basic_path<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct boost::filesystem2::path_traits>, class std::map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct mitsuba::SimpleStringOrdering,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > >)

What further investigations can I make? Do you know where the problem comes from?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:48:37+00:00Added an answer on June 5, 2026 at 6:48 am

    Unfortunately it’s not clear which of the arguments is causing a problem.

    According to the error message you have, the return type of fileResolver.resolve is apparently str, not boost::filesystem::basic_path. What you want to look at is where Mitsuba defines its Boost.Python interface to see if there is a “converter” registered for turning Python strings into boost::fs::path objects. If not, you’ll have to figure out what the right way of getting a Python object that’s convertible to the correct type is for this library.

    For the second argument, you have basically the same checks to make, unless StringMap is already a Boost.Python type (what does type(paramMap.__class__) return?). It looks like ParameterMap is a typedef for

    `std::map<std::string, std::string, mitsuba::SimpleStringOrdering>`
    

    But again, there must be a Boost.Python converter registered that can do the conversion from the Python type.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

after using this excellent peace of software called FireWatir, I wonder if there is
I am using a software called supersense tagger and I have a makefile which
I have this part of code that was compiling using ARMASM : /* Software
I am using a scientific software (called vasp) that works only in bash, and
I am writing a software using Qt. One of my task is to judge
I am building some software using Clojure as a backend, and I'd like to
I am developing a software using C# 2.0 which uses about 200MB of memory
I have developed a Mac software (using DiscRecordingFramework and IOKit) that creates hybrid Video-DVD.
I'm using a forum software where you can pull up an avatar link using
I've been documenting a software package using Sphinx and reStructuredText . Within my documents,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.