Skip to content

Compiler Error #2248

Answered by mat774
kaleb-keny asked this question in Q&A
Dec 9, 2020 · 4 comments · 10 replies
Discussion options

You must be logged in to vote

I had the same issue today on my new PC. The cause and solution were in my case the following (I'm working on a Windows PC):

Cause:

  • I used a virtual environment for my contract delevopment, therefore Vyper was only installed in the venv (by using pip install vyper).
  • Therefore, the vyper extension in VS Code was trying to use the shell command vyper to compile.
  • But this command only exists in the venv.

Solution:

  • Go to your venv folder and look for the vyper.exe file (venv -> scripts -> vyper.exe)
  • Copy the path to the exe file
  • Go in VS Code -> Settings -> Extensions -> Vyper -> Change vyper Command to the path (e.g. C:\dev\your_project.venv\Scripts\vyper.exe)
  • restart VS Code

Worked for …

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
2 replies
@kaleb-keny
Comment options

@fubuloubu
Comment options

Comment options

You must be logged in to vote
7 replies
@kaleb-keny
Comment options

@slayde704
Comment options

@ericdwkim
Comment options

@Dekubaka
Comment options

@liam-ot
Comment options

Answer selected by kaleb-keny
Comment options

You must be logged in to vote
1 reply
@seekingtau
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
9 participants