Import issue in arcgis version 1.4.1

380
2
06-01-2018 09:33 AM
DovCohen
New Contributor

Hi,

I just installed the arcgis python package version 1.4.1 in a RHEL 7 environment running python3.4 using pip. The installation of the package and its dependencies reported completed without error. However, I could not import the package in a python session due to a missing "workforce" module (see below). Could sometime tell me where I can find this package? 

Regards,

Dov

ImportError                               Traceback (most recent call last)<ipython-input-1-316fdab7cb29> in <module>()----> 1 from arcgis.gis import GIS /usr/lib/python3.4/site-packages/arcgis/__init__.py in <module>()      1 __version__ = '1.4.1'      2 ----> 3 from . import features, geoanalytics, geocoding, geometry, geoprocessing, network, raster, realtime, schematics, mapping, apps      4       5 from .gis import GIS /usr/lib/python3.4/site-packages/arcgis/apps/__init__.py in <module>()----> 1 from . import workforce /usr/lib/python3.4/site-packages/arcgis/apps/workforce/__init__.py in <module>()      2 """      3 ----> 4 from .assignment import Assignment      5 from .assignment_type import AssignmentType      6 from .attachment import Attachment /usr/lib/python3.4/site-packages/arcgis/apps/workforce/assignment.py in <module>()      3 from .exceptions import ValidationError      4 from .feature_model import FeatureModel----> 5 from .managers import *      6 from ._schemas import AssignmentSchema      7  /usr/lib/python3.4/site-packages/arcgis/apps/workforce/managers.py in <module>()      1 import os----> 2 from ._store import *      3       4       5 class AssignmentManager(object):/usr/lib/python3.4/site-packages/arcgis/apps/workforce/_store/__init__.py in <module>()      1 """ The store module defines functions for interacting with the Workforce backend.      2 """----> 3 from . import assignments      4 from . import assignment_types      5 from . import attachments /usr/lib/python3.4/site-packages/arcgis/apps/workforce/_store/assignments.py in <module>()      2 """      3 ----> 4 from ... import workforce      5 from .dispatchers import query_dispatchers      6 from .utils import add_features, remove_features, update_features, validate ImportError: cannot import name 'workforce'
0 Kudos
2 Replies
J_R_Matchett
New Contributor III

The system requirements page states that Python v3.5 or later is required, so perhaps your issue is caused by trying to use v3.4?

DovCohen
New Contributor

Thanks. Upgrading to Python 3.6 did the trick.

Regards,

Dov

0 Kudos