It gives me the same error on startup from the console.
This is PyScripter
*** Python 2.7.16 (v2.7.16:413a49145e, Mar 4 2019, 01:30:55) [MSC v.1500 32 bit (Intel)] on win32. ***
*** Remote Python engine is active ***
>>> import arcpy
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:\ArcGIS\Desktop10.7\ArcPy\arcpy\__init__.py", line 22, in <module>
from arcpy.geoprocessing import gp
ImportError: cannot import name gp
>>>
*** Remote Interpreter Reinitialized ***
>>>
*** Remote Interpreter Reinitialized ***
Traceback (most recent call last):
File "<module1>", line 18, in <module>
File "C:\ArcGIS\Desktop10.7\ArcPy\arcpy\__init__.py", line 22, in <module>
from arcpy.geoprocessing import gp
ImportError: cannot import name gp
>>>
Or from this code and "run"
def main():
pass
if __name__ == '__main__':
main()
import arcpy