The Following User Says Thank You to marmistrz For This Useful Post: | ||
|
2014-11-17
, 19:55
|
Posts: 18 |
Thanked: 20 times |
Joined on Jul 2008
|
#82
|
We're discussing the solutions without asking the most important person here. Aapo, what's your idea for handling these pycentral-created modules that exist in /usr/lib/python2.7 ?
case "$1" in install) if [ -e /usr/lib/python2.7 ] && \ [ ! -L /usr/lib/python2.7 ]; then echo "/usr/lib/python2.7 should not be a regoular directory before python2.7-minimal installation. Please clean it." exit 1 fi
case "$1" in install) if [ -e /usr/lib/python2.7 ] && \ [ ! -L /usr/lib/python2.7 ]; then # /opt/python27/lib really shouldn't exists if [ -e /opt/python27/lib ]; then exit 1; fi mkdir -p /opt/python27 mv -i /usr/lib/python2.7 /opt/python27/lib fi
|
2014-11-17
, 20:24
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#83
|
|
2014-11-17
, 20:29
|
Posts: 18 |
Thanked: 20 times |
Joined on Jul 2008
|
#84
|
And do you have modrana installed? Maybe the offending egg causes pycentral to create modules for 2.7?
|
2014-11-17
, 20:47
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#85
|
|
2014-11-24
, 09:36
|
Posts: 18 |
Thanked: 20 times |
Joined on Jul 2008
|
#86
|
|
2014-11-26
, 15:53
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#87
|
The Following 5 Users Say Thank You to AapoRantalainen For This Useful Post: | ||
|
2016-01-05
, 13:00
|
Posts: 1,163 |
Thanked: 1,873 times |
Joined on Feb 2011
@ The Netherlands
|
#88
|
The Following User Says Thank You to mr_pingu For This Useful Post: | ||
|
2016-01-05
, 15:27
|
Posts: 3,328 |
Thanked: 4,476 times |
Joined on May 2011
@ Poland
|
#89
|
|
2017-01-24
, 11:27
|
Posts: 16 |
Thanked: 18 times |
Joined on Jan 2012
|
#90
|
-bash-4.2$ cd ~/MyDocs/setuptools-34.0.1 -bash-4.2$ sudo python2.7 setup.py install Traceback (most recent call last): File "setup.py", line 11, in <module> import setuptools File "/home/user/MyDocs/setuptools-34.0.1/setuptools/__init__.py", line 12, in <module> import setuptools.version File "/home/user/MyDocs/setuptools-34.0.1/setuptools/version.py", line 1, in <module> import pkg_resources File "/home/user/MyDocs/setuptools-34.0.1/pkg_resources/__init__.py", line 3018, in <module> @_call_aside File "/home/user/MyDocs/setuptools-34.0.1/pkg_resources/__init__.py", line 3002, in _call_aside f(*args, **kwargs) File "/home/user/MyDocs/setuptools-34.0.1/pkg_resources/__init__.py", line 3031, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/home/user/MyDocs/setuptools-34.0.1/pkg_resources/__init__.py", line 645, in _build_master ws = cls() File "/home/user/MyDocs/setuptools-34.0.1/pkg_resources/__init__.py", line 638, in __init__ self.add_entry(entry) File "/home/user/MyDocs/setuptools-34.0.1/pkg_resources/__init__.py", line 694, in add_entry for dist in find_distributions(entry, True): File "/home/user/MyDocs/setuptools-34.0.1/pkg_resources/__init__.py", line 2018, in find_on_path path_item, entry, metadata, precedence=DEVELOP_DIST File "/home/user/MyDocs/setuptools-34.0.1/pkg_resources/__init__.py", line 2431, in from_location py_version=py_version, platform=platform, **kw File "/home/user/MyDocs/setuptools-34.0.1/pkg_resources/__init__.py", line 2771, in _reload_version md_version = _version_from_file(self._get_metadata(self.PKG_INFO)) File "/home/user/MyDocs/setuptools-34.0.1/pkg_resources/__init__.py", line 2396, in _version_from_file line = next(iter(version_lines), '') File "/home/user/MyDocs/setuptools-34.0.1/pkg_resources/__init__.py", line 2564, in _get_metadata for line in self.get_metadata_lines(name): File "/home/user/MyDocs/setuptools-34.0.1/pkg_resources/__init__.py", line 1871, in get_metadata_lines return yield_lines(self.get_metadata(name)) File "/home/user/MyDocs/setuptools-34.0.1/pkg_resources/__init__.py", line 1857, in get_metadata with io.open(self.path, encoding='utf-8', errors="replace") as f: TypeError: 'errors' is an invalid keyword argument for this function
If you want to support my work, you can donate by PayPal or Flattr
Projects no longer actively developed: here