import arcpy
fc = "C:\\arcpy\\karlsruhe.gdb\\buildings"
cursor = arcpy.SearchCursor(fc)
I have a very simple script that i could run inside arcGIS pro but not in Pycharm.
it returns with this:
AttributeError: module 'arcpy' has no attribute 'SearchCursor'
I have all the environment set up:
![](https://community.esri.com/legacyfs/online/492691_pastedImage_2.png)
what is the problem?