Closed hyuntoe closed 10 years ago
You probably need to download wxPython binaries (it looks like the pip repository for Mac does not have wxPython, from the output of your pip run) ? http://www.wxpython.org/download.php
I'll try.
Thank you!!
I installed wxPython 3.0 cocoa version.
and I typed "pip install -r requirements.txt"
Result : HyuntoeMBP:printrun hyuntoe$ pip install -r requirements.txt Downloading/unpacking argparse (from -r requirements.txt (line 1)) Downloading argparse-1.1.zip (151kB): 151kB downloaded Running setup.py (path:/private/var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip_build_hyuntoe/argparse/setup.py) egg_info for package argparse
Downloading/unpacking pyreadline (from -r requirements.txt (line 2)) Downloading pyreadline-2.0.zip (108kB): 108kB downloaded Running setup.py (path:/private/var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip_build_hyuntoe/pyreadline/setup.py) egg_info for package pyreadline
package init file 'pyreadline/configuration/__init__.py' not found (or not a regular file)
Downloading/unpacking pyserial (from -r requirements.txt (line 3)) Downloading pyserial-2.7.tar.gz (122kB): 122kB downloaded Running setup.py (path:/private/var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip_build_hyuntoe/pyserial/setup.py) egg_info for package pyserial
Requirement already satisfied (use --upgrade to upgrade): wxPython in /usr/local/lib/wxPython-3.0.0.0/lib/python2.7/site-packages/wx-3.0-osx_cocoa (from -r requirements.txt (line 4)) Downloading/unpacking numpy (from -r requirements.txt (line 5)) Downloading numpy-1.8.1.tar.gz (3.8MB): 3.8MB downloaded Running setup.py (path:/private/var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip_build_hyuntoe/numpy/setup.py) egg_info for package numpy Running from numpy source directory.
warning: no files found matching 'tools/py3tool.py'
warning: no files found matching '*' under directory 'doc/f2py'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
Downloading/unpacking pyglet>=1.1 (from -r requirements.txt (line 6)) Downloading pyglet-1.1.4.tar.gz (2.9MB): 2.9MB downloaded Running setup.py (path:/private/var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip_build_hyuntoe/pyglet/setup.py) egg_info for package pyglet
Downloading/unpacking pycairo (from -r requirements.txt (line 7)) Could not find any downloads that satisfy the requirement pycairo (from -r requirements.txt (line 7)) Some externally hosted files were ignored (use --allow-external pycairo to allow). Cleaning up... No distributions at all found for pycairo (from -r requirements.txt (line 7)) Storing debug log for failure in /Users/hyuntoe/Library/Logs/pip.log HyuntoeMBP:printrun hyuntoe$
another problem appear! :(
Thanks! I read that links. but I can't understand those. so I clicked url link http://www.cairographics.org/pycairo/ at Download page, I found some commands.
I tried sudo port install cairo
but, I got command not found
so I tried sudo port apt-get install cairo
but, I got command not found
:( I clicked the link MacPorts ( http://www.macports.org/install.php ) and installed MacPorts
I tried sudo port install but doesn't work.
I closed the terminal and re-open the terminal. I re-tried sudo port install cairo
I got cairo successfully and I tried pip install -r requirements.txt
error appears Line 7, pycairo again.
I tried pip install -r cairosvg and pip install -r psutil
error appears too.
Well you visibly need to install pycairo through ports as well (something like sudo port install py27-cairo I imagine, as mentionned in the link I gave)
Thanks!
Result:
HyuntoeMBP:~ hyuntoe$ sudo port install py27-cairo Password: ---> Computing dependencies for py27-cairo ---> Cleaning py27-cairo ---> Scanning binaries for linking errors: 100.0% ---> No broken files found.
and Next,
for cairosvg,
Result :
HyuntoeMBP:~ hyuntoe$ sudo port install cairosvg Error: Port cairosvg not found HyuntoeMBP:~ hyuntoe$ pip install cairosvg Requirement already satisfied (use --upgrade to upgrade): cairosvg in /Library/Python/2.7/site-packages Requirement already satisfied (use --upgrade to upgrade): cairocffi in /Library/Python/2.7/site-packages (from cairosvg) Downloading/unpacking cffi>=0.6 (from cairocffi->cairosvg) Downloading cffi-0.8.2.tar.gz (197kB): 197kB downloaded Running setup.py (path:/private/var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip_build_hyuntoe/cffi/setup.py) egg_info for package cffi OS/X: confusion between 'cc' versus 'gcc' (see issue 123) will not use '__thread' in the C code
Downloading/unpacking pycparser (from cffi>=0.6->cairocffi->cairosvg) Downloading pycparser-2.10.tar.gz (206kB): 206kB downloaded Running setup.py (path:/private/var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip_build_hyuntoe/pycparser/setup.py) egg_info for package pycparser
Installing collected packages: cffi, pycparser Running setup.py install for cffi OS/X: confusion between 'cc' versus 'gcc' (see issue 123) will not use 'thread' in the C code building '_cffi_backend' extension cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/usr/include/ffi -I/usr/include/libffi -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c c/_cffi_backend.c -o build/temp.macosx-10.9-intel-2.7/c/_cffi_backend.o clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future] clang: note: this will be a hard error (cannot be downgraded to a warning) in the future error: command 'cc' failed with exit status 1 Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file='/private/var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip_build_hyuntoe/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip-TvLa1B-record/install-record.txt --single-version-externally-managed --compile: OS/X: confusion between 'cc' versus 'gcc' (see issue 123)
will not use '__thread' in the C code
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-intel-2.7
creating build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/init.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/api.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/commontypes.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/cparser.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/gc_weakref.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/lock.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/model.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/verifier.py -> build/lib.macosx-10.9-intel-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.macosx-10.9-intel-2.7
creating build/temp.macosx-10.9-intel-2.7/c
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/usr/include/ffi -I/usr/include/libffi -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c c/_cffi_backend.c -o build/temp.macosx-10.9-intel-2.7/c/_cffi_backend.o
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: command 'cc' failed with exit status 1
Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;file='/private/var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip_build_hyuntoe/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip-TvLa1B-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip_build_hyuntoe/cffi Storing debug log for failure in /Users/hyuntoe/Library/Logs/pip.log
eh.... hmm...
I tried: pip list
result: HyuntoeMBP:~ hyuntoe$ pip list altgraph (0.10.1) bdist-mpkg (0.4.4) bonjour-py (0.3) cairocffi (0.5.3) CairoSVG (1.0.7) distribute (0.6.49) macholib (1.5) matplotlib (1.1.1) modulegraph (0.10.1) pip (1.5.4) py2app (0.7.1) pyobjc-core (2.3.2a0) pyobjc-framework-AddressBook (2.3.2a0) pyobjc-framework-AppleScriptKit (2.3.2a0) pyobjc-framework-AppleScriptObjC (2.3.2a0) pyobjc-framework-Automator (2.3.2a0) pyobjc-framework-CFNetwork (2.3.2a0) pyobjc-framework-Cocoa (2.3.2a0) pyobjc-framework-Collaboration (2.3.2a0) pyobjc-framework-CoreData (2.3.2a0) pyobjc-framework-CoreLocation (2.3.2a0) pyobjc-framework-CoreText (2.3.2a0) pyobjc-framework-DictionaryServices (2.3.2a0) pyobjc-framework-ExceptionHandling (2.3.2a0) pyobjc-framework-FSEvents (2.3.2a0) pyobjc-framework-InputMethodKit (2.3.2a0) pyobjc-framework-InstallerPlugins (2.3.2a0) pyobjc-framework-InstantMessage (2.3.2a0) pyobjc-framework-InterfaceBuilderKit (2.3.2a0) pyobjc-framework-LatentSemanticMapping (2.3.2a0) pyobjc-framework-LaunchServices (2.3.2a0) pyobjc-framework-Message (2.3.2a0) pyobjc-framework-OpenDirectory (2.3.2a0) pyobjc-framework-PreferencePanes (2.3.2a0) pyobjc-framework-PubSub (2.3.2a0) pyobjc-framework-QTKit (2.3.2a0) pyobjc-framework-Quartz (2.3.2a0) pyobjc-framework-ScreenSaver (2.3.2a0) pyobjc-framework-ScriptingBridge (2.3.2a0) pyobjc-framework-SearchKit (2.3.2a0) pyobjc-framework-ServiceManagement (2.3.2a0) pyobjc-framework-SyncServices (2.3.2a0) pyobjc-framework-SystemConfiguration (2.3.2a0) pyobjc-framework-WebKit (2.3.2a0) pyobjc-framework-XgridFoundation (2.3.2a0) pyOpenSSL (0.13) PyRSS2Gen (1.0.0) python-dateutil (1.5) pytz (2012d) scipy (0.11.0) setuptools (0.6c11) Twisted (12.2.0) wsgiref (0.1.2) wxPython (3.0.0.0) wxPython-common (3.0.0.0) xattr (0.6.4) zope.interface (3.8.0)
maybe, cairoSVG is installed already. (I did not...lol)
I tried install psutil by pip.. I got error messages which is like errors of cairosvg above.
what it mean? and.... what I can do?
is it better using Windows than using OSX for running printrun from source codes?
Probably, or linux would work even better :-P Le 9 mai 2014 16:13, "hyuntoe" notifications@github.com a écrit :
is it better using Windows than using OSX for running printrun from source codes?
— Reply to this email directly or view it on GitHubhttps://github.com/kliment/Printrun/issues/535#issuecomment-42670263 .
ah......
okay..
Thanks for comments iXce!! :)
I'm using MacBook Pro OSX 10.9.2.
I did :
result : HyuntoeMBP:printrun hyuntoe$ pip install -r requirements.txt Downloading/unpacking argparse (from -r requirements.txt (line 1)) Downloading argparse-1.1.zip (151kB): 151kB downloaded Running setup.py (path:/private/var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip_build_hyuntoe/argparse/setup.py) egg_info for package argparse
Downloading/unpacking pyreadline (from -r requirements.txt (line 2)) Downloading pyreadline-2.0.zip (108kB): 108kB downloaded Running setup.py (path:/private/var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip_build_hyuntoe/pyridine/setup.py) egg_info for package pyreadline
Downloading/unpacking pyserial (from -r requirements.txt (line 3)) Downloading pyserial-2.7.tar.gz (122kB): 122kB downloaded Running setup.py (path:/private/var/folders/00/h5by551d05z9g_80cxhc1tt00000gn/T/pip_build_hyuntoe/pyserial/setup.py) egg_info for package pyserial
Downloading/unpacking wxPython (from -r requirements.txt (line 4)) Could not find any downloads that satisfy the requirement wxPython (from -r requirements.txt (line 4)) Some externally hosted files were ignored (use --allow-external wxPython to allow). Cleaning up... No distributions at all found for wxPython (from -r requirements.txt (line 4)) Storing debug log for failure in /Users/hyuntoe/Library/Logs/pip.log HyuntoeMBP:printrun hyuntoe$
what is wrong? how can I fix it?
please, help me.