microsoft / microsoft/BitNet

Unable to build the project

Open
#237 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
40.3k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

Hi

I am unable to build the project

(bitnet-cpp) PS C:\Users\anuthakur\Documents\msbitnet\BitNet> python setup_env.py -md models/BitNet-b1.58-2B-4T -q i2_s
Traceback (most recent call last):
File "C:\Users\anuthakur\Documents\msbitnet\BitNet\setup_env.py", line 232, in
main()
File "C:\Users\anuthakur\Documents\msbitnet\BitNet\setup_env.py", line 209, in main
compile()
File "C:\Users\anuthakur\Documents\msbitnet\BitNet\setup_env.py", line 193, in compile
cmake_exists = subprocess.run(["cmake", "--version"], capture_output=True)
File "C:\Users\anuthakur\AppData\Local\anaconda3\envs\bitnet-cpp\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\anuthakur\AppData\Local\anaconda3\envs\bitnet-cpp\lib\subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\anuthakur\AppData\Local\anaconda3\envs\bitnet-cpp\lib\subprocess.py", line 1436, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
(bitnet-cpp) PS C:\Users\anuthakur\Documents\msbitnet\BitNet>

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

The traceback points to setup_env.py:193 in compile(), where it runs cmake --version; start by reading that function and the surrounding setup flow. Reproduce the command in the reported Windows/Anaconda environment, then define the build-path behavior for a missing CMake executable; done when the failure is handled or documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.