Arches v4 Windows Installation with pip

92 views
Skip to first unread message

Susan Penacho

unread,
Apr 26, 2017, 6:56:19 PM4/26/17
to arches...@googlegroups.com
Hi,
After I ran into issues trying to install arches on my windows 10 machine with the repository, I switched to the pip installation using the online documentation (https://arches.readthedocs.io/en/stable/installation/).

Using the pip installation steps on the installation documentation I was able to do steps 1 to 3 and create the virtual environment. When I tried to install arches in step 4 I got back two errors:

Error 1:

  Requirement already up-to-date: six>=1.6.0 in c:\projects\env\lib\site-packages (from setuptools)

  Requirement already up-to-date: pyparsing in c:\projects\env\lib\site-packages (from packaging>=16.8->setuptools)

  Could not open requirements file: [Errno 2] No such file or directory: 'c:\\projects\\env\\Lib\\site-packages\\arches\\install\\requirements.txt'

  error: [Errno 2] No such file or directory: 'c:\\projects\\env\\Lib\\site-packages\\arches\\install\\django_overrides\\admin.py'

  ----------------------------------------

  Failed building wheel for arches

  Running setup.py clean for arches

Failed to build arches

Installing collected packages: arches

  Running setup.py install for arches ... /


Error2:

    Collecting tilestache (from -r c:\projects\env\Lib\site-packages\arches\install\requirements.txt (line 12))

      Using cached TileStache-1.51.6-py2-none-any.whl

    Collecting shapely (from -r c:\projects\env\Lib\site-packages\arches\install\requirements.txt (line 13))

      Downloading Shapely-1.5.17.tar.gz (180kB)

        Complete output from command python setup.py egg_info:

        Traceback (most recent call last):

          File "<string>", line 1, in <module>

          File "c:\projects\env\Lib\site-packages\arches\tmp\shapely\setup.py", line 38, in <module>

            from shapely._buildcfg import geos_version_string, geos_version, \

          File "shapely\_buildcfg.py", line 200, in <module>

            lgeos = CDLL("geos.dll")

          File "c:\python27\Lib\ctypes\__init__.py", line 362, in __init__

            self._handle = _dlopen(self._name, mode)

        WindowsError: [Error 126] The specified module could not be found

 

        ----------------------------------------

    Command "python setup.py egg_info" failed with error code 1 in c:\projects\env\Lib\site-packages\arches\tmp\shapely\

    error: [Errno 2] No such file or directory: 'c:\\projects\\env\\Lib\\site-packages\\django\\contrib\\auth'

 

    ----------------------------------------

Command "c:\projects\env\scripts\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\susanp~1\\appdata\\local\\temp\\pip-build-xmr2ko\\arches\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\susanp~1\appdata\local\temp\pip-dokxbf-record\install-record.txt --single-version-externally-managed --compile --install-headers c:\projects\env\include\site\python2.7\arches" failed with error code 1 in c:\users\susanp~1\appdata\local\temp\pip-build-xmr2ko\arches\

Cyrus Hiatt

unread,
Apr 26, 2017, 8:13:34 PM4/26/17
to Susan Penacho, Arches Project
Hi Susan - 

I think the installation will proceed despite Error 1.

Regarding Error 2 - Did you install the dependencies using the OSGeo4W installer? If so, is 'C:\OSGeo4W64\bin' added to your systems PATH environment variable?   

If your PATH is correct, perhaps the issue is with the Shapely installation itself?  It looks like you need to install that prior to installing Arches on Windows.  If you didn't catch it in the docs, there is a short section on installing Shapely for Windows: https://github.com/archesproject/arches/wiki/Installing-Dependencies-on-Windows

- Cyrus




On Wed, Apr 26, 2017 at 3:56 PM, Susan Penacho <spen...@gmail.com> wrote:
Hi,
After I ran into issues trying to install arches on my windows 10 machine with the repository, I switched to the pip installation using the online documentation (https://arches4.readthedocs.io/en/latest/installation/#installing-arches).

--
-- To post, send email to arches...@googlegroups.com. To unsubscribe, send email to archesproject+unsubscribe@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en
---
You received this message because you are subscribed to the Google Groups "Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archesproject+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Adam Cox

unread,
Apr 26, 2017, 11:26:48 PM4/26/17
to Cyrus Hiatt, Susan Penacho, Arches Project
Hi Susan, Cyrus is right, error 1 is ok, and it does sound like Shapely is the culprit here. As noted here (though it should be noted in other parts of the documentation as well), you should install Shapely in after creating your virtual environment, but before pip installing Arches into it. Try that out and let us know how it goes.

Adam

Anthony Bronzo

unread,
Jul 16, 2019, 3:05:20 PM7/16/19
to arches...@googlegroups.com
Hi,
I'm having the same error 2 trying to get Arches 4.4.2 onto my Windows 10 machine. It sounds like Arches doesn't use Shapely anymore so I don't think its that, any ideas?

This is what happens when I run "pip install arches --no-binary :all:" in my virtual environment:

Collecting arches
    ERROR: Complete output from command python setup.py egg_info:
    ERROR: Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\funb4\AppData\Local\Temp\pip-install-xsd9_7_d\arches\setup.py", line 15, in <module>
        version = __import__('arches').__version__
      File "C:\Users\funb4\AppData\Local\Temp\pip-install-xsd9_7_d\arches\arches\__init__.py", line 1, in <module>
        from arches.setup import get_version
      File "C:\Users\funb4\AppData\Local\Temp\pip-install-xsd9_7_d\arches\arches\setup.py", line 84
        print "Downloading: %s Bytes: %s" % (file_name, file_size)
                                        ^
    SyntaxError: invalid syntax
    ----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\funb4\AppData\Local\Temp\pip-install-xsd9_7_d\arches\

Thanks,
Anthony

Alexei Peters

unread,
Jul 16, 2019, 5:58:10 PM7/16/19
to Anthony Bronzo, Arches Project
Hi Anthony,
I just did a quick check and something strange seems to be happening with your install.  The line of code you're hitting shouldn't even be run as far as I can tell.
Maybe Adam Cox can lend his thoughts to this.
Cheers,
Alexei

Director of Web Development - Farallon Geographics, Inc. - 971.227.3173


        Complete output from command python setup.py egg_info:

        Traceback (most recent call last):

          File "<string>", line 1, in <module>

          File "c:\projects\env\Lib\site-packages\arches\tmp\shapely\setup.py", line 38, in <module>

            from shapely._buildcfg import geos_version_string, geos_version, \

          File "shapely\_buildcfg.py", line 200, in <module>

            lgeos = CDLL("geos.dll")

          File "c:\python27\Lib\ctypes\__init__.py", line 362, in __init__

            self._handle = _dlopen(self._name, mode)

        WindowsError: [Error 126] The specified module could not be found

 

        ----------------------------------------

    Command "python setup.py egg_info" failed with error code 1 in c:\projects\env\Lib\site-packages\arches\tmp\shapely\

    error: [Errno 2] No such file or directory: 'c:\\projects\\env\\Lib\\site-packages\\django\\contrib\\auth'

 

    ----------------------------------------

Command "c:\projects\env\scripts\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\susanp~1\\appdata\\local\\temp\\pip-build-xmr2ko\\arches\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\susanp~1\appdata\local\temp\pip-dokxbf-record\install-record.txt --single-version-externally-managed --compile --install-headers c:\projects\env\include\site\python2.7\arches" failed with error code 1 in c:\users\susanp~1\appdata\local\temp\pip-build-xmr2ko\arches\

--
-- To post, send email to arches...@googlegroups.com. To unsubscribe, send email to arches...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en

---
You received this message because you are subscribed to the Google Groups "Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arches...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
-- To post, send email to arches...@googlegroups.com. To unsubscribe, send email to arches...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en

---
You received this message because you are subscribed to the Google Groups "Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arches...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
-- To post, send email to arches...@googlegroups.com. To unsubscribe, send email to archesprojec...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en

---
You received this message because you are subscribed to the Google Groups "Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archesprojec...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/c6d466d3-7fb6-4fc2-8146-067e5680b899%40googlegroups.com.

Ben O'Steen

unread,
Jul 16, 2019, 6:02:05 PM7/16/19
to Alexei Peters, Anthony Bronzo, Arches Project
Putting aside whether this code should be run or not, the error is a parsing error concerning the python 2 style of string formatting when run within python 3 which no longer supports this way of print formating. print is a function in python 3 and should be in the form print(...) not print "...."

Are you sure this is being run within a python 2.7 virtual environment?

Ben

Reply all
Reply to author
Forward
0 new messages