First time here? Check out the FAQ!

Revision history  [back]

The incorrect import path for the type names given by wing's auto-completer.

Hi,

I use wing to test the aiida-core package with the code given here: https://aiida-tutorials.readthedocs.io/en/latest/pages/2019_ISSP_Chiba_Japan/sections/workflows.html. The code snippets are the following:

from aiida import load_profile
load_profile()

from aiida.orm import Code, Computer, Data, Node, Float, Str
from aiida.plugins import CalculationFactory, DataFactory
from aiida.engine import calcfunction

In the above code, the calcfunction only exists in aiida.engine, so it should be imported like this:

from aiida.engine import calcfunction

But when I type the following:

from aiida.orm import c<tab>

then the auto-completer of wing will still suggest the name of calcfunction as one of the candidates, which if I selected and input there, the code will be error and finally fail to run.

Any hints for this problem?

Regards

The incorrect import path for the type names given by wing's auto-completer.

Hi,

I use wing to test the aiida-core package with the code given here: https://aiida-tutorials.readthedocs.io/en/latest/pages/2019_ISSP_Chiba_Japan/sections/workflows.html. The code snippets are the following:

from aiida import load_profile
load_profile()

from aiida.orm import Code, Computer, Data, Node, Float, Str
from aiida.plugins import CalculationFactory, DataFactory
from aiida.engine import calcfunction

In the above code, the calcfunction only exists in aiida.engine, so it should be imported like this:

from aiida.engine import calcfunction

But when I type the following:

from aiida.orm import c<tab>

then the auto-completer of wing will still suggest the name of calcfunction as one of the candidates, which if I selected and input there, the code will be error and finally fail to run.

Any hints for this problem?

Regards

The incorrect import path for the type names given by wing's auto-completer.

Hi,

I use wing to test the aiida-core package with the code given here: https://aiida-tutorials.readthedocs.io/en/latest/pages/2019_ISSP_Chiba_Japan/sections/workflows.html. The code snippets are the following:

from aiida import load_profile
load_profile()

from aiida.orm import Code, Computer, Data, Node, Float, Str
from aiida.plugins import CalculationFactory, DataFactory
from aiida.engine import calcfunction

In the above code, the calcfunction only exists in aiida.engine, so it should be imported like this:

from aiida.engine import calcfunction

But when I type the following:

from aiida.orm import c<tab>

then the auto-completer of wing will still suggest the name of calcfunction as one of the candidates, which if I selected and input there, the code will be error and finally fail to run.

Any hints for this problem?

Regards

The incorrect import path for the type names given by wing's auto-completer.

Hi,

I use wing to test the aiida-core package with the code given here: https://aiida-tutorials.readthedocs.io/en/latest/pages/2019_ISSP_Chiba_Japan/sections/workflows.html. The code snippets are the following:

from aiida import load_profile
load_profile()

from aiida.orm import Code, Computer, Data, Node, Float, Str
from aiida.plugins import CalculationFactory, DataFactory
from aiida.engine import calcfunction

In the above code, the calcfunction only exists in aiida.engine, so it should be imported like this:

from aiida.engine import calcfunction

But when I type the following:

from aiida.orm import c<tab>

then the auto-completer of wing will still suggest the name of calcfunction as one of the candidates, which if I selected and input there, the code will be error and finally fail to run.

Any hints for this problem?

Regards

The incorrect import path for the type names given by wing's auto-completer.

Hi,

I use wing to test the aiida-core package with the code given here: https://aiida-tutorials.readthedocs.io/en/latest/pages/2019_ISSP_Chiba_Japan/sections/workflows.html. The code snippets are the following:

from aiida import load_profile
load_profile()

from aiida.orm import Code, Computer, Data, Node, Float, Str
from aiida.plugins import CalculationFactory, DataFactory
from aiida.engine import calcfunction

In the above code, the calcfunction only exists in aiida.engine, so it should be imported like this:

from aiida.engine import calcfunction

But when I type the following:

from aiida.orm import c<tab>

then the auto-completer of wing will still suggest the name of calcfunction as one of the candidates, which if I selected and input there, the code will be error and finally fail to run.

Any hints for this problem?

Regards

The incorrect import path for the type names given by wing's auto-completer.

Hi,

I use wing to test the aiida-core package with the code given here: https://aiida-tutorials.readthedocs.io/en/latest/pages/2019_ISSP_Chiba_Japan/sections/workflows.html. The code snippets are the following:

from aiida import load_profile
load_profile()

from aiida.orm import Code, Computer, Data, Node, Float, Str
from aiida.plugins import CalculationFactory, DataFactory
from aiida.engine import calcfunction

In the above code, the calcfunction only exists in aiida.engine, so it should be imported like this:

from aiida.engine import calcfunction

But when I type the following:

from aiida.orm import c<tab>

then the auto-completer of wing will still suggest the name of calcfunction as one of the candidates, which if I selected and input there, the code will be error and finally fail to run.

Any hints for this problem?

Regards

The incorrect import path for the type names given by wing's auto-completer.

Hi,

I use wing to test the aiida-core package with the code given here: https://aiida-tutorials.readthedocs.io/en/latest/pages/2019_ISSP_Chiba_Japan/sections/workflows.html. The code snippets are the following:

from aiida import load_profile
load_profile()

from aiida.orm import Code, Computer, Data, Node, Float, Str
from aiida.plugins import CalculationFactory, DataFactory
from aiida.engine import calcfunction

In the above code, the calcfunction calcfunction only exists in aiida.engine, so it should be imported like this:

from aiida.engine import calcfunction

But when I type the following:

from aiida.orm import c<tab>

then the auto-completer of wing will still suggest the also give type name of calcfunction as one of the candidates, which if I selected and input there, the code will be error and finally fail to run.

Any hints for this problem?

Regards

The incorrect import path for the type names given by wing's auto-completer.

Hi,

I use wing to test the aiida-core package with the code given here: https://aiida-tutorials.readthedocs.io/en/latest/pages/2019_ISSP_Chiba_Japan/sections/workflows.html. The code snippets are the following:

from aiida import load_profile
load_profile()

from aiida.orm import Code, Computer, Data, Node, Float, Str
from aiida.plugins import CalculationFactory, DataFactory
from aiida.engine import calcfunction

In the above code, the calcfunction only exists in aiida.engine, so it should be imported like this:

from aiida.engine import calcfunction

But when I type the following:

from aiida.orm import c<tab>

then the auto-completer of wing will also give type name of calcfunction calcfunction as one of the candidates, which if I selected and input there, the code will be error and finally fail to run.

Any hints for this problem?

Regards

The incorrect type names given by wing's auto-completer.

Hi,

I use wing to test the aiida-core package with the code given here: https://aiida-tutorials.readthedocs.io/en/latest/pages/2019_ISSP_Chiba_Japan/sections/workflows.html. The code snippets are the following:

from aiida import load_profile
load_profile()

from aiida.orm import Code, Computer, Data, Node, Float, Str
from aiida.plugins import CalculationFactory, DataFactory
from aiida.engine import calcfunction

In the above code, the calcfunction only exists in aiida.engine, so it should be imported like this:

from aiida.engine import calcfunction

But when I type the following:

from aiida.orm import c<tab>

then the auto-completer of wing will also give type name of calcfunction as one of the candidates, which if I selected and input there, the code will be error and finally fail to run.

Any hints for this problem?

Regards