PrismarineJS / PrismarineJS/minecraft-data

FileNotFoundError while running example.py using Python.

Open
#900 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
938
Forks
294
Avg merge
2d 10h
Merged PRs (30d)
23

Description

After downloading the python-minecraft-data-master folder and activating the example.py file, there is an error shown below.

Traceback (most recent call last): File "c:/Users/Student/Documents/DataPacks/_helper/python-minecraft-data-master/example.py", line 3, in <module> mcd = minecraft_data("1.13") File "c:\Users\Student\Documents\DataPacks\_helper\python-minecraft-data-master\minecraft_data\__init__.py", line 12, in __call__ return type(version, (object,), convert(_dir, version, edition)) File "c:\Users\Student\Documents\DataPacks\_helper\python-minecraft-data-master\minecraft_data\tools.py", line 7, in convert with open(os.path.join(_dir, 'dataPaths.json')) as f: FileNotFoundError: [Errno 2] No such file or directory: 'c:\\Users\\Student\\Documents\\DataPacks\\_helper\\python-minecraft-data-master\\minecraft_data\\data/data/dataPaths.json'

I also tried pip install minecraft_data and it did not fix the problem.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with example.py and trace the call into minecraft_data/init.py and minecraft_data/tools.py, where the missing data/dataPaths.json path is reported. Run the example after inspecting the package's data path handling; done means the example starts without FileNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.