No overload for method takes arguments ошибка

How can I fix this error?

«No overload for method ‘output’ takes 0 arguments».

The error is at the very bottom at «fresh.output();».

I don’t know what I’m doing wrong. Can someone tell me what I should do to fix the code?

Here is my code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication_program
{
    public class Numbers
    {
        public double one, two, three, four;
        public virtual void output(double o, double tw, double th, double f)
        {
            one = o;
            two = tw;
            three = th;
            four = f;
        }
    }
    public class IntegerOne : Numbers
    {
        public override void output(double o, double tw, double th, double f)
        {
            Console.WriteLine("First number is {0}, second number is {1}, and third number is {2}", one, two, three);
        }
    }
    public class IntegerTwo : Numbers
    {
        public override void output(double o, double tw, double th, double f)
        {
            Console.WriteLine("Fourth number is {0}", four);
        }
    }
    class program
    {
        static void Main(string[] args)
        {
            Numbers[] chosen = new Numbers[2];

            chosen[0] = new IntegerOne();
            chosen[1] = new IntegerTwo();

            foreach (Numbers fresh in chosen)
            {
                fresh.output();
            }     
            Console.ReadLine();
        }
    }
}

Ошибка CS1501 No overload for method takes arguments означает, что метод должен принимать определенное число аргументов, но либо не заданы аргументы в методе, либо идёт попытка вызвать метод без нужных аргументов.

Рассмотрим два примера, иллюстрирующих обе ситуации:

Ситуация 1. Не задан аргумент в методе:

using System;

public class Program

{

public static void Main()

{

Console.WriteLine(Test1(«abc»));

}

static string Test1(){

return «1»;

}

}

Есть метод Test1 и у него не задан аргумент, поэтому выдается ошибка «Compilation error (line *, col *): No overload for method ‘Test1’ takes 1 arguments».

Ситуация 2

using System;

public class Program

{

public static void Main()

{

Console.WriteLine(Test1());

}

static string Test1(string a){

return a;

}

}

Теперь не забыли задать аргумент в методе, но не указали аргумент при вызове метода Test1, что также приведёт к ошибке «Compilation error (line *, col *): No overload for method ‘Test1’ takes 0 arguments».

А теперь пофиксим ошибку, приведем правильный вариант:

using System;

public class Program

{

public static void Main()

{

Console.WriteLine(Test1(«test»));

}

static string Test1(string a){

return a;

}

}

  • Remove From My Forums
  • Question

  • Hello, I am designing a small databse example.
    The database only contains one table ‘Employee’.
    Only five fields: EmployeeID(primary key), firstName,lastName,phoneNumber,Salary.
    Salary is an integer.
    Now I drag some buttons to the form. One button is to find employee by ID, find employee by last name and find all employees inside a certain salary range.
    My Table Adapter—Change the Update and Delete command to only need 1
    parameter(primary key).
    But I get three compiling errors.

    Code Block

    Error 1 No overload for method ‘FillByEmployeeID’ takes ‘2’ arguments 
    Error 2 No overload for method ‘FillBylastName’ takes ‘2’ arguments
    Error 3 No overload for method ‘FillBySalary’ takes ‘2’ arguments

    Here is my codes

    Code Block

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;

    namespace HUIDB
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }

            private void employeeBindingNavigatorSaveItem_Click(object sender, EventArgs e)
            {
                this.Validate();
                this.employeeBindingSource.EndEdit();
                this.employeeTableAdapter.Update(this.dataSet1.Employee);

            }

            private void Form1_Load(object sender, EventArgs e)
            {
                // TODO: This line of code loads data into the ‘dataSet1.Employee’ table. You can move, or remove it, as needed.
                this.employeeTableAdapter.Fill(this.dataSet1.Employee);

            }

                   private void ADD_Click(object sender, EventArgs e)
            {
                String EmployeeID = textBox1.Text;
                String firstName = textBox2.Text;
                String lastName = textBox3.Text;
                String phoneNumber = textBox4.Text;
                int Salary = Int32.Parse(textBox5.Text);
                employeeTableAdapter.Fill(this.dataSet1.Employee);
            }

            private void DELETE_Click(object sender, EventArgs e)
            {
                String EmployeeID = textBox1.Text;
                if (this.employeeTableAdapter.Delete(EmployeeID) == 0)
                    MessageBox.Show(«Deletion failed»);
                else
                    this.employeeTableAdapter.Fill(this.dataSet1.Employee);
            }

            private void UPDATE_Click(object sender, EventArgs e)
            {
                String EmployeeID = textBox1.Text;
                String firstName = textBox2.Text;
                String lastName = textBox3.Text;
                String phoneNumber = textBox4.Text;
                int Salary = Int32.Parse(textBox5.Text);
                if (this.employeeTableAdapter.Update(EmployeeID, firstName, lastName, phoneNumber,Salary, EmployeeID) == 0)
                    MessageBox.Show(«Update failed»);
                else
                    this.employeeTableAdapter.Fill(this.dataSet1.Employee);
            }

            private void FIND_Click(object sender, EventArgs e)
            {
                String EmployeeID = textBox1.Text;
                String lastName = textBox3.Text;
                int Salary = Int32.Parse(textBox5.Text);
                this.employeeTableAdapter.FillByEmployeeID(dataSet1.Employee, EmployeeID); // wrong here
                this.employeeTableAdapter.FillBylastName(dataSet1.Employee, lastName); // wrong here
                this.employeeTableAdapter.FillBySalary(dataSet1.Employee, Salary); // wrong here
            }

            private void REFRESH_Click(object sender, EventArgs e)
            {
                this.employeeTableAdapter.Fill(this.dataSet1.Employee);
            }
        }
    }

    Could you please give me some advice?
    Thanks!

Answers

  • You probably need to pass it 3 arguments — the dataset, Salary1, and Salary2.

  • Here’s the problem

                this.employeeTableAdapter.FillByEmployeeID(dataSet1.Employee, EmployeeID); // wrong here
                this.employeeTableAdapter.FillBylastName(dataSet1.Employee, lastName); // wrong here
                this.employeeTableAdapter.FillBySalary(dataSet1.Employee, Salary); // wrong here

    How many a parameters does FillByEmployeeID, FillBylastName, and FillBySalary take?

    The error is telling you to either overload these methods to accept 2 arguments or pass 1 or more than 2. I’m going to guess it’s probably only one.

                this.employeeTableAdapter.FillByEmployeeID(EmployeeID); 
                this.employeeTableAdapter.FillBylastName(lastName); 
                this.employeeTableAdapter.FillBySalary(Salary);

    Adam

Ошибка CS1501 No overload for method takes arguments означает, что метод должен принимать определенное число аргументов, но либо не заданы аргументы в методе, либо идёт попытка вызвать метод без нужных аргументов.

Рассмотрим два примера, иллюстрирующих обе ситуации:

Ситуация 1. Не задан аргумент в методе:

using System;

public class Program

{

public static void Main()

{

Console.WriteLine(Test1(«abc»));

}

static string Test1(){

return «1»;

}

}

Есть метод Test1 и у него не задан аргумент, поэтому выдается ошибка «Compilation error (line *, col *): No overload for method ‘Test1’ takes 1 arguments».

Ситуация 2

using System;

public class Program

{

public static void Main()

{

Console.WriteLine(Test1());

}

static string Test1(string a){

return a;

}

}

Теперь не забыли задать аргумент в методе, но не указали аргумент при вызове метода Test1, что также приведёт к ошибке «Compilation error (line *, col *): No overload for method ‘Test1’ takes 0 arguments».

А теперь пофиксим ошибку, приведем правильный вариант:

using System;

public class Program

{

public static void Main()

{

Console.WriteLine(Test1(«test»));

}

static string Test1(string a){

return a;

}

}

C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace Slide01
{
    class Program
    {
        static void Main()
        {
            System.Console.WriteLine(Min(4, 2, 3));
        }
        
        static int Min(int a, int b, int c)
        {
            return Math.Min(a, Math.Min(b, c));
        }
    }
}

1.Как можно дополнить код, чтобы он начал компилироваться? Выберите все возможные варианты.
а.Дописать «using System.Math;» в начало
б.Написать «System.Math.Min» вместо «Math.Min»
в.Это скомпилируется, но при выполнении метода возникнет ошибка
г.Дописать «using System.Console;» в начало
д.Дописать «using System;» в начало

Controller.cs(9,4,9,15): error CS1501: No overload for method ‘Min’ takes 1 arguments

2. Что это может значить? Отметьте все корректные варианты.
а.Ошибка в файле Controller.cs
б.Ничего страшного, это сообщение можно просто игнорировать
в.Вася привел компилятору всего один аргумент, почему стоит компилировать эту программу. Этого явно мало!
г.Вася попытался вызвать функцию Min с одним аргументом
д.Ошибка в файле Min.cs
е.Вася снова забыл написать using
ж.Есть ошибка в девятой строке

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Posted by Christopher Aberly

I’m getting a CS1501 error on my DistanceTo method after writing the code associated with this video. I tried a few things, but I’m not exactly sure what I’m missing here everything looks to be the same as the videos for the «Point» file and the «MapLocation» file. I’m assuming that I’m not passing the right number of arguments into the method, but I can’t figure out how many I’m actually passing to see what might be the problem.

I noticed that the MapLocation Object has 3 parameters (x, y, and map) while the DistanceTo takes only 2 (x,y), but the code in the video didn’t mention modifications to this, so I’m assuming that this is ok.


Below is my code in the MapLocation file

namespace TreehouseDefense
{

class MapLocation : Point
{

public MapLocation(int x, int y, Map map) : base (x, y)
{
  if (!map.OnMap(this))
  {

    throw new OutOfBoundsException(x + "," + y + " is outside the boundaries of the map!");

  }
}


public bool InRangeOf(MapLocation location, int range)
{
    return DistanceTo(location) <= range;

}

}

}


For Point File (object)

using System;

namespace TreehouseDefense

{
class Point
{
public readonly int X;
public readonly int Y;

public Point(int x, int y)
{
  X = x;
  Y = y;
}

public int DistanceTo(int x, int y)
{
  return (int)Math.Sqrt(Math.Pow(X - x , 2) + Math.Pow(Y - y , 2));
}

}
}

2 Answers

Steven Parker

As you observed, «DistanceTo» is defined to take 2 arguments. But it is being called with just one argument («DistanceTo(location)«) in the «InRangeOf» method.

You could change the call to pass in two arguments, but I seem to recall that the project eventually has a 1-argument overload. So if you didn’t miss something, you could just be in an intermediate point right before the overload gets added.


UPDATE: In the Overloading Methods video back in stage 1, the overload of «DistanceTo» was created in the «Point» object. The original takes 2 int arguments, but the new one takes a «Point» (which can also be a «MapLocation»).

Christopher Aberly June 20, 2020 10:57am

I’ve made it through the whole course and gone back through all of the videos to figure out what I’ve done wrong and can’t find it. It looks like the location variable being passed into the DistanceTo method is of MapLocation type, which is an «x», «y», and «map» value. I’m not sure what is going on here, but I’ve written exactly what is in the videos and its not passing through. I don’t recall anything about an override?!

So, to check to see if the additional «map» parameter was causing the issue I changed the type to a «Point»

I tried changing the location type to a Point (from a different class) which definitely only has two input arguments. Note, this is the same class that the «DistanceTo» method is initiated in and on. No dice. Same error.

  • Remove From My Forums
  • Question

  • I’m getting the error error

    CS1501: No overload for method ‘WaitOne’ takes ‘1’ arguments

    When I do an automated build on TFS, but not when I get the source and compile on my machine.

    The thing is, WaitOne(TimeSpan) (off an AutoResetEvent) is VALID!!

    Has anyone else met this?

    • Changed type

      Wednesday, December 17, 2008 10:25 AM

    • Changed type
      Harry Zhu
      Tuesday, January 13, 2009 3:29 AM

Answers

  • The WaitOne(int) and WaitOne(TimeSpan) overloads were added in .NET 3.5, equivalent to .NET 2.0 SP1.  .NET 2.0 only had the overloads that take an additional bool (exitContext argument).  Practically nobody understood what that meant and the wrong value was often used.  To make sure your code runs on the original version of .NET 2.0, you should use the version that takes the additional bool, passing false.


    Hans Passant.

    • Marked as answer by
      BanksySan
      Wednesday, August 5, 2009 8:53 AM

This question already has an answer here:

  • Error cs1501 unity3d 1 answer

I keep getting this error when I run my code and I can’t quite see what the problem is:

error CS1501: No overload for method checkStatus’ takes `1′ arguments

In my enemyHealth script I have:

void Update()
{
    checkStatus (0);
}

public void checkStatus()
{
    if (currentHealth > maxHealth)
        currentHealth = maxHealth;

    if (currentHealth <= 0)
        death();
}

and in my playerAttack script I have:

private void Attack()
{
    enemyHealth eh = (enemyHealth)target.GetComponent ();
    eh.checkStatus (-10);
}


Well, the error message should be plain — you’re calling the checkStatus method with a single argument, while it is declared with no arguments.

Either you need to add an argument to the method declaration (and use it somehow), or you need to change the calls to pass no argument.

It seems that your intent is to either lower the health and check if the character survived — if that’s the case, something like this might work:

public void Damage(int amount)
{
  currentHealth -= amount;

  if (currentHealth > maxHealth)
    currentHealth = maxHealth;

  if (currentHealth <= 0)
    death();
}

Posted by Christopher Aberly

I’m getting a CS1501 error on my DistanceTo method after writing the code associated with this video. I tried a few things, but I’m not exactly sure what I’m missing here everything looks to be the same as the videos for the «Point» file and the «MapLocation» file. I’m assuming that I’m not passing the right number of arguments into the method, but I can’t figure out how many I’m actually passing to see what might be the problem.

I noticed that the MapLocation Object has 3 parameters (x, y, and map) while the DistanceTo takes only 2 (x,y), but the code in the video didn’t mention modifications to this, so I’m assuming that this is ok.


Below is my code in the MapLocation file

namespace TreehouseDefense
{

class MapLocation : Point
{

public MapLocation(int x, int y, Map map) : base (x, y)
{
  if (!map.OnMap(this))
  {

    throw new OutOfBoundsException(x + "," + y + " is outside the boundaries of the map!");

  }
}


public bool InRangeOf(MapLocation location, int range)
{
    return DistanceTo(location) <= range;

}

}

}


For Point File (object)

using System;

namespace TreehouseDefense

{
class Point
{
public readonly int X;
public readonly int Y;

public Point(int x, int y)
{
  X = x;
  Y = y;
}

public int DistanceTo(int x, int y)
{
  return (int)Math.Sqrt(Math.Pow(X - x , 2) + Math.Pow(Y - y , 2));
}

}
}

2 Answers

Steven Parker

As you observed, «DistanceTo» is defined to take 2 arguments. But it is being called with just one argument («DistanceTo(location)«) in the «InRangeOf» method.

You could change the call to pass in two arguments, but I seem to recall that the project eventually has a 1-argument overload. So if you didn’t miss something, you could just be in an intermediate point right before the overload gets added.


UPDATE: In the Overloading Methods video back in stage 1, the overload of «DistanceTo» was created in the «Point» object. The original takes 2 int arguments, but the new one takes a «Point» (which can also be a «MapLocation»).

Christopher Aberly June 20, 2020 10:57am

I’ve made it through the whole course and gone back through all of the videos to figure out what I’ve done wrong and can’t find it. It looks like the location variable being passed into the DistanceTo method is of MapLocation type, which is an «x», «y», and «map» value. I’m not sure what is going on here, but I’ve written exactly what is in the videos and its not passing through. I don’t recall anything about an override?!

So, to check to see if the additional «map» parameter was causing the issue I changed the type to a «Point»

I tried changing the location type to a Point (from a different class) which definitely only has two input arguments. Note, this is the same class that the «DistanceTo» method is initiated in and on. No dice. Same error.

using System;
namespace Program
{
    class Program
    {
        static void Main(string[] args)
        {
            Random rnd = new Random();
            Console.WriteLine("---   Start Game   ---");
            Console.Write("nPredict the points number (2..12) : ");

            int predict = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("User rolls the dice: " + predict + "n");

            int summa = sum(RollTheDice(), RollTheDice());
            int score = summa - Math.Abs(summa - predict) * 2;

            Console.WriteLine("nOn the dice fell {0} points", summa);
            Console.WriteLine("nResult {0}-abs({0}-{1})*2: {2} points", summa, predict, score);

            if (score > 0)
            {
                Console.WriteLine("nUser wins!.");
            }
            else
            {
                Console.WriteLine("nUser lose!");
            }
        }
        public int RollTheDice(int number)
        {
            Random rnd = new Random();
            number = rnd.Next(1, 7);
            Printdice(number);
            return number;
        }
        public int sum(int n1, int n2)
        {
            return n1 + n2;
        }
        static void Printdice(int number)
        {
            switch (number)
            {
                case 1:
                    Console.WriteLine("---------");
                    Console.WriteLine("|       |");
                    Console.WriteLine("|   #   |");
                    Console.WriteLine("|       |");
                    Console.WriteLine("---------");
                    break;
                case 2:
                    Console.WriteLine("---------");
                    Console.WriteLine("| #     |");
                    Console.WriteLine("|       |");
                    Console.WriteLine("|     # |");
                    Console.WriteLine("---------");
                    break;
                case 3:
                    Console.WriteLine("---------");
                    Console.WriteLine("| #     |");
                    Console.WriteLine("|   #   |");
                    Console.WriteLine("|     # |");
                    Console.WriteLine("---------");
                    break;
                case 4:
                    Console.WriteLine("---------");
                    Console.WriteLine("| #   # |");
                    Console.WriteLine("|       |");
                    Console.WriteLine("| #   # |");
                    Console.WriteLine("---------");
                    break;
                case 5:
                    Console.WriteLine("---------");
                    Console.WriteLine("| #   # |");
                    Console.WriteLine("|   #   |");
                    Console.WriteLine("| #   # |");
                    Console.WriteLine("---------");
                    break;
                case 6:
                    Console.WriteLine("---------");
                    Console.WriteLine("| # # # |");
                    Console.WriteLine("|       |");
                    Console.WriteLine("| # # # |");
                    Console.WriteLine("---------");
                    break;
            }
        }
    }
}

CS1501 – No overload for method ‘{0}’ takes {1} arguments

Reason for the Error & Solution

No overload for method ‘method’ takes ‘number’ arguments

A call was made to a class method, but no definition of the method takes the specified number of arguments.

Example

The following sample generates CS1501.

using System;  
  
namespace ConsoleApplication1  
{  
    class Program  
    {  
        static void Main(string[] args)  
        {  
            ExampleClass ec = new ExampleClass();  
            ec.ExampleMethod();  
            ec.ExampleMethod(10);  
            // The following line causes compiler error CS1501 because
            // ExampleClass does not contain an ExampleMethod that takes  
            // two arguments.  
            ec.ExampleMethod(10, 20);  
        }  
    }  
  
    // ExampleClass contains two overloads for ExampleMethod. One of them
    // has no parameters and one has a single parameter.  
    class ExampleClass  
    {  
        public void ExampleMethod()  
        {  
            Console.WriteLine("Zero parameters");  
        }  
  
        public void ExampleMethod(int i)  
        {  
            Console.WriteLine("One integer parameter.");  
        }  
  
        //// To fix the error, you must add a method that takes two arguments.  
        //public void ExampleMethod (int i, int j)  
        //{  
        //    Console.WriteLine("Two integer parameters.");  
        //}  
    }  
}  

Kashi

2 / 2 / 0

Регистрация: 26.01.2013

Сообщений: 76

1

26.03.2013, 12:37. Показов 10243. Ответов 6

Метки нет (Все метки)


Студворк — интернет-сервис помощи студентам

День добрый. Я появилась проблемка, при дебаге выдает ошибку(«No overload for method ‘ TimerProxy’ takes 1 argument»)
Привожу пример кода
1ая часть кода относится к форме

C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
private void numericUpDown1_HoursnUB(object sender, EventArgs e)    //nUB - numericUpButton
        {
            Tmp2.TimerProxy(numericUpDown1);
        }
 
        private void numericUpDown2_MinutenUB(object sender, EventArgs e)
        {
            Tmp2.TimerProxy(numericUpDown2);
        }
 
        private void numericUpDown3_SecondnUB(object sender, EventArgs e)
        {
            Tmp2.TimerProxy(numericUpDown3);
        }

2я часть кода в другом классе

C#
1
public static void TimerProxy(NumericUpDown numericUpDown1, NumericUpDown numericUpDown2, NumericUpDown numericUpDown3, Button button1, TextBox textbox2)

я присвоил их к методу но появляется ошибка
З.Ы. остальные части начиная с buttona, ошибка таже.



0



Programming

Эксперт

94731 / 64177 / 26122

Регистрация: 12.04.2006

Сообщений: 116,782

26.03.2013, 12:37

6

708 / 708 / 226

Регистрация: 04.03.2013

Сообщений: 1,384

26.03.2013, 12:56

2

Что это значит?

Цитата
Сообщение от Kashi
Посмотреть сообщение

я присвоил их к методу но появляется ошибка

А так очевидно что отсутствует перегрузка метода принимающая лишь 1 параметр. Перегружайте метод, либо вызывайте со всеми необходимыми параметрами.



0



tezaurismosis

Администратор

Эксперт .NET

9392 / 4676 / 757

Регистрация: 17.04.2012

Сообщений: 9,520

Записей в блоге: 14

26.03.2013, 13:06

3

No overload for method ‘ TimerProxy’ takes 1 argument

«Ни одна из перегрузок метода TimerProxy не принимает 1 аргумент»
1) Ваша ошибка: метод TimerProxy принимает 5 аргументов, а вы передаёте один.

C#
1
Tmp2.TimerProxy(numericUpDown1);

2)Замечание: в будущем постарайтесь использовать поменьше аргументов в методах (2-3 будет норм) — это облегчит чтение кода.



0



2 / 2 / 0

Регистрация: 26.01.2013

Сообщений: 76

26.03.2013, 13:26

 [ТС]

4

т.е он не может определить какой именно аргумент ему передают?



0



Администратор

Эксперт .NET

9392 / 4676 / 757

Регистрация: 17.04.2012

Сообщений: 9,520

Записей в блоге: 14

26.03.2013, 13:27

5

Цитата
Сообщение от Kashi
Посмотреть сообщение

т.е он не может определить какой именно аргумент ему передают

Ему нужны все 5 аргументов, а не какой-нибудь из них. Передайте все.



0



2 / 2 / 0

Регистрация: 26.01.2013

Сообщений: 76

26.03.2013, 13:33

 [ТС]

6

Получается я описал все методы, но они к нему поступают так ( или 1 или 2 или 3…)



0



tezaurismosis

Администратор

Эксперт .NET

9392 / 4676 / 757

Регистрация: 17.04.2012

Сообщений: 9,520

Записей в блоге: 14

26.03.2013, 13:52

7

Я опять напарываюсь на непонимание с вашей стороны. Почитайте немного учебники.

Цитата
Сообщение от Kashi
Посмотреть сообщение

Получается я описал все методы, но они к нему поступают так ( или 1 или 2 или 3…)

Снова повторяюсь: методу нужны не один или два или три, а ВСЕ аргументы (5 штук), вы передаёте ОДИН

C#
1
Tmp2.TimerProxy(numericUpDown1); // здесь один аргумент - numericUpDown1

Судя по всему, вам надо писать

C#
1
2
3
private void numericUpDown3_SecondnUB(object sender, EventArgs e) {
    Tmp2.TimerProxy(numericUpDown1, numericUpDown2, numericUpDown3, button1, textbox2);
}



1



Понравилась статья? Поделить с друзьями:
  • Node js не устанавливается на windows 10 ошибка
  • No more data to read from socket ошибка
  • Node js cannot get ошибка
  • No module named tkinter ошибка
  • Node is not defined ошибка