Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1
Witam.
Za chwilę mnie coś strzeli.
Potrzebuję zainstalować [url=https://github.com/mjs/imapclient]IMAPClient[/url].
NIestety:
# pip install imapclient Downloading/unpacking imapclient Downloading IMAPClient-1.1.0.tar.gz (192kB): 192kB downloaded Running setup.py (path:/tmp/pip-build-2FAq27/imapclient/setup.py) egg_info for package imapclient The required version of setuptools (>=18.2) is not available, and can't be installed while this script is running. Please install a more recent version first, using 'easy_install -U setuptools'. (Currently using setuptools 5.5.1 (/usr/lib/python2.7/dist-packages))
Upgrade setuptoolsów przez easy_install czy pip oczywiście nie przejdzie, jako że iż ponieważ:
# pip install --upgrade setuptools Downloading/unpacking setuptools from https://pypi.python.org/packages/bb/e0/ea620f9ecbaaaf3ebb288cdbbe8cc20b6a789c17e42d8916662b218e3349/setuptools-38.2.4-py2.py3-none-any.whl#md5=e01a31cd30ce5f46d7e1fc2a5b1245a3 Downloading setuptools-38.2.4-py2.py3-none-any.whl (489kB): 489kB downloaded Installing collected packages: setuptools Found existing installation: setuptools 5.5.1 Not uninstalling setuptools at /usr/lib/python2.7/dist-packages, owned by OS Successfully installed setuptools Cleaning up...
przy czym przedostatnia linijka to taki wielce dowcipny żart.
Nawet rozpaczliwa próba wywalenia pipa z setuptoolsami razem i ręczna instalacja kończy się niepowodzeniem:
# pip Traceback (most recent call last): File "/usr/local/bin/pip", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2876, in <module> working_set = WorkingSet._build_master() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 451, in _build_master return cls._build_from_requirements(__requires__) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 464, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: pip==1.5.6
Jest na to jaki sposób oprócz zainstalowania Ubuntu?
Ostatnio edytowany przez ethanak (2017-12-08 09:50:54)
Offline
[quote=ethanak].......
Jest na to jaki sposób oprócz zainstalowania Ubuntu?[/quote]
Oczywiście że jest xD:
# G1 ### pią gru 08 11:09:08 domek : ~ root ~> emerge -q dev-python/imapclient >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-python/imapclient-0.13::gentoo >>> Installing (1 of 1) dev-python/imapclient-0.13::gentoo >>> Recording dev-python/imapclient in "world" favorites file... * Messages for package dev-python/imapclient-0.13: * Log file: /var/log/portage/buildlogs/dev-python:imapclient-0.13:20171208-100939.log * Package: dev-python/imapclient-0.13 * Repository: gentoo * Maintainer: python@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python2_7 python_targets_python3_4 userland_GNU * FEATURES: fakeroot network-sandbox preserve-libs splitdebug userpriv usersandbox * Applying 0.12-tests.patch ... * python2_7: running distutils-r1_run_phase distutils-r1_python_compile * python3_4: running distutils-r1_run_phase distutils-r1_python_compile * python2_7: running distutils-r1_run_phase python_install * python3_4: running distutils-r1_run_phase python_install * python3_4: running distutils-r1_run_phase python_install_all * Final size of build directory: 1220 KiB (1.1 MiB) * Final size of installed tree: 772 KiB
SOA#1
Propozycja nr 2:
# Debian ### pią gru 08 11:35:12 domek : / root ~> cat /etc/debian_version buster/sid # Debian ### pią gru 08 11:34:18 domek : / root ~> pip install imapclient Collecting imapclient Downloading IMAPClient-1.1.0.tar.gz (192kB) 100% |████████████████████████████████| 194kB 1.5MB/s Collecting backports.ssl>=0.0.9 (from imapclient) Downloading backports.ssl-0.0.9.tar.gz Requirement already satisfied: pyopenssl>=0.15.1 in /usr/lib/python2.7/dist-packages (from imapclient) Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from imapclient) Building wheels for collected packages: imapclient, backports.ssl Running setup.py bdist_wheel for imapclient ... done Stored in directory: /root/.cache/pip/wheels/54/d7/68/9318304ad538da342300c681b8322e134cde0eba7253c4c59b Running setup.py bdist_wheel for backports.ssl ... done Stored in directory: /root/.cache/pip/wheels/cd/9d/13/e855020d39af904231165e7c92360527ef8d8c7595532b99e1 Successfully built imapclient backports.ssl Installing collected packages: backports.ssl, imapclient Successfully installed backports.ssl-0.0.9 imapclient-1.1.0
SOA#1 po raz drugi.
Pozdro
Ostatnio edytowany przez Jacekalex (2017-12-08 11:38:11)
Offline
Strony: 1
Time (s) | Query |
---|---|
0.00023 | SET CHARSET latin2 |
0.00009 | SET NAMES latin2 |
0.00141 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.141.29.145' WHERE u.id=1 |
0.00085 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.141.29.145', 1714931886) |
0.00047 | SELECT * FROM punbb_online WHERE logged<1714931586 |
0.00113 | DELETE FROM punbb_online WHERE ident='185.191.171.4' |
0.00151 | DELETE FROM punbb_online WHERE ident='54.36.148.75' |
0.00167 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=30108 AND t.moved_to IS NULL |
0.00019 | SELECT search_for, replace_with FROM punbb_censoring |
0.00255 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=30108 ORDER BY p.id LIMIT 0,25 |
0.00190 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=30108 |
Total query time: 0.012 s |