[osgeo4w] #570: pip3

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

[osgeo4w] #570: pip3

OSGeo4W
#570: pip3
--------------------------+---------------------------
Reporter:  rduivenvoorde  |      Owner:  osgeo4w-dev@…
    Type:  defect         |     Status:  new
Priority:  major          |  Component:  Package
 Version:                 |   Keywords:
--------------------------+---------------------------
 After installing bare qgis-dev package, there is a 'pip3' command
 available, but it does not seem to work?

 The installed the python-pip3 package, but still nog pip:

 C:\osgeo4w64\bin> pip3 install lxml
 Fatal error in launcher: Unable to create process using '"'

 https://trac.osgeo.org/osgeo4w/wiki/ExternalPythonPackages

 still tells: install via python get-pip.py

 what is a working way? Happy to fix the wiki if needed.

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by muellea):

 i found that all python-executables in OSGeo4W/apps/Python36/Scripts have
 wrong shebangs (#!). There pathes point to python executables, that may do
 not exist. I used an editor (notepad++) and opened the exe files, at the
 bottom one can find the shebang string. This I changed to #!python3.exe.

 Inside the OSGeo4w-Shell you have to call py3_env and then e.g. pip3 -
 without the path information it works!

 A solution could be to build the executables with a different shebang.
 Don't know if this could be done easily?

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:1>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by jef):

 Replying to [comment:1 muellea]:
 > Inside the OSGeo4w-Shell you have to call py3_env and then e.g. pip3 -
 without the path information it works!

 Correct - and that's how it's intended to work.

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:2>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by muellea):

 But only with a changed shebang inside the exe! That's the problem...

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:3>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by jef):

 Replying to [comment:3 muellea]:
 > But only with a changed shebang inside the exe! That's the problem...

 Not if you  @call py3_env.bat@ upfront.

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:4>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------
Changes (by muellea):

 * Attachment "error.png" added.

 Error Message when pip is called

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by muellea):

 see my attachment, same with pip3

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:5>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by jef):

 `call py3_env.bat` not `py3_env.bat`

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:6>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by muellea):

 unfortunately the same. Tried py3_env and call py3_env. In both cases i
 can start an interactive python-shell (python3), so environment is set,
 but pip3 refuses to start.

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:7>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by jef):

 Replying to [comment:7 muellea]:
 > unfortunately the same. Tried py3_env and call py3_env. In both cases i
 can start an interactive python-shell (python3), so environment is set,
 but pip3 refuses to start.

 Not reproducable here:

 {{{
 run o-help for a list of available commands
 C:\Windows\System32>call py3_env.bat

 C:\Windows\System32>SET PYTHONPATH=

 C:\Windows\System32>SET PYTHONHOME=C:\OSGEO4~1\apps\Python36

 C:\Windows\System32>PATH
 C:\OSGEO4~1\apps\Python36;C:\OSGEO4~1\apps\Python36\Scripts;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem

 C:\Windows\System32>pip3

 Usage:
   pip3 <command> [options]
 ...
 }}}

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:8>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by muellea):

 strange, i'll try with a fresh install...

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:9>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by muellea):

 I did a fresh install and the error remains. The file pip3.exe contains a
 path to #!c:\qt\32\python\python.exe. Jef, are you sure this path doesn't
 exist on your computer?

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:10>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by jef):

 I can confirm that `\bin\pip3.exe` has that path - but
 `apps\Python36\Scripts\pip3.exe` which should be before `\bin` in `PATH`
 has the correct path.  Are you starting it explictly from `bin`?

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:11>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by muellea):

 they all have the same path here, pip3 in Scripts comes first in the path
 set by py3_env.bat, so this will execute. If i install python3 from
 python.org, the path is set during install and points to whatever
 installation dir i use for python. But I think this is not a part in
 postinstall of the osgeo4w package, so path remains.

 Some executables, like jupiter.exe, point to c:\osgeo4w\bin\python3.exe
 which is correct for an unchanged installation directory.

 By the way: the idea to change the shebang manually cames from a q/a on
 [https://stackoverflow.com/questions/24627525/fatal-error-in-launcher-
 unable-to-create-process-using-c-program-files-x86 stackexchange]

 So, as written there, simply using python -m pip inside a pip.bat would do
 the job, too.

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:12>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by hellik):

 Replying to [comment:8 jef]:
 > Replying to [comment:7 muellea]:
 > > unfortunately the same. Tried py3_env and call py3_env. In both cases
 i can start an interactive python-shell (python3), so environment is set,
 but pip3 refuses to start.
 >
 > Not reproducable here:
 >
 > {{{
 > run o-help for a list of available commands
 > C:\Windows\System32>call py3_env.bat
 >
 > C:\Windows\System32>SET PYTHONPATH=
 >
 > C:\Windows\System32>SET PYTHONHOME=C:\OSGEO4~1\apps\Python36
 >
 > C:\Windows\System32>PATH
 C:\OSGEO4~1\apps\Python36;C:\OSGEO4~1\apps\Python36\Scripts;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem
 >
 > C:\Windows\System32>pip3
 >
 > Usage:
 >   pip3 <command> [options]
 > ...
 > }}}
 >

 tested here:

 {{{
 run o-help for a list of available commands
 C:\>call py3_env.bat

 C:\>SET PYTHONPATH=

 C:\>SET PYTHONHOME=C:\OSGEO4~1\apps\Python36

 C:\>PATH
 C:\OSGEO4~1\apps\Python36;C:\OSGEO4~1\apps\Python36\Scripts;{app};C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program
 Files\R\R-3.4.4\bin\x64

 C:\>pip3
 Fatal error in launcher: Unable to create process using '"'

 C:\>
 }}}

 ckecked in the OSGeo4W installer wizard, pip3 isn't installed.

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:13>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by muellea):

 I didn't install pip package either. But pip is installed with the
 python3-core package, I think. Anyway, try python3 -m pip. This will start
 pip from site-sitepackages. The problem is with the exe files only.

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:14>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by muellea):

 Ok, inside the python3-pip package the exe file pip.exe has a different
 path/shepang. It points to c:\osgeo4w\bin\python3. So, if this is the your
 installation folder, pip.exe should work. Unfortunately it doesn't work
 for me...

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:15>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: [osgeo4w] #570: pip3

OSGeo4W
In reply to this post by OSGeo4W
#570: pip3
--------------------------+----------------------------
Reporter:  rduivenvoorde  |       Owner:  osgeo4w-dev@…
    Type:  defect         |      Status:  new
Priority:  major          |   Component:  Package
 Version:                 |  Resolution:
Keywords:                 |
--------------------------+----------------------------

Comment (by hellik):

 Replying to [comment:13 hellik]:
 >
 > tested here:
 >
 > {{{
 > run o-help for a list of available commands
 > C:\>call py3_env.bat
 >
 > C:\>SET PYTHONPATH=
 >
 > C:\>SET PYTHONHOME=C:\OSGEO4~1\apps\Python36
 >
 > C:\>PATH
 C:\OSGEO4~1\apps\Python36;C:\OSGEO4~1\apps\Python36\Scripts;{app};C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program
 Files\R\R-3.4.4\bin\x64
 >
 > C:\>pip3
 > Fatal error in launcher: Unable to create process using '"'
 >
 > C:\>
 > }}}
 >
 > ckecked in the OSGeo4W installer wizard, pip3 isn't installed.

 now installed pip3 via the OSGeo4W-installation wizard:

 {{{
 run o-help for a list of available commands
 C:\>call py3_env.bat

 C:\>SET PYTHONPATH=

 C:\>SET PYTHONHOME=C:\OSGEO4~1\apps\Python36

 C:\>PATH
 C:\OSGEO4~1\apps\Python36;C:\OSGEO4~1\apps\Python36\Scripts;{app};C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program
 Files\R\R-3.4.4\bin\x64

 C:\>pip3

 Usage:
   pip3 <command> [options]

 Commands:
   install                     Install packages.
   download                    Download packages.
   uninstall                   Uninstall packages.
   freeze                      Output installed packages in requirements
 format.
   list                        List installed packages.
   show                        Show information about installed packages.
   check                       Verify installed packages have compatible
 dependencies.
   config                      Manage local and global configuration.
   search                      Search PyPI for packages.
   wheel                       Build wheels from your requirements.
   hash                        Compute hashes of package archives.
   completion                  A helper command used for command
 completion.
   help                        Show help for commands.

 General Options:
   -h, --help                  Show help.
   --isolated                  Run pip in an isolated mode, ignoring
 environment variables and user configuration.
   -v, --verbose               Give more output. Option is additive, and
 can be used up to 3 times.
   -V, --version               Show version and exit.
   -q, --quiet                 Give less output. Option is additive, and
 can be used up to 3 times (corresponding to
                               WARNING, ERROR, and CRITICAL logging
 levels).
   --log <path>                Path to a verbose appending log.
   --proxy <proxy>             Specify a proxy in the form
 [user:passwd@]proxy.server:port.
   --retries <retries>         Maximum number of retries each connection
 should attempt (default 5 times).
   --timeout <sec>             Set the socket timeout (default 15 seconds).
   --exists-action <action>    Default action when a path already exists:
 (s)witch, (i)gnore, (w)ipe, (b)ackup,
                               (a)bort).
   --trusted-host <hostname>   Mark this host as trusted, even though it
 does not have valid or any HTTPS.
   --cert <path>               Path to alternate CA bundle.
   --client-cert <path>        Path to SSL client certificate, a single
 file containing the private key and the
                               certificate in PEM format.
   --cache-dir <dir>           Store the cache data in <dir>.
   --no-cache-dir              Disable the cache.
   --disable-pip-version-check
                               Don't periodically check PyPI to determine
 whether a new version of pip is available for
                               download. Implied with --no-index.
   --no-color                  Suppress colored output
 }}}

 it works as expected

--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/570#comment:16>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev