[aur-general] Python Dependancy Issue
Hi, I have the PKGBUILDs for both p-git and pypump-git. One of the dependancies is something called click. I found python2-click and figured this would be what is needed. However, when the package is installed, the name changes to just python-click. Ichanged the PKGBUILD to depend on python-click which works for the building process, but then, when everything is installed: p Traceback (most recent call last): File "/usr/bin/p", line 27, in <module> import click ImportError: No module named click So, do I have the wrong library, or is something wrong with the python2-click PKGBUILD? thanks Storm -- -- Registered Linux user number 508465: https://linuxcounter.net/user/508465.html My blog, Thoughts of a Dragon: http://www.stormdragon.us/ get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193 Get paid to read email: http://is.gd/feRiB _____ < MOO > ----- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
At a glance, pypump-git is a Python 3 package, not Python 2. python2-click is for python 2. Go figure. On 23/06/2014, Storm Dragon <stormdragon2976@gmail.com> wrote:
Hi, I have the PKGBUILDs for both p-git and pypump-git. One of the dependancies is something called click. I found python2-click and figured this would be what is needed. However, when the package is installed, the name changes to just python-click. Ichanged the PKGBUILD to depend on python-click which works for the building process, but then, when everything is installed: p Traceback (most recent call last): File "/usr/bin/p", line 27, in <module> import click ImportError: No module named click So, do I have the wrong library, or is something wrong with the python2-click PKGBUILD? thanks Storm --
-- Registered Linux user number 508465: https://linuxcounter.net/user/508465.html My blog, Thoughts of a Dragon: http://www.stormdragon.us/ get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193 Get paid to read email: http://is.gd/feRiB _____ < MOO > ----- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
-- David Phillips GPG Key 0x7BF3D17D0884BF5B Fingerprint 2426 235A 7831 AA2F 56AF 4BC0 7BF3 D17D 0884 BF5B
Hi, Pypump is supposed to support python2.7 on up with just the one package. Thanks Storm On Mon, Jun 23, 2014 at 04:50:53PM +1200, David Phillips wrote:
At a glance, pypump-git is a Python 3 package, not Python 2. python2-click is for python 2. Go figure.
On 23/06/2014, Storm Dragon <stormdragon2976@gmail.com> wrote:
Hi, I have the PKGBUILDs for both p-git and pypump-git. One of the dependancies is something called click. I found python2-click and figured this would be what is needed. However, when the package is installed, the name changes to just python-click. Ichanged the PKGBUILD to depend on python-click which works for the building process, but then, when everything is installed: p Traceback (most recent call last): File "/usr/bin/p", line 27, in <module> import click ImportError: No module named click So, do I have the wrong library, or is something wrong with the python2-click PKGBUILD? thanks Storm --
-- Registered Linux user number 508465: https://linuxcounter.net/user/508465.html My blog, Thoughts of a Dragon: http://www.stormdragon.us/ get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193 Get paid to read email: http://is.gd/feRiB _____ < MOO > ----- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
-- David Phillips GPG Key 0x7BF3D17D0884BF5B Fingerprint 2426 235A 7831 AA2F 56AF 4BC0 7BF3 D17D 0884 BF5B
-- -- Registered Linux user number 508465: https://linuxcounter.net/user/508465.html My blog, Thoughts of a Dragon: http://www.stormdragon.us/ get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193 How many Internet mail list subscribers does it take to change a lightbulb? http://goo.gl/eO4PJ "So many souls follow the path, trusting their magic and blades. There has to be more than that, fight with your heart or fail." Battlelore - Swordmaster
On 2014-06-22 23:59, Storm Dragon wrote:
Hi, Pypump is supposed to support python2.7 on up with just the one package. Thanks Storm
With the same source, yes, not with the same package. It doesn't work that way. Just take a look at he files in the package. Doug
Hi, Sometimes this python stuff is confusing. I built the python-click package by hand after removing the python3 options. It built and installed and not p isn't complaining about click any more. So, I guess I'm just not requesting the right package be installed or something. In the PKGBUILD for p-git, should the dependancy be python2-click? It seems like it builds the python-click for python 3 though. Also, I figured the pythong-click would be the last of the issues, but now it's throwing another traceback: Traceback (most recent call last): File "/usr/bin/p", line 30, in <module> from pypump import WebPump, Client, JSONStore File "/usr/lib/python2.7/site-packages/pypump/__init__.py", line 19, in <module> from pypump.pypump import PyPump, WebPump File "/usr/lib/python2.7/site-packages/pypump/pypump.py", line 25, in <module> import requests ImportError: No module named requests I went back and made a seperate pypump2 package, using python2 for the installer. I guess when I get this stuff working I'll need to remove the python2 version of the package and make a package that installs both packages like the python-click PKGBUILD does. Thanks for all the help :) Storm On Mon, Jun 23, 2014 at 12:09:08AM -0500, Doug Newgard wrote:
On 2014-06-22 23:59, Storm Dragon wrote:
Hi, Pypump is supposed to support python2.7 on up with just the one package. Thanks Storm
With the same source, yes, not with the same package. It doesn't work that way. Just take a look at he files in the package.
Doug
-- -- Registered Linux user number 508465: https://linuxcounter.net/user/508465.html My blog, Thoughts of a Dragon: http://www.stormdragon.us/ get my public PGP key: gpg --keyserver wwwkeys.pgp.net --recv-key 43DDC193 Need a safe and easy way to backup and share files? Try Dropbox: http://db.tt/jeY50HR "Mighty Elric, Mightier Sword. Sorcerer and Swordsman, slayer of kin, Lord of a dying race. King of ruin, dragon master, Champion of Doom." Domine - Chronicles of the Black Sword
On 23/06, Storm Dragon wrote:
Hi, Sometimes this python stuff is confusing. I built the python-click package by hand after removing the python3 options. It built and installed and not p isn't complaining about click any more. So, I guess I'm just not requesting the right package be installed or something. In the PKGBUILD for p-git, should the dependancy be python2-click? It seems like it builds the python-click for python 3 though. Also, I figured the pythong-click would be the last of the issues, but now it's throwing another traceback: Traceback (most recent call last): File "/usr/bin/p", line 30, in <module> from pypump import WebPump, Client, JSONStore File "/usr/lib/python2.7/site-packages/pypump/__init__.py", line 19, in <module> from pypump.pypump import PyPump, WebPump File "/usr/lib/python2.7/site-packages/pypump/pypump.py", line 25, in <module> import requests ImportError: No module named requests I went back and made a seperate pypump2 package, using python2 for the installer. I guess when I get this stuff working I'll need to remove the python2 version of the package and make a package that installs both packages like the python-click PKGBUILD does.
As the errors says you need the requests module which for python2 is in python2-requests. -- Sincerely, Johannes Löthberg PGP Key ID: 3A9D0BB5
participants (4)
-
David Phillips
-
Doug Newgard
-
Johannes Löthberg
-
Storm Dragon