Custom Query (344 matches)
Results (34 - 36 of 344)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#89 | invalid | python: (2.7.6) missing unittest | ||
Description |
For some reason, while unittest should be part of the base python installation, it does not seem to be included in the 2.7.6 rpm. This leads to a number of other things not being easily installable (including setuptools, which has its own additional set of issues). I worked around this isue by simply copying the unittest dir from the source to %unixroot%/urs/lib/python2.7/unittest, though it should be included in the distro, I think. |
|||
#90 | duplicate | python: (2.7.6) problem determining filesystem encoding | ||
Description |
This is tangentially related to getting SSL support for yum repos, so I'll open this here. Frankly, python is so complex that we should probably break it out into its own project, here, but I'll leave that to you, Yuri. ;-) I needed to install M2Crypto as I am having difficulty accessing my repo mirror via SSL (different ticket - to be created). M2Crypto seems to want to be installed via setuptools. Installing setuptools should be fairly straightforward: wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py -O - | python however, once the installation starts, the fun begins: Extracting in c:/var/temp/tmpcqr6rs Now working in c:/var/temp/tmpcqr6rs/setuptools-5.6 Installing Setuptools running install running bdist_egg running egg_info writing requirements to setuptools.egg-info/requires.txt writing setuptools.egg-info/PKG-INFO writing top-level names to setuptools.egg-info/top_level.txt writing dependency_links to setuptools.egg-info/dependency_links.txt writing entry points to setuptools.egg-info/entry_points.txt Traceback (most recent call last): File "setup.py", line 219, in <module> dist = setuptools.setup(**setup_params) File "J:/usr/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "J:/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "J:/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "C:/var/temp/tmpcqr6rs/setuptools-5.6/setuptools/command/install.py", line 67, in run self.do_egg_install() File "C:/var/temp/tmpcqr6rs/setuptools-5.6/setuptools/command/install.py", line 109, in do_egg_install self.run_command('bdist_egg') File "J:/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "J:/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "C:/var/temp/tmpcqr6rs/setuptools-5.6/setuptools/command/bdist_egg.py", line 152, in run self.run_command("egg_info") File "J:/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "J:/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "C:/var/temp/tmpcqr6rs/setuptools-5.6/setuptools/command/egg_info.py", line 168, in run self.find_sources() File "C:/var/temp/tmpcqr6rs/setuptools-5.6/setuptools/command/egg_info.py", line 193, in find_sources mm.run() File "C:/var/temp/tmpcqr6rs/setuptools-5.6/setuptools/command/egg_info.py", line 277, in run self.add_defaults() File "C:/var/temp/tmpcqr6rs/setuptools-5.6/setuptools/command/egg_info.py", line 306, in add_defaults sdist.add_defaults(self) File "C:/var/temp/tmpcqr6rs/setuptools-5.6/setuptools/command/sdist.py", line 151, in add_defaults self.filelist.append(fn) File "C:/var/temp/tmpcqr6rs/setuptools-5.6/setuptools/command/egg_info.py", line 220, in append if self._safe_path(path): File "C:/var/temp/tmpcqr6rs/setuptools-5.6/setuptools/command/egg_info.py", line 240, in _safe_path u_path = unicode_utils.filesys_decode(path) File "C:/var/temp/tmpcqr6rs/setuptools-5.6/setuptools/unicode_utils.py", line 31, in filesys_decode return path.decode(enc) TypeError: decode() argument 1 must be string, not None Something went wrong during the installation. See the error message above. Looking at the section in question in unicode_utils.py, he see: def filesys_decode(path): """ Ensure that the given path is decoded, NONE when no expected encoding works """ fs_enc = sys.getfilesystemencoding() if isinstance(path, decoded_string): return path for enc in (fs_enc, "utf-8"): try: return path.decode(enc) except UnicodeDecodeError: continue Result: cannot install setuptools. I've tried this under a variety of shells, too, but to no avail. Filesystem is JFS. |
|||
#91 | fixed | python: (2.7.6) trouble with SSL (to access repo from https) | ||
Description |
I wanted to test accessing an encrypted repo over SSL. As www.2rosenthals.com is also available over SSL (with a recognized thrid-party cert), I simply edited my repo files to use https instead of http in the URI. However, yum check-update comes back with: Traceback (most recent call last): File "J:\USR\BIN\YUM", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/@unixroot/usr/share/yum-cli/yummain.py", line 254, in user_main errcode = main(args) File "/@unixroot/usr/share/yum-cli/yummain.py", line 109, in main result, resultmsgs = base.doCommands() File "/@unixroot/usr/share/yum-cli/cli.py", line 352, in doCommands self._getTs(needTsRemove) File "/@unixroot/usr/lib/python2.7/site-packages/yum/depsolve.py", line 99, in _getTs self._getTsInfo(remove_only) File "/@unixroot/usr/lib/python2.7/site-packages/yum/depsolve.py", line 110, in _getTsInfo pkgSack = self.pkgSack File "/@unixroot/usr/lib/python2.7/site-packages/yum/__init__.py", line 777, in <lambda> pkgSack = property(fget=lambda self: self._getSacks(), File "/@unixroot/usr/lib/python2.7/site-packages/yum/__init__.py", line 567, in _getSacks self.repos.populateSack(which=repos) File "/@unixroot/usr/lib/python2.7/site-packages/yum/repos.py", line 279, in populateSack sack.populate(repo, mdtype, callback, cacheonly) File "/@unixroot/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 164, in populate if self._check_db_version(repo, mydbtype): File "/@unixroot/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 223, in _check_db_version return repo._check_db_version(mdtype) File "/@unixroot/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1227, in _check_db_version repoXML = self.repoXML File "/@unixroot/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1419, in <lambda> repoXML = property(fget=lambda self: self._getRepoXML(), File "/@unixroot/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1411, in _getRepoXML self._loadRepoXML(text=self) File "/@unixroot/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1401, in _loadRepoXML return self._groupLoadRepoXML(text, self._mdpolicy2mdtypes()) File "/@unixroot/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1376, in _groupLoadRepoXML if self._commonLoadRepoXML(text): File "/@unixroot/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1201, in _commonLoadRepoXML result = self._getFileRepoXML(local, text) File "/@unixroot/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 986, in _getFileRepoXML size=102400) # setting max size as 100K File "/@unixroot/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 810, in _getFile size=size File "/@unixroot/usr/lib/python2.7/site-packages/urlgrabber/mirror.py", line 411, in urlgrab return self._mirror_try(func, url, kw) File "/@unixroot/usr/lib/python2.7/site-packages/urlgrabber/mirror.py", line 397, in _mirror_try return func_ref( *(fullurl,), **kwargs ) File "/@unixroot/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 927, in urlgrab return self._retry(opts, retryfunc, url, filename) File "/@unixroot/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 845, in _retry r = apply(func, (opts,) + args, {}) File "/@unixroot/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 913, in retryfunc fo = URLGrabberFileObject(url, filename, opts) File "/@unixroot/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1001, in __init__ self._do_open() File "/@unixroot/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1072, in _do_open fo, hdr = self._make_request(req, opener) File "/@unixroot/usr/lib/python2.7/site-packages/urlgrabber/grabber.py", line 1168, in _make_request fo = opener.open(req) File "/@unixroot/usr/lib/python2.7/urllib2.py", line 404, in open response = self._open(req, data) File "/@unixroot/usr/lib/python2.7/urllib2.py", line 422, in _open '_open', req) File "/@unixroot/usr/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/@unixroot/usr/lib/python2.7/site-packages/urlgrabber/keepalive.py", line 347, in https_open return self.do_open(req) File "/@unixroot/usr/lib/python2.7/site-packages/urlgrabber/keepalive.py", line 233, in do_open h = self._get_connection(host) File "/@unixroot/usr/lib/python2.7/site-packages/urlgrabber/keepalive.py", line 350, in _get_connection return self._ssl_factory.get_https_connection(host) AttributeError: SSLFactory instance has no attribute 'get_https_connection' Python appears to have been compiled with SSL, e.g.: >>> import ssl comes back with no errors, and: >>> import httplib >>> conn = httplib.HTTPSConnection("mail.google.com") >>> conn.request("GET", "/") >>> r1 = conn.getresponse() >>> print r1.status, r1.reason comes back with: 200 OK which leads me to believe that SSL is indeed working. Looking at the related SSLFactory code, it appears that without M2Crypto, we fall back on python's SSL. I attempted to install M2Crypto, but ran into other problems (related to setupttols not installing). |