Red wont launch for me #2090

Closed
opened 2018-09-03 16:41:56 +02:00 by Toxici11i · 2 comments
Toxici11i commented 2018-09-03 16:41:56 +02:00 (Migrated from github.com)

Other bugs

What were you trying to do?

Trying to launch red

What were you expecting to happen?

For it to launch

What actually happened?

Spat out a fat error

Starting Red...
Traceback (most recent call last):
File "red.py", line 12, in
from discord.ext import commands
File "lib\discord_init_.py", line 20, in
from .client import Client, AppInfo, ChannelPermissions
File "lib\discord\client.py", line 42, in
from .voice_client import VoiceClient
File "lib\discord\voice_client.py", line 43, in
import websockets
File "lib\websockets_init_.py", line 3, in
from .client import *
File "lib\websockets\client.py", line 12, in
from .protocol import CONNECTING, OPEN, WebSocketCommonProtocol
File "lib\websockets\protocol.py", line 17, in
from .compatibility import asyncio_ensure_future
File "lib\websockets\compatibility.py", line 9
asyncio_ensure_future = asyncio.async # Python < 3.5
^
SyntaxError: invalid syntax
Red has been terminated. Exit code: 1

How can we reproduce this issue?

Step 1)Cloning red with git
Step 2)Running it after installing dependencies
Step 3)Done

# Other bugs <!-- Did you find a bug with something other than a command? Fill out the following: --> #### What were you trying to do? Trying to launch red #### What were you expecting to happen? For it to launch #### What actually happened? Spat out a fat error ---------------- Starting Red... Traceback (most recent call last): File "red.py", line 12, in <module> from discord.ext import commands File "lib\discord\__init__.py", line 20, in <module> from .client import Client, AppInfo, ChannelPermissions File "lib\discord\client.py", line 42, in <module> from .voice_client import VoiceClient File "lib\discord\voice_client.py", line 43, in <module> import websockets File "lib\websockets\__init__.py", line 3, in <module> from .client import * File "lib\websockets\client.py", line 12, in <module> from .protocol import CONNECTING, OPEN, WebSocketCommonProtocol File "lib\websockets\protocol.py", line 17, in <module> from .compatibility import asyncio_ensure_future File "lib\websockets\compatibility.py", line 9 asyncio_ensure_future = asyncio.async # Python < 3.5 ^ SyntaxError: invalid syntax Red has been terminated. Exit code: 1 #### How can we reproduce this issue? Step 1)Cloning red with git Step 2)Running it after installing dependencies Step 3)Done
Toxici11i commented 2018-09-03 16:51:44 +02:00 (Migrated from github.com)

New issue

Re-ran the requirement install with audio support - came back with

Installing collected packages: pip, chardet, multidict, async-timeout, aiohttp, websockets, six, pycparser, cffi, PyNaCl, discord.py, youtube-dl, urllib3, certifi, idna, requests, imgurpython
Running setup.py install for multidict ... done
Running setup.py install for aiohttp ... done
Running setup.py install for websockets ... done
Running setup.py install for pycparser ... done
Running setup.py install for PyNaCl ... error
Complete output from command C:\Users\user\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\user\AppData\Local\Temp\pip-install-cfdjtv0a\PyNaCl\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\user\AppData\Local\Temp\pip-record-1rduaq9n\install-record.txt --single-version-externally-managed --compile --home=C:\Users\user\AppData\Local\Temp\pip-target-rfa4tj5q:
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\nacl
copying src\nacl\encoding.py -> build\lib.win32-3.7\nacl
copying src\nacl\exceptions.py -> build\lib.win32-3.7\nacl
copying src\nacl\hash.py -> build\lib.win32-3.7\nacl
copying src\nacl\public.py -> build\lib.win32-3.7\nacl
copying src\nacl\secret.py -> build\lib.win32-3.7\nacl
copying src\nacl\signing.py -> build\lib.win32-3.7\nacl
copying src\nacl\utils.py -> build\lib.win32-3.7\nacl
copying src\nacl_init_.py -> build\lib.win32-3.7\nacl
creating build\lib.win32-3.7\nacl\bindings
copying src\nacl\bindings\crypto_box.py -> build\lib.win32-3.7\nacl\bindings
copying src\nacl\bindings\crypto_hash.py -> build\lib.win32-3.7\nacl\bindings
copying src\nacl\bindings\crypto_scalarmult.py -> build\lib.win32-3.7\nacl\bindings
copying src\nacl\bindings\crypto_secretbox.py -> build\lib.win32-3.7\nacl\bindings
copying src\nacl\bindings\crypto_sign.py -> build\lib.win32-3.7\nacl\bindings
copying src\nacl\bindings\randombytes.py -> build\lib.win32-3.7\nacl\bindings
copying src\nacl\bindings\sodium_core.py -> build\lib.win32-3.7\nacl\bindings
copying src\nacl\bindings_init_.py -> build\lib.win32-3.7\nacl\bindings
running build_clib
error: [WinError 193] %1 is not a valid Win32 application

At the end

New issue ---------- Re-ran the requirement install with audio support - came back with ------------- Installing collected packages: pip, chardet, multidict, async-timeout, aiohttp, websockets, six, pycparser, cffi, PyNaCl, discord.py, youtube-dl, urllib3, certifi, idna, requests, imgurpython Running setup.py install for multidict ... done Running setup.py install for aiohttp ... done Running setup.py install for websockets ... done Running setup.py install for pycparser ... done Running setup.py install for PyNaCl ... error Complete output from command C:\Users\user\AppData\Local\Programs\Python\Python37-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-cfdjtv0a\\PyNaCl\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\user\AppData\Local\Temp\pip-record-1rduaq9n\install-record.txt --single-version-externally-managed --compile --home=C:\Users\user\AppData\Local\Temp\pip-target-rfa4tj5q: running install running build running build_py creating build creating build\lib.win32-3.7 creating build\lib.win32-3.7\nacl copying src\nacl\encoding.py -> build\lib.win32-3.7\nacl copying src\nacl\exceptions.py -> build\lib.win32-3.7\nacl copying src\nacl\hash.py -> build\lib.win32-3.7\nacl copying src\nacl\public.py -> build\lib.win32-3.7\nacl copying src\nacl\secret.py -> build\lib.win32-3.7\nacl copying src\nacl\signing.py -> build\lib.win32-3.7\nacl copying src\nacl\utils.py -> build\lib.win32-3.7\nacl copying src\nacl\__init__.py -> build\lib.win32-3.7\nacl creating build\lib.win32-3.7\nacl\bindings copying src\nacl\bindings\crypto_box.py -> build\lib.win32-3.7\nacl\bindings copying src\nacl\bindings\crypto_hash.py -> build\lib.win32-3.7\nacl\bindings copying src\nacl\bindings\crypto_scalarmult.py -> build\lib.win32-3.7\nacl\bindings copying src\nacl\bindings\crypto_secretbox.py -> build\lib.win32-3.7\nacl\bindings copying src\nacl\bindings\crypto_sign.py -> build\lib.win32-3.7\nacl\bindings copying src\nacl\bindings\randombytes.py -> build\lib.win32-3.7\nacl\bindings copying src\nacl\bindings\sodium_core.py -> build\lib.win32-3.7\nacl\bindings copying src\nacl\bindings\__init__.py -> build\lib.win32-3.7\nacl\bindings running build_clib error: [WinError 193] %1 is not a valid Win32 application -------- At the end
Twentysix26 commented 2018-09-03 16:53:04 +02:00 (Migrated from github.com)

As the guide explains in bold letters Python 3.5.* is needed. Make sure you uninstall the current version you have first.

As the guide explains in bold letters Python 3.5.* is needed. Make sure you uninstall the current version you have first.
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#2090
No description provided.