Closed kidmirage closed 3 years ago
Note that "pip install z80" fails because of this as well.
@kidmirage Just updated it on PyPi. Can you check if it fixes it on your end, please?
Thanks for getting back to me Ivan,
setup.py does not error now but I get the following result:
ERROR: Command errored out with exit status 1: 'd:\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Micha\AppData\Local\Temp\pip-install-ci4n5doj\z80_90b1c9aa0e3c4aa6a7ee4f9c74e9c34c\setup.py'"'"'; file='"'"'C:\Users\Micha\AppData\Local\Temp\pip-install-ci4n5doj\z80_90b1c9aa0e3c4aa6a7ee4f9c74e9c34c\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Micha\AppData\Local\Temp\pip-record-fi4f19lo\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\python39\Include\z80' Check the logs for full command output. Running setup.py install for z80: finished with status 'error' FINISHED
Mike
On Sun, Aug 29, 2021 at 12:54 PM Ivan Kosarev @.***> wrote:
@kidmirage https://github.com/kidmirage Just updated it on PyPi. Can you check if it fixes it on your end, please?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kosarev/z80/issues/33#issuecomment-907826680, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARSB2XPZP3VTGRIQ3AISA7LT7JQ4XANCNFSM5DAKHYOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Right, there's no Windows support yet. I should be able to look into this, if you can give me the full command reproducing the issue (sorry, I have no experience with Python on Windows).
Hi Ivan,
I have been able to install z80 on a Raspberry Pi 4 and run the exercisers.py and single_stepping.py examples. Since this is my target environment for the Sol 20 emulator anyway I'm Ok with this for now (although Pi/Thonny is not as powerful as my Windows/LiClipse development environment). In both environments I get the following error when trying to use pip:
z80/_z80module.cpp(17): warning C4464: relative include path contains
'..' z80/_z80module.cpp(17): fatal error C1083: Cannot open include file: '../z80.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe' failed with exit code 2
To get z80 to install on the raspberry pi I cloned from git and ran "python setup.py install" manually. If I try a manual install on Windows I get the compile errors I forwarded earlier.
Mike
On Sun, Aug 29, 2021 at 1:29 PM Ivan Kosarev @.***> wrote:
Right, there's no Windows support yet. I should be able to look into this, if you can give me the full command reproducing the issue (sorry, I have no experience with Python on Windows).
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kosarev/z80/issues/33#issuecomment-907832780, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARSB2XI42TYAFPZC2JOYO6DT7JU7ZANCNFSM5DAKHYOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Windows install issues went to #36.
The indentation of line 26 in setup.py is wrong and the file fails to run with an "opts" not found message.