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

[Modular CLI]: modular: error: Could not open cache index 0 size: No such file or directory #724

Closed
DaviRain-Su opened this issue Sep 11, 2023 · 6 comments
Labels
modular-cli modular tool issues mojo-repo Tag all issues with this label

Comments

@DaviRain-Su
Copy link

Issue description

root@debian:~# modular install mojo
modular: error: Could not open cache index 0 size: No such file or directory

env :

root@debian:~# uname -a
Linux debian 6.4.13-orbstack-00090-ga4cfdc88d4df #1 SMP Thu Aug 31 05:51:21 UTC 2023 x86_64 GNU/Linux

Steps to reproduce

  • Include relevant code snippet that did not work as expected.
  • If applicable, add screenshots to help explain the problem.
  • Include anything else that might help us debug the issue.

Version Info

- Provide Modular CLI version by pasting the output of `modular -v`
- What OS did you install modular CLI on ?
@DaviRain-Su DaviRain-Su added the modular-cli modular tool issues label Sep 11, 2023
@bzcheeseman
Copy link
Contributor

bzcheeseman commented Sep 11, 2023

Can you post a little more information about your system?

@parrotmac
Copy link

parrotmac commented Sep 14, 2023

Getting this error on Ubuntu 22.04.2 LTS, but it is aarch64. Looks like the modular CLI is available on ARM but mojo may not be.

isaac@vm:~$ lsb_release --all
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.2 LTS
Release:	22.04
Codename:	jammy
isaac@vm:~$ uname -a
Linux vm 5.15.0-78-generic #85-Ubuntu SMP Fri Jul 7 15:29:30 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
isaac@vm:~$ modular install mojo
modular: error: Could not open cache index 0 size: No such file or directory

@lifuzu
Copy link

lifuzu commented Sep 18, 2023

Same here, it is fine to install modular, but fails to install mojo:

$ modular install mojo
modular: error: Could not open cache index 0 size: No such file or directory
$ lsb_release --all
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 23.04
Release:	23.04
Codename:	lunar
$ modular -v
modular 0.1.4 (6b54d308)
$ uname -a
Linux ubuntu2304 6.4.16-orbstack-00103-g02b40eb69695 #1 SMP Wed Sep 13 10:13:30 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

@bzcheeseman
Copy link
Contributor

Yes we don't support mojo on aarch64. Please stay tuned!

@Jossec101
Copy link

But I'm emulating AMD64 on aarch64 MacOS and still can't do it

Architecture:           x86_64
  CPU op-mode(s):       32-bit
  Byte Order:           Little Endian
CPU(s):                 8
  On-line CPU(s) list:  0-7
Vendor ID:              0x00
  Model name:           -
    Model:              0
    Thread(s) per core: 1
    Core(s) per socket: 8
    Socket(s):          1
    Stepping:           0x0
    CPU(s) scaling MHz: 100%
    CPU max MHz:        2000.0000
    CPU min MHz:        2000.0000
    BogoMIPS:           48.00
    Flags:              fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 asimddp sha512 asimdfh
                        m dit uscat ilrcpc flagm ssbs sb dcpodp flagm2 frint
Vulnerabilities:        
  Gather data sampling: Not affected
  Itlb multihit:        Not affected
  L1tf:                 Not affected
  Mds:                  Not affected
  Meltdown:             Not affected
  Mmio stale data:      Not affected
  Retbleed:             Not affected
  Spec rstack overflow: Not affected
  Spec store bypass:    Mitigation; Speculative Store Bypass disabled via prctl
  Spectre v1:           Mitigation; __user pointer sanitization
  Spectre v2:           Not affected
  Srbds:                Not affected
  Tsx async abort:      Not affected

@Sharktheone
Copy link

But I'm emulating AMD64 on aarch64 MacOS and still can't do it

the emulation through qemu or rosetta don't work with mojo. You can also read it in the thread on their Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modular-cli modular tool issues mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

7 participants