discord / discord-rpc

https://discordapp.com/developers
MIT License
1.06k stars 327 forks source link

Compileing issue with discord-rpc "Type not found" #330

Open Honeydews opened 3 years ago

Honeydews commented 3 years ago

Im building a game by grabbing the source code and building it with "lime test windows" in a command prompt the game's directory. when I try this it greets me with the error:

source/Discord.hx:4: characters 8-30 : Type not found : discord_rpc.DiscordRpc source/Discord.hx:13: characters 3-13 : Type not found : DiscordRpc source/Discord.hx:23: characters 4-14 : Type not found : DiscordRpc source/Discord.hx:28: characters 3-13 : Type not found : DiscordRpc source/Discord.hx:33: characters 3-13 : Type not found : DiscordRpc source/Discord.hx:38: characters 3-13 : Type not found : DiscordRpc source/Discord.hx:74: characters 3-13 : Type not found : DiscordRpc

I have discordRpc downloaded fyi, in source/discord.hx the line and characters, ex: Discord.hx:4: characters 8-30 (line 4 characters 8-30) say discord_rpc.Discord

sorry if this is scattered and stuff, ive been trying to solve this bug for hours and im not sure what is the problem because I have discord rpc download but it cant find it.

TON-Games commented 3 years ago

me to

TON-Games commented 3 years ago

please fixing

niko-the-boss commented 3 years ago

Hi, I fixed the problem by installing discord-rpc.py which is the import influence the script causing problems is missing. just write the following into a command prompt:

pip install discord-rpc.py

LeCrabCurry commented 3 years ago

Hi, I fixed the problem by installing discord-rpc.py which is the import influence the script causing problems is missing. just write the following into a command prompt:

pip install discord-rpc.py

pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

do i have to download pip, if so where can i download it?

WarriorDan2008 commented 3 years ago

dude really abandoned us

Velcon-but-Velcon commented 3 years ago

I found out I already have pip but I researched it and found this site on installation. https://pip.pypa.io/en/stable/installing/ It states "pip is already installed if you are using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org or if you are working in a Virtual Environment created by virtualenv or venv. Just make sure to upgrade pip." go check out the site because there is some more info on testing whether pip is installed. Edit: I tried but this still does not fix the problem