SinisterRectus / Discordia

Discord API library written in Lua for the Luvit runtime environment
MIT License
712 stars 145 forks source link

Get an error when I try to install #343

Closed statik37 closed 2 years ago

statik37 commented 2 years ago

This is the output when I try to install.

lit version: 3.8.5
luvi version: v2.12.0
command: install SinisterRectus/discordia
load config: C:\Users\wesley\AppData\Roaming\litconfig
connecting: wss://lit.luvit.io/
including dependency: base64 (2.0.0)
including dependency: coro-channel (3.0.3)
including dependency: coro-http (3.2.3)
including dependency: coro-net (3.3.0)
including dependency: coro-websocket (3.1.1)
including dependency: coro-wrapper (3.1.0)
including dependency: discordia (2.9.2)
including dependency: http-codec (3.0.6)
including dependency: pathjoin (2.0.0)
including dependency: resource (2.1.0)
including dependency: secure-socket (1.2.3)
including dependency: sha1 (1.0.4)
including dependency: websocket-codec (3.0.2)
compiling filter: C:\Users\wesley\Desktop\Test bot\deps\discordia\** excludes by default (first rule is positive)
including: package.lua
including: libs\voice\streams\PCMString.lua
including: libs\voice\streams\PCMStream.lua
including: libs\voice\streams\PCMGenerator.lua
including: libs\voice\streams\FFmpegProcess.lua
including: libs\voice\sodium.lua
including: libs\voice\opus.lua
including: libs\voice\VoiceSocket.lua
including: libs\voice\VoiceManager.lua
including: libs\voice\VoiceConnection.lua
including: libs\utils\Time.lua
including: libs\utils\Stopwatch.lua
including: libs\utils\Permissions.lua
including: libs\utils\Mutex.lua
including: libs\utils\Logger.lua
including: libs\utils\Emitter.lua
including: libs\utils\Deque.lua
including: libs\utils\Date.lua
including: libs\utils\Color.lua
including: libs\utils\Clock.lua
including: libs\iterables\WeakCache.lua
including: libs\iterables\TableIterable.lua
including: libs\iterables\SecondaryCache.lua
including: libs\iterables\Iterable.lua
including: libs\iterables\FilteredIterable.lua
including: libs\iterables\Cache.lua
including: libs\iterables\ArrayIterable.lua
including: libs\extensions.lua
including: libs\enums.lua
including: libs\endpoints.lua
including: libs\containers\abstract\UserPresence.lua
including: libs\containers\abstract\TextChannel.lua
including: libs\containers\abstract\Snowflake.lua
including: libs\containers\abstract\GuildChannel.lua
including: libs\containers\abstract\Container.lua
including: libs\containers\abstract\Channel.lua
including: libs\containers\Webhook.lua
including: libs\containers\User.lua
including: libs\containers\Role.lua
including: libs\containers\Relationship.lua
including: libs\containers\Reaction.lua
including: libs\containers\PrivateChannel.lua
including: libs\containers\PermissionOverwrite.lua
including: libs\containers\Message.lua
including: libs\containers\Member.lua
including: libs\containers\Invite.lua
including: libs\containers\GuildVoiceChannel.lua
including: libs\containers\GuildTextChannel.lua
including: libs\containers\GuildCategoryChannel.lua
including: libs\containers\Guild.lua
including: libs\containers\GroupChannel.lua
including: libs\containers\Emoji.lua
including: libs\containers\Ban.lua
including: libs\containers\AuditLogEntry.lua
including: libs\containers\Activity.lua
including: libs\constants.lua
including: libs\client\WebSocket.lua
including: libs\client\Shard.lua
including: libs\client\Resolver.lua
including: libs\client\EventHandler.lua
including: libs\client\Client.lua
including: libs\client\API.lua
including: libs\class.lua
including: init.lua
including: examples\pingPong.lua
including: examples\helpCommandExample.lua
including: examples\embed.lua
including: examples\basicCommands.lua
including: examples\appender.lua
including: docgen.lua
installing package: SinisterRectus/discordia@v2.9.2
fail: [string "bundle:libs/export.lua"]:54: ENOENT: no such file or directory: C:\Users\wesley\Desktop\Test bot\deps\discordia\docgen.lua
stack traceback:
        [C]: in function 'assert'
        [string "bundle:libs/export.lua"]:54: in function 'exportEntry'
        [string "bundle:libs/export.lua"]:40: in function 'export'
        [string "bundle:libs/install-deps.lua"]:74: in function 'installDepsFs'
        [string "bundle:libs/core.lua"]:537: in function 'installList'
        [string "bundle:commands/install.lua"]:12: in function <[string "bundle:commands/install.lua"]:1>
        [string "bundle:main.lua"]:69: in function <[string "bundle:main.lua"]:56>
        [C]: in function 'xpcall'
        [string "bundle:main.lua"]:56: in function <[string "bundle:main.lua"]:48>
truemedian commented 2 years ago

This is a bug in lit, usually caused by the user not having permission to access or change files in deps

statik37 commented 2 years ago

How do I fix this?

Bilal2453 commented 2 years ago

How do I fix this?

By making sure you can access and write into the directory. Use the Windows folder settings to alter the permissions. Or try debugging your problem further by manually trying to write something into the directory

This bug should be easy to fix, I won't be able to fix it now but I will have it on the top of my Lit fixes. Should be available in 2-3 days.

statik37 commented 2 years ago

Thank you

Bilal2453 commented 2 years ago

For more information feel free to get some help at https://discord.gg/sinisterware