SkyTemple / py-desmume

Python Library and GUI for DeSmuME, the Nintendo DS emulator
GNU General Public License v3.0
25 stars 5 forks source link

pip install py-desume doesn't work on Windows #7

Open Tobs40 opened 3 years ago

Tobs40 commented 3 years ago

Latest version of pip 20.3.3 Python 3.7.9 Windows 10

pip install py-desume, it says: ERROR: Could not find a version that satisfies the requirement py-desmume ERROR: No matching distribution found for py-desmume

theCapypara commented 3 years ago

It only works on Windows for Python 3.8+ because I don't provide a wheel for Python 3.7. It should still work but would require you to compile it for yourself. Are you able to update?

Tobs40 commented 3 years ago

I'm working with Linux now, haven't tried it yet

sunburn19 commented 3 years ago

Hi, I'm also trying to install on: Windows 7 (64 bit) Python 3.7 pip 20.3.3

I can't seem to be able to compile it, and I get what seems to be a MsBuild error. This is the whole output of me running "python setup.py install":

running install running bdist_egg running egg_info writing py_desmume.egg-info\PKG-INFO writing dependency_links to py_desmume.egg-info\dependency_links.txt writing requirements to py_desmume.egg-info\requires.txt writing top-level names to py_desmume.egg-info\top_level.txt reading manifest file 'py_desmume.egg-info\SOURCES.txt' writing manifest file 'py_desmume.egg-info\SOURCES.txt' installing library code to build\bdist.win32\egg running install_lib running build_py running build_ext Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved.

Build started 3/2/2021 2:44:52 AM. Project "C:\Users\user1\Desktop\project\python\py-desmume-master__build_desmume\desmume\src\frontend\interface\windows\DeSmuME_Interface.vcxproj" on node 1 (default targets). C:\Users\user1\Desktop\project\python\py-desmume-master__build_desmume\desmume\src\frontend\interface\windows\DeSmuME_Interface.vcxproj(50,3): error MSB4019: The imported project "E:\Visual Studio\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. Done Building Project "C:\Users\user1\Desktop\project\python\py-desmume-master__build_desmume\desmume\src\frontend\interface\windows\DeSmuME_Interface.vcxproj" (default targets) -- FAILED.

Build FAILED.

"C:\Users\user1\Desktop\project\python\py-desmume-master__build_desmume\desmume\src\frontend\interface\windows\DeSmuME_Interface.vcxproj" (default target) (1) -> C:\Users\user1\Desktop\project\python\py-desmume-master__build_desmume\desmume\src\frontend\interface\windows\DeSmuME_Interface.vcxproj(50,3): error MSB4019: The imported project "E:\Visual Studio\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.02 BUILDING WINDOWS - msbuild.exe Could not compile the DeSmuME library.


theCapypara commented 3 years ago

The current version of the fork doesn't work because of changes made to to DeSmuME. I need to have a look at it.

Tobs40 commented 3 years ago

I just tried pip install py-desmume with 3.9.5 on Windows 10 and it's installing :) However when I use the following code on the Pokemon Soul Silver.nds file (I've tested three different ones) I can't get past the initial dialogue because the touchscreen is only working during the intro and after that (at least during the initial dialogue as far as I can tell) I can't use the arrow keys. I guess that's because of the changes made to DeSmuME.

EDIT: The buttons are clickable, the touchscreen is shifted I think, You need to click above or the very top of buttons. I'm not 100% sure that it's purely shifted though, the degree of shifting differs from button to button. Curiously the amount of shifting seems to be the same as the height of the top bar of the window, so maybe it's just some GUI issue?

EDIT2: Other buttons seem to work fine, maybe it's just the .nds?