mihaip / infinite-mac

A classic Mac loaded with everything you'd want
https://infinitemac.org
Apache License 2.0
1.12k stars 67 forks source link

Local copy complaining about no ./Data/CD-ROMs.json file #259

Closed qtqgyt closed 7 months ago

qtqgyt commented 7 months ago

Again, I don't really know what more I could include. If you need more info, please ask me. Also, running import-cd-roms doesn't work.

> infinite-mac@0.1.0 build
> vite build

vite v4.4.9 building for production...
✓ 52 modules transformed.
✓ built in 2.62s
Could not resolve "./Data/CD-ROMs.json" from "src/cdroms.ts"
file: /mnt/c/Users/danie/Documents/infinite-mac/src/cdroms.ts
error during build:
RollupError: Could not resolve "./Data/CD-ROMs.json" from "src/cdroms.ts"
    at error (file:///mnt/c/Users/danie/Documents/infinite-mac/node_modules/rollup/dist/es/shared/node-entry.js:2287:30)
    at ModuleLoader.handleInvalidResolvedId (file:///mnt/c/Users/danie/Documents/infinite-mac/node_modules/rollup/dist/es/shared/node-entry.js:24778:24)
    at file:///mnt/c/Users/danie/Documents/infinite-mac/node_modules/rollup/dist/es/shared/node-entry.js:24740:26

import-disks error:

Traceback (most recent call last):
  File "/mnt/c/Users/danie/Documents/infinite-mac/scripts/import-cd-roms.py", line 19, in <module>
    class InputManifest(typing.TypedDict):
  File "/mnt/c/Users/danie/Documents/infinite-mac/scripts/import-cd-roms.py", line 23, in InputManifest
    cover_image_type: typing.NotRequired[str]
AttributeError: module 'typing' has no attribute 'NotRequired'
mihaip commented 7 months ago

You're right at that you need to run npm run import-cd-roms to ensure that the CD-ROM library metadata is built. The error you're getting there (AttributeError: module 'typing' has no attribute 'NotRequired') shows that your Python version is too old (3.11 or later is required).

qtqgyt commented 7 months ago

You're right at that you need to run npm run import-cd-roms to ensure that the CD-ROM library metadata is built. The error you're getting there (AttributeError: module 'typing' has no attribute 'NotRequired') shows that your Python version is too old (3.11 or later is required).

Thanks! I couldn't find any Info about the error online. Sorry to keep opening random issues :/