leonardt / fault

A Python package for testing hardware (part of the magma ecosystem)
BSD 3-Clause "New" or "Revised" License
40 stars 13 forks source link

Cant install faul. #309

Open Arka2BR opened 3 years ago

Arka2BR commented 3 years ago

When I try to use "pip install fault", I get this error,

ERROR: Command errored out with exit status 1: command: 'E:\Anaconda\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\arkap\AppData\Local\Temp\pip-install-04cqvv0m\coreir\setup.py'"'"'; file='"'"'C:\Users\arkap\AppData\Local\Temp\pip-install-04cqvv0m\coreir\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\arkap\AppData\Local\Temp\pip-pip-egg-info-xo4m01hy' cwd: C:\Users\arkap\AppData\Local\Temp\pip-install-04cqvv0m\coreir\ Complete output (5 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\arkap\AppData\Local\Temp\pip-install-04cqvv0m\coreir\setup.py", line 24, in raise NotImplementedError(_system) NotImplementedError: Windows

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Any suggestions what to do?

rsetaluri commented 3 years ago

fault depends on coreir and pycoreir which contain binary distributions of C++ code. Unfortunately, this code has neither been tested on nor built for Windows.

The easiest route would be to try running on a machine (or VM) with macOS or Linux.

If you do not have access to either and you are familiar with building C++ on Windows, you might be able to build CoreIR from source.

Arka2BR commented 3 years ago

I see. I'll try it out.

leonardt commented 3 years ago

Yes, if you'd like to pursue using this on windows native, we'll need to start with buildling coreir succesfully on that platform, so I would suggest opening an issue in that repository and we can explore what this might involve. However using linux or macOS is likely to be much less painful given we've extensively tested on both these platforms.

Arka2BR commented 3 years ago

Hmm I dont know if you could build it for Windows in a few hours if I raise the issue. Ill try VM for the time being...