Skip to content
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

Only import sionna and mitsuba work on Mac and on Arm N1, mitsuba is not even compiling. #423

Open
GayathriNarayana19 opened this issue Apr 29, 2024 · 2 comments

Comments

@GayathriNarayana19
Copy link

GayathriNarayana19 commented Apr 29, 2024

Hello world program from sionna/examples gave the following error on Mac

ValueError: Only input tensors may be passed as positional arguments. The following argument value should be passed as a keyword argument: 1000 (of type <class 'int'>)

Detailed issue explained in comments below. Kindly help.

@GayathriNarayana19
Copy link
Author

GayathriNarayana19 commented Apr 29, 2024

Mac:

try:
    import sionna
    print("sionna imported successfully")
except ImportError:
    print("Failed to import sionna")

try:
    import mitsuba
    print("mitsuba imported successfully")
except ImportError:
    print("Failed to import mitsuba")

sionna imported successfully
mitsuba imported successfully
constellation = sionna.mapping.Constellation("qam", 8)
print(constellation)
<Constellation name=constellation_5, built=False>

I tried on my Mac. I was able to install Sionna and Mitsuba. And, import statements were also working as you can see above.
I tried using an attribute "mapping" of sionna to check if it works. It worked and printed the constellation name as you can see above. But surprisingly, other attributes of sionna like "scene" doesn't work.
I have the right pip and python version though.

pip3 --version
pip 24.0 from /opt/homebrew/lib/python3.12/site-packages/pip (python 3.12)

ARM

On Arm, mitsuba installation using pip is not supported. There are no proper platform supportive .whl files to build mitsuba3 from source, I believe. Because build is not successful on Arm. So even importing mitsuba is not successful on Arm but it works on Mac.

These issues were not faced on x86.

Hello world test gave the following output on MAC

File ~/Jupyter_env_G3/lib/python3.9/site-packages/keras/src/layers/layer.py:753, in Layer.__call__(self, *args, **kwargs)
    749     for arg in tree.flatten(args):
    750         if not isinstance(arg, KerasTensor) and not backend.is_tensor(
    751             arg
    752         ):
--> 753             raise ValueError(
    754                 "Only input tensors may be passed as "
    755                 "positional arguments. The following argument value "
    756                 f"should be passed as a keyword argument: {arg} "
    757                 f"(of type {type(arg)})"
    758             )
    760 # Caches info about `call()` signature, args, kwargs.
    761 call_spec = CallSpec(self._call_signature, args, kwargs)

ValueError: Only input tensors may be passed as positional arguments. The following argument value should be passed as a keyword argument: 1000 (of type <class 'int'>)

@merlinND
Copy link
Collaborator

merlinND commented May 2, 2024

Hello @GayathriNarayana19,

Mac

Could you please report specific error messages for the problem you are encountering?
Ideally, when running one of the built-in examples or tutorial notebooks.

ARM

As far as I am aware, we have not validated Sionna on Arm N1. However, the error message that you shared is in Keras.
Is it possible that the Kheras or Tensorflow version that you tested with on Arm is not part of the supported versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants