POST
|
What does your PATH variable look like? Basically,I have the same config in 10.3.1 production machine. The config which worked in 10.3.1 didn't work in 10.5.1- that's where I am confused.
... View more
10-13-2017
07:06 AM
|
0
|
1
|
1003
|
POST
|
Thanks Dan. All the path variables looks fine compared to yours: H:\>python Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit ( Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.path ['', 'E:\\Python_Modules', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\ \ArcGIS10.5\\DLLs', 'C:\\Python27\\ArcGIS10.5\\lib', 'C:\\Python27\\ArcGIS10.5\\ lib\\plat-win', 'C:\\Python27\\ArcGIS10.5\\lib\\lib-tk', 'C:\\Python27\\ArcGIS10 .5', 'C:\\Python27\\ArcGIS10.5\\lib\\site-packages', 'C:\\Program Files (x86)\\A rcGIS\\Desktop10.5\\bin', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.5\\ArcPy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.5\\ArcToolBox\\Scripts'] Do you see anything which I overlooked?
... View more
10-13-2017
06:56 AM
|
0
|
4
|
829
|
POST
|
I can't go past importing numpy. H:\>python Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit ( Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\__init__.py", line 187, i n <module> from . import add_newdocs File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\add_newdocs.py", line 13, in <module> from numpy.lib import add_newdoc File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\__init__.py", line 18 , in <module> from .polynomial import * File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\polynomial.py", line 19, in <module> from numpy.linalg import eigvals, lstsq, inv File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\linalg\__init__.py", line 51, in <module> from .linalg import * File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\linalg\linalg.py", line 2 9, in <module> from numpy.linalg import lapack_lite, _umath_linalg ImportError: DLL load failed: The specified path is invalid. >>>
... View more
10-13-2017
06:34 AM
|
0
|
0
|
1003
|
POST
|
Dan- As indicated in my 2 previous comments, I don't have 2 versions of python in that box. OS is windows 2008 R2.
... View more
10-13-2017
06:11 AM
|
0
|
6
|
1003
|
POST
|
Dan- I don't have any other versions of python in that box where10.5.1 is installed. I mentioned that arcpy import is working in Desktop 10.3 version. So, something might be missing in 10.5.1. Regarding repair, I already repaired arcgis installation of python in 10.5.1 machine with no luck. Please see the screenshot of linalg folder- I have all those files in python folder. If "import arcpy" is working on your ArcGIS Desktop 10.5.1/Python 2.7.13, do you mind uploading your numpy folder as a zip file? We have 2 machines with 10.5.1 installed (one an upgrade from 10.3 and other a fresh install). But "import arcpy" is not working in either of them. I don't want to copy numpy from a 10.3 machine with 2.7.8 version of python.
... View more
10-13-2017
05:59 AM
|
0
|
8
|
1003
|
POST
|
The import arcpy doesn't work in 10.5.1 ArcGIS Desktop installation of python 2.7.13. Anybody in the same boat? I have both ArcGIS Server and Desktop installed in this machine. But, default python is 32 bit one. The pth variables and environment variables are all good (as it works fine in a Desktop 10.3 installation with same configuration). I even run a repair on this installation. Nothing works. Here is the error which I get on running import arcpy: H:\>python Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit ( Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print sys.executable C:\Python27\ArcGIS10.5\python.exe >>> import arcpy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\__init__.py", line 20, in <module> import numpy File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\__init__.py", line 187, i n <module> from . import add_newdocs File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\add_newdocs.py", line 13, in <module> from numpy.lib import add_newdoc File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\__init__.py", line 18 , in <module> from .polynomial import * File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\lib\polynomial.py", line 19, in <module> from numpy.linalg import eigvals, lstsq, inv File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\linalg\__init__.py", line 51, in <module> from .linalg import * File "C:\Python27\ArcGIS10.5\lib\site-packages\numpy\linalg\linalg.py", line 2 9, in <module> from numpy.linalg import lapack_lite, _umath_linalg ImportError: DLL load failed: The specified path is invalid. >>> I initiated a tech support case with ESRI and they don't have anything new to contribute as they think that it's a bug. So, they transferred my case to Desktop team from where I am waiting for a response. Meanwhile, I thought of posting it in the community to see whether anybody has luck with solving this issue?
... View more
10-13-2017
04:43 AM
|
0
|
18
|
4215
|
Online Status |
Offline
|
Date Last Visited |
12-01-2023
05:07 PM
|