Esri / ArcREST

python package for REST API (AGS, AGOL, webmap JSON, etc..)
Apache License 2.0
192 stars 155 forks source link

Create_replica_fs gives an error #209

Closed jmk201 closed 8 years ago

jmk201 commented 8 years ago

Hello, I have installed ArcREST-3.5.4 and tried running the sample script named 'Create_replica_fs but it gives me an ImportError: No module named six.moves.urllib_parse.

get the following error : +1: Traceback (most recent call last): File "C:\Projects\Mobile\BizNames\datadownload\create_replica_fs.py", line 9, in from arcrest.security import AGOLTokenSecurityHandler File "C:\Python27\ArcGISx6410.3\lib\site-packages\arcrestinit.py", line 3, in from . import agol File "C:\Python27\ArcGISx6410.3\lib\site-packages\arcrest\agolinit.py", line 3, in from . import helperservices File "C:\Python27\ArcGISx6410.3\lib\site-packages\arcrest\agol\helperservicesinit.py", line 2, in from .analysis import File "C:\Python27\ArcGISx6410.3\lib\site-packages\arcrest\agol\helperservices\analysis.py", line 2, in from ...ags._geoprocessing import File "C:\Python27\ArcGISx6410.3\lib\site-packages\arcrest\agsinit.py", line 3, in from .mapservice import * File "C:\Python27\ArcGISx6410.3\lib\site-packages\arcrest\ags\mapservice.py", line 13, in from six.moves.urllib_parse import urlencode ImportError: No module named six.moves.urllib_parse

any thoughts why this is causing? Please help, Thanks, Julie

achapkowski commented 8 years ago

@pLeBlanc93 @jmk201 issue should be resolved thanks to pLeBlanc93's pull request.

jmk201 commented 8 years ago

I downloaded ArcREST-3.5.4 and tried running the script again but I get the same error .

Traceback (most recent call last): File "C:\Projects\Mobile\BizNames\datadownload\create_replica_fs.py", line 9, in from arcrest.security import AGOLTokenSecurityHandler File "C:\Python27\ArcGISx6410.3\lib\site-packages\arcrestinit.py", line 3, in from . import agol File "C:\Python27\ArcGISx6410.3\lib\site-packages\arcrest\agolinit.py", line 3, in from . import helperservices File "C:\Python27\ArcGISx6410.3\lib\site-packages\arcrest\agol\helperservicesinit.py", line 2, in from .analysis import File "C:\Python27\ArcGISx6410.3\lib\site-packages\arcrest\agol\helperservices\analysis.py", line 2, in from ...ags._geoprocessing import File "C:\Python27\ArcGISx6410.3\lib\site-packages\arcrest\agsinit.py", line 3, in from .mapservice import * File "C:\Python27\ArcGISx6410.3\lib\site-packages\arcrest\ags\mapservice.py", line 13, in from six.moves.urllib_parse import urlencode ImportError: No module named six.moves.urllib_parse

MikeMillerGIS commented 8 years ago

Please ensure you deployed the most current code as in master, the line has been resolved: https://github.com/Esri/ArcREST/blob/master/src/arcrest/ags/mapservice.py#L13

I see you are using your server python path, did you install ArcRest to both the 32 bit and 64 bit locations?

jmk201 commented 8 years ago

okay, I installed it on 64 bit and deployed the most recent code.I don't get the error anymore but the downloaded filegeodatabase is empty. Wonder what I am missing:(

pLeBlanc93 commented 8 years ago

@jmk201, could you open a new issue regarding the empty FGDB?