[07:50:46] <zoli> hi. Im trying to use gspread and oauth2client, that I have installed through pip3, but I got an error message: NameError: name 'run' is not defined when trying to: from oauth2client.tools import run
[08:15:23] <mgedmin> so unless those comments you removed were somehow causing the imports to be skipped, I don't know
[08:15:51] <mgedmin> (best not put any credentials directly in source code; use json.loads() or ConfigParser to read them from a separate file)
[08:16:00] <mgedmin> (you never know when you need to pastebin your actual code to debug problems)
[08:16:19] <mgedmin> (also, no idea how those tokens work and when they get invalidated)
[08:19:23] <zoli> the lines i deleted were all commented. I think the problem here is that run module has been removed from oauth2client but dont know how to store then the credentials
[08:32:52] <mgedmin> (focus follows mouse has some disadvantages)
[09:08:50] <lumidee> hi i want to distribute my django project. i created setup.py and MANIFEST files for my app: http://sprunge.us/hFUM http://sprunge.us/TDRg http://sprunge.us/RXcS then i run python setup.py register and finally python setup.py sdist upload, but after installing with: pip install bacula_monitor3 --allow-unverified bacula_monitor3 i noticed that my actual app is not installed but only egg metadata in site-packages.
[09:34:54] <mgedmin> can you run 'python -c 'import setuptools; print(setuptools.find_packages())' and see if it finds anything?
[09:35:20] <mgedmin> BTW: it's not a good idea to include pyc files in your sources!
[09:35:27] <mgedmin> your MANIFEST.in globs too much
[09:35:35] <mgedmin> but this is unrelated to your actual problem
[09:37:14] <lumidee> 'python -c 'import setuptools; print(setuptools.find_packages())' finds nothing from where i put my setup.py. yes i dont have __init__.py in my django project, only within django's apps itself i have __init__.py.
[09:37:57] <mgedmin> I assume you don't want a global package named 'monitor' in your site-packages
[09:38:03] <lumidee> so i guess i should try #django to see how others distribute django projects because iam not sure if it's correct to add __init__.py within myproject/__init__.py
[09:38:48] <mgedmin> oh hey, I'm actually working on a django project that has this
[09:39:49] <lumidee> i give it a short try with __init__.py in the top directory
[09:45:05] <lumidee> mgedmin, indeed with __init__.py in my django project top directory installing to site-packages works fine. thank you
[09:45:38] <mgedmin> also, now you can trim down your MANIFEST.in
[09:45:52] <mgedmin> all package files get picked automatically, so you shouldn't need to manually list them all
[09:45:57] <mgedmin> you will need to list non-py files
[09:46:37] <mgedmin> I recommend 'recursive-include bacula_monitor *.html *.css *.conf *.md' rather than a generic *
[09:46:55] <mgedmin> I also recommend 'pip install check-manifest' and 'check-manifest .' to verify if MANIFEST.in looks correct
[09:51:26] <lumidee> i'll give this a try (added also exclude=('archiv')): http://sprunge.us/cfDH http://sprunge.us/UHjX
[09:56:15] <lumidee> worked fine. i also add now global-exclude *pyc or maybe also exclude=('__pycache__') in setuptools
[09:58:49] <koniiiik> Are there any special steps required to make pip run with openssl-0.9.8? Is it supported at all?
[10:00:56] <ionelmc> lumidee: that exclude should be unnecessary ?
[10:01:25] <ionelmc> plus that exclude is ['_', '_', 'e', 'x' .....]
[10:03:08] <lumidee> yep the exclude didn't work, yet .pyc file are distributed by find_packages() i think.
[10:03:16] <koniiiik> Or maybe my problem lies somewhere else – how can I debug SSL connection problems? I'm getting a SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590), which sounds quite generic to me, can I somehow find out what is the exact error pip is encountering here?
[10:08:35] <lumidee> ( i tried also: recursive-exclude bacula_monitor *.pyc ) ionelmc not sure how i would exclude pyc files with ['_', '_', 'e', 'x' .....]
[10:08:59] <ionelmc> lumidee: ('__pycache__') is same as '__pycache__'
[10:24:32] <lumidee> "no previously-included files matching '__pycache__/*' found anywhere in distribution "
[10:32:27] <ionelmc> lumidee: can you reiterate what issue you have? i'm missed the previous discussion
[10:34:26] <koniiiik> Oh, never mind. It appears it is that issue where openssl falls apart when supplied a CA bundle with 149 certificates... An option to use the system CApath in pip would really be nice.
[10:37:01] <lumidee> ionelmc, i want to distribute my django package and forgot __init__.py in the packages directory. now everything installs fine, just that i don't want *.pyc file included.
[10:37:25] <ionelmc> lumidee: what do you have in manifest now?
[10:37:42] <lumidee> only recursive-include bacula_monitor *.html *.css *.conf *.md
[10:38:01] <lumidee> in setup.py i tried: packages=find_packages( exclude=[ 'archiv', '*.pyc' ] ),
[10:39:07] <ionelmc> there's build caching going on and that every so often screws stuff up when you change manifest or setup.py
[10:39:54] <ionelmc> and i'm not a fan of recursive-include, it's repetitive and error-prone
[10:40:06] <ionelmc> i usually use graft + "global-exclude *.py[cod] __pycache__ *.so *.dylib" at the end
[10:42:17] <ionelmc> lumidee: this is good to have around: https://pypi.python.org/pypi/setupext-janitor
[19:46:59] <transit> I'm trying to install a package with pip from a svn repo via https. It goes fine if svn credentials are already cached but specifying user : pass in the pip url results in an error: http://dpaste.com/0JKJ0YS
[19:47:30] <transit> ...It goes fine if credentials are already cached & not specified in the pip url.