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

[BUG] dlopen failed Due to iCloud Path Containing Whitespace #3920

Open
Giromi opened this issue Dec 31, 2024 · 0 comments
Open

[BUG] dlopen failed Due to iCloud Path Containing Whitespace #3920

Giromi opened this issue Dec 31, 2024 · 0 comments
Labels
bug Something isn't working mojo-repo Tag all issues with this label

Comments

@Giromi
Copy link

Giromi commented Dec 31, 2024

Bug description

I’m a Mojo newbie and have just started working on it recently.
My project is located in an iCloud path, but the iCloud path contains white spaces, so Mojo can’t find the file.
Is there any method to resolve this issue without moving the project out of iCloud?
The root cause seems to be the folder named 'Mobile Documents'.
Even though I created a symbolic link for that path, the problem still persists.

❯ mojo main.mojo
sh: /Users/Giromi/Library/Mobile: No such file or directory
dlopen failed: dlopen(, 0x000A): tried: '' (no such file), '/System/Volumes/Preboot/Cryptexes/OS' (not a file), '/Users/Giromi/Library/Mobile 
Documents/com~apple~CloudDocs/Repos/Giromi-archive/mojo/py_custom/.magic/envs/default/bin/../lib/' (not a file), '/usr/lib/' (not a file, not in
 dyld cache), '' (no such file)
Please submit a bug report to https://github.com/modularml/mojo/issues and include the crash backtrace along with all the relevant source codes.
Stack dump:
0.      Program arguments: mojo main.mojo
mojo crashed!
Please file a bug report.
[34387:51109714:20241231,101923.887722:WARNING in_range_cast.h:38] value -634136515 out of range
[34387:51109714:20241231,101923.892827:WARNING crash_report_exception_handler.cc:257] UniversalExceptionRaise: (os/kern) failure (5)
[1]    34385 trace trap  mojo main.mojo
(Real Path)  
/Users/Giromi/Library/Mobile Documents/com~apple~CloudDocs/Repos/Giromi-archive/mojo/py_custom/.magic/envs/default/bin/../lib/  

→ (Symbolic Link)  
~/Repos/Giromi-archive/mojo/py_custom/.magic/envs/default/bin/../lib/  

Steps to reproduce

from python import Python

def main():
    Python.add_to_path('./')
    fibonacci = Python.import_module('fibonacci')

System information

  • What OS did you do install Mojo on ?
mac OS 15.1.1 (24B91)
  • Provide version information for Mojo by pasting the output of mojo -v
❯ mojo -v
mojo 24.6.0 (4487cd6e)
  • Provide Magic CLI version by pasting the output of magic -V or magic --version
❯ magic -V
magic 0.5.1 - (based on pixi 0.37.0)
  • Optionally, provide more information with magic info.
❯ magic info
     Magic version: 0.5.1
System
------------
      Pixi version: 0.37.0
          Platform: osx-arm64
  Virtual packages: __unix=0=0
                  : __osx=15.1.1=0
                  : __archspec=1=m2
         Cache dir: /Users/Giromi/Library/Caches/rattler/cache
      Auth storage: /Users/Giromi/.rattler/credentials.json
  Config locations: No config files found

Global
------------
           Bin dir: /Users/Giromi/.modular/bin
   Environment dir: /Users/Giromi/.modular/envs
      Manifest dir: /Users/Giromi/.modular/manifests/pixi-global.toml

Project
------------
              Name: py_custom
           Version: 0.1.0
     Manifest file: /Users/Giromi/Library/Mobile Documents/com~apple~CloudDocs/Repos/Giromi-archive/mojo/py_custom/mojoproject.toml
      Last updated: 31-12-2024 08:36:27

Environments
------------
       Environment: default
          Features: default
          Channels: conda-forge, https://conda.modular.com/max
  Dependency count: 1
      Dependencies: max
  Target platforms: osx-arm64


@Giromi Giromi added bug Something isn't working mojo-repo Tag all issues with this label labels Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

1 participant