الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مساعدة اسكريبت لأستخراج الملفات المضغوطة

بدأه Ahmed7fathi في 22 سبتمبر 2014 · 5 رد · 1,049 مشاهدة · في لغة Python
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

بسم الله الرحمن الرحيم

السلام عليكم

قمت بالبحث عن مكتبات لأستخراج الملفات المضغوطة مثل rar zip

وجدت

pyunpack

rarfile

chilkat

وقمت بتركيت جميع المكتبات ولم تفلح المحاولة لأي مكتبة !!

الجميع بهم اخطاء

ومن اخطاء التثبيت في مكتبة pyunpack

>>> import pyunpack
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pyunpack/__init__.py", line 1, in <module>
    from easyprocess import Proc
ImportError: No module named easyprocess
#2

نزل المكتبه المطلوبه عن طريق pip
 

pip install EasyProcess

وَمَا أُوتِيتُمْ مِنْ الْعِلْمِ إِلاَّ قَلِيلاً

#3

لم يتم التثبيت بنجاح تقرير ملف pip.log

------------------------------------------------------------
/usr/bin/pip run on Mon Sep 22 23:42:42 2014
Downloading/unpacking easyprocess
  Getting page https://pypi.python.org/simple/easyprocess/
  URLs to search for versions for easyprocess:
  * https://pypi.python.org/simple/easyprocess/
  Analyzing links from page https://pypi.python.org/simple/easyprocess/
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.0.0.tar.gz#md5=d750a055baf5e64e44e2115675697d81 (from https://pypi.python.org/simple/easyprocess/), version: 0.0.0
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.0.1.tar.gz#md5=c15b9606b94fe0c28af22c35fd4dbfe0 (from https://pypi.python.org/simple/easyprocess/), version: 0.0.1
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.0.10.tar.gz#md5=24278d8282d8f223668db33343ae83e3 (from https://pypi.python.org/simple/easyprocess/), version: 0.0.10
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.0.2.tar.gz#md5=2023821bb101571e5730596e9001f717 (from https://pypi.python.org/simple/easyprocess/), version: 0.0.2
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.0.3.tar.gz#md5=e36ab26929a0cd419d0beff342136a8c (from https://pypi.python.org/simple/easyprocess/), version: 0.0.3
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.0.4.tar.gz#md5=4dd341a7aac39d408c1d236d092fbb02 (from https://pypi.python.org/simple/easyprocess/), version: 0.0.4
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.0.5.tar.gz#md5=b0666e086e0d9340b51f50dee84ef67f (from https://pypi.python.org/simple/easyprocess/), version: 0.0.5
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.0.6.tar.gz#md5=edcc84054041ac36ee2f4c32d821a607 (from https://pypi.python.org/simple/easyprocess/), version: 0.0.6
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.0.7.tar.gz#md5=542861a91ca199de8789e895c3fbdbbf (from https://pypi.python.org/simple/easyprocess/), version: 0.0.7
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.0.8.tar.gz#md5=0f59b92de9458b478a0d293f955e5a1a (from https://pypi.python.org/simple/easyprocess/), version: 0.0.8
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.0.9.tar.gz#md5=9078efa8f455428eb71147dad8a4c5cb (from https://pypi.python.org/simple/easyprocess/), version: 0.0.9
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.1.0.tar.gz#md5=2206a4638d577872c7a899285f4711fa (from https://pypi.python.org/simple/easyprocess/), version: 0.1.0
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.1.2.tar.gz#md5=7cdd29db7f65393c001d2ebef6b92ec9 (from https://pypi.python.org/simple/easyprocess/), version: 0.1.2
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.1.3.tar.gz#md5=cec143f173a417e43addb4cad5eb47ab (from https://pypi.python.org/simple/easyprocess/), version: 0.1.3
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.1.4.tar.gz#md5=3f24d0a5a4b934be4d37c229a0165721 (from https://pypi.python.org/simple/easyprocess/), version: 0.1.4
    Found link https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.1.6.tar.gz#md5=8719886c7962bfea97a7d82fccd657a9 (from https://pypi.python.org/simple/easyprocess/), version: 0.1.6
    Skipping link http://docs.python.org/library/subprocess.html (from https://pypi.python.org/simple/easyprocess/); unknown archive format: .html
    Skipping link http://peak.telecommunity.com/DevCenter/EasyInstall (from https://pypi.python.org/simple/easyprocess/); not a file
    Skipping link http://pip.openplans.org/ (from https://pypi.python.org/simple/easyprocess/); not a file
    Skipping link http://ponty.github.com/EasyProcess (from https://pypi.python.org/simple/easyprocess/); not a file
    Skipping link http://ponty.github.com/easyprocess (from https://pypi.python.org/simple/easyprocess/); not a file
    Skipping link https://github.com/amoffat/sh (from https://pypi.python.org/simple/easyprocess/); not a file
    Skipping link https://github.com/kennethreitz/envoy (from https://pypi.python.org/simple/easyprocess/); not a file
    Skipping link https://github.com/ponty/EasyProcess (from https://pypi.python.org/simple/easyprocess/); not a file
    Skipping link https://github.com/ponty/EasyProcess/raw/master/docs/_build/latex/EasyProcess.pdf (from https://pypi.python.org/simple/easyprocess/); unknown archive format: .pdf
    Skipping link https://github.com/ponty/easyprocess (from https://pypi.python.org/simple/easyprocess/); not a file
    Skipping link https://github.com/tomerfiliba/plumbum (from https://pypi.python.org/simple/easyprocess/); not a file
  Using version 0.1.6 (newest of versions: 0.1.6, 0.1.4, 0.1.3, 0.1.2, 0.1.0, 0.0.10, 0.0.9, 0.0.8, 0.0.7, 0.0.6, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1, 0.0.0)
  Downloading EasyProcess-0.1.6.tar.gz
  Downloading from URL https://pypi.python.org/packages/source/E/EasyProcess/EasyProcess-0.1.6.tar.gz#md5=8719886c7962bfea97a7d82fccd657a9 (from https://pypi.python.org/simple/easyprocess/)
  Running setup.py (path:/tmp/pip_build_ahmed/easyprocess/setup.py) egg_info for package easyprocess
    running egg_info
    creating pip-egg-info/EasyProcess.egg-info
    writing pip-egg-info/EasyProcess.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/EasyProcess.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/EasyProcess.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/EasyProcess.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found
    
    reading manifest file 'pip-egg-info/EasyProcess.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'CHANGES*'
    no previously-included directories found matching 'docs/_build'
    writing manifest file 'pip-egg-info/EasyProcess.egg-info/SOURCES.txt'
  Source in /tmp/pip_build_ahmed/easyprocess has version 0.1.6, which satisfies requirement easyprocess
Installing collected packages: easyprocess
  Running setup.py install for easyprocess
    Running command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_ahmed/easyprocess/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Q3JDK7-record/install-record.txt --single-version-externally-managed --compile
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-i686-2.7
    creating build/lib.linux-i686-2.7/easyprocess
    copying easyprocess/__init__.py -> build/lib.linux-i686-2.7/easyprocess
    copying easyprocess/unicodeutil.py -> build/lib.linux-i686-2.7/easyprocess
    creating build/lib.linux-i686-2.7/easyprocess/examples
    copying easyprocess/examples/__init__.py -> build/lib.linux-i686-2.7/easyprocess/examples
    copying easyprocess/examples/log.py -> build/lib.linux-i686-2.7/easyprocess/examples
    copying easyprocess/examples/ver.py -> build/lib.linux-i686-2.7/easyprocess/examples
    running egg_info
    writing EasyProcess.egg-info/PKG-INFO
    writing top-level names to EasyProcess.egg-info/top_level.txt
    writing dependency_links to EasyProcess.egg-info/dependency_links.txt
    warning: manifest_maker: standard file '-c' not found
    
    reading manifest file 'EasyProcess.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching 'CHANGES*'
    no previously-included directories found matching 'docs/_build'
    writing manifest file 'EasyProcess.egg-info/SOURCES.txt'
    running install_lib
    creating /usr/local/lib/python2.7/dist-packages/easyprocess
    error: could not create '/usr/local/lib/python2.7/dist-packages/easyprocess': Permission denied
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_ahmed/easyprocess/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Q3JDK7-record/install-record.txt --single-version-externally-managed --compile:
    running install

running build

running build_py

creating build

creating build/lib.linux-i686-2.7

creating build/lib.linux-i686-2.7/easyprocess

copying easyprocess/__init__.py -> build/lib.linux-i686-2.7/easyprocess

copying easyprocess/unicodeutil.py -> build/lib.linux-i686-2.7/easyprocess

creating build/lib.linux-i686-2.7/easyprocess/examples

copying easyprocess/examples/__init__.py -> build/lib.linux-i686-2.7/easyprocess/examples

copying easyprocess/examples/log.py -> build/lib.linux-i686-2.7/easyprocess/examples

copying easyprocess/examples/ver.py -> build/lib.linux-i686-2.7/easyprocess/examples

running egg_info

writing EasyProcess.egg-info/PKG-INFO

writing top-level names to EasyProcess.egg-info/top_level.txt

writing dependency_links to EasyProcess.egg-info/dependency_links.txt

warning: manifest_maker: standard file '-c' not found



reading manifest file 'EasyProcess.egg-info/SOURCES.txt'

reading manifest template 'MANIFEST.in'

warning: no files found matching 'CHANGES*'

no previously-included directories found matching 'docs/_build'

writing manifest file 'EasyProcess.egg-info/SOURCES.txt'

running install_lib

creating /usr/local/lib/python2.7/dist-packages/easyprocess

error: could not create '/usr/local/lib/python2.7/dist-packages/easyprocess': Permission denied

----------------------------------------
Cleaning up...
  Removing temporary dir /tmp/pip_build_ahmed...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_ahmed/easyprocess/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Q3JDK7-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_ahmed/easyprocess
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1435, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 706, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/usr/lib/python2.7/dist-packages/pip/util.py", line 697, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_ahmed/easyprocess/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Q3JDK7-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_ahmed/easyprocess

#4
Ahmed7fathi كتب:
error: could not create '/usr/local/lib/python2.7/dist-packages/easyprocess': Permission denied

 

هل انت root?

 

ادخل علي الروت الأول

1

وَمَا أُوتِيتُمْ مِنْ الْعِلْمِ إِلاَّ قَلِيلاً

#5

أو إستعمل sudo قبل الكومند و بعدها أكتب الكلمة السرية

1
#6

بايثون لديها مكتبات افتراضية عدة مثبتة مع المكتبة القياسية zlib, gzip, bz2, zipfile, tarfile.

1
(map share people)

فضلا لاتقم بمراسلتي من أجل أسئلة لها أقسامها في المنتدى حتى تعم الفائدة على الجميع وللحصول على إجابات أفضل من أعضاء أكثر خبرة.
Weblog
@bitbucket
@xmonader

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…