当前位置:网站首页>Easycvr development environment startup program reports an error import cycle not allowed solution
Easycvr development environment startup program reports an error import cycle not allowed solution
2022-06-24 06:06:00 【Tsingsee green rhino video】
We are in the EasyCVR When developing , An error is reported in the development environment startup program , error message : import cycle not allowed. This error message should be written by everyone Golang A common error in the program , So this article starts from EasyCVR I will share with you how to solve this error report .
Error message means A Package call B package ,B Package call A package , Causes repeated loop calls . This error in a normal project may not be A Package call B The package is so simple , May be A Called B,B Called C,C Called A, There are multiple layers of calls , If it is a problem between two packages, it can be handled through an intermediate package , However, multiple layers cannot be handled in one tundish .
The process is roughly as follows :
A Is the framework level structure of the application , stay A Contains sub modules B and C The pointer to ;
B To facilitate the use of other sub modules of the application ( such as C ) function , So its structure contains A The pointer to ;
C To be called A A method in the package .
If this kind of multi-layer loop call occurs in the project , We will introduce a package to solve the project problems :
1. Create a new package file and import the package
2. Used in projects
3. Invoke in the project
stay EasyCVR We solve this problem through subcontracting , Of course, there are also cases that can be solved by defining interfaces , You can judge according to your own situation . If you want to know more EasyCVR Function realization during development , Welcome to follow us .
边栏推荐
- Semantic web, semantic web, linked data and knowledge map
- Understand the classification and summary of cross chain related technologies
- Net domain name? Net domain name?
- Data warehouse data processing DB basic concept analysis and understanding OLAP OLTP hatp similarities and differences MPP architecture
- A letter from little potato
- Typora software installation
- Fixed assets management software enables enterprises to realize intelligent management of fixed assets
- How about the VIP domain name? Does the VIP domain name need to be filed after registration?
- Royal treasure: physical storage medium
- Tencent Anxin platform was officially released, and the "Anxin agricultural product plan" was launched at the same time, supporting the growth of 100 landmark agricultural product brands in three year
猜你喜欢
随机推荐
MySQL forgets root password cracking root password cracking all user passwords, shell script
Sub process call - process arrangement in complex O & M scenarios
ZABBIX enterprise distributed monitoring
Clickhouse alter table execution process
Basic concepts of complex networks
Script updates CLB type ingress Certificate in tke cluster
Why storage?
Typora software installation
How to resolve the domain name? How to choose a domain name?
Technology is a double-edged sword, which needs to be well kept
Adobe international certification wants to design! Understanding the style guide is your best introduction design
Data warehouse data processing DB basic concept analysis and understanding OLAP OLTP hatp similarities and differences MPP architecture
Tensorflow daily essay (I)
How to set the secondary domain name of the website? What should I pay attention to when setting the domain name?
How to solve domain name redirection? How to avoid such problems?
Analysis of DDoS attack methods
How to buy a domain name? How to do a good job in website construction?
Confirm the importance of requirements at the initial stage of EDI project
Brief introduction to the working principle of high frequency signal generator
Tencent Anxin platform was officially released, and the "Anxin agricultural product plan" was launched at the same time, supporting the growth of 100 landmark agricultural product brands in three year



