• 締切済み

[Erroer] pylear2 tutorial

度々申し訳ありません。 cd pylearn2 python setup.py developの実行を行い、 running develop running egg_info writing requirements to pylearn2.egg-info/requires.txt writing pylearn2.egg-info/PKG-INFO writing top-level names to pylearn2.egg-info/top_level.txt writing dependency_links to pylearn2.egg-info/dependency_links.txt reading manifest file 'pylearn2.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pylearn2.egg-info/SOURCES.txt' running build_ext Creating /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pylearn2.egg-link (link to .) pylearn2 0.1dev is already the active version in easy-install.pth Installed /Users/k11053kk/pylearn2 Processing dependencies for pylearn2==0.1dev Searching for argparse==1.2.2 Best match: argparse 1.2.2 Processing argparse-1.2.2-py2.7.egg argparse 1.2.2 is already the active version in easy-install.pth Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/argparse-1.2.2-py2.7.egg Searching for PyYAML==3.11 Best match: PyYAML 3.11 Processing PyYAML-3.11-py2.7-macosx-10.6-intel.egg PyYAML 3.11 is already the active version in easy-install.pth Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyYAML-3.11-py2.7-macosx-10.6-intel.egg Searching for Theano==0.6.0 Best match: Theano 0.6.0 Processing Theano-0.6.0-py2.7.egg Theano 0.6.0 is already the active version in easy-install.pth Installing theano-cache script to /Library/Frameworks/Python.framework/Versions/2.7/bin Installing theano-nose script to /Library/Frameworks/Python.framework/Versions/2.7/bin Installing theano-test script to /Library/Frameworks/Python.framework/Versions/2.7/bin Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Theano-0.6.0-py2.7.egg Searching for numpy==1.7.2 Best match: numpy 1.7.2 Adding numpy 1.7.2 to easy-install.pth file Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Searching for scipy==0.16.0.dev-3a00319 Best match: scipy 0.16.0.dev-3a00319 Adding scipy 0.16.0.dev-3a00319 to easy-install.pth file Using /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Finished processing dependencies for pylearn2==0.1dev と、developは成功致しました。 しかし、 cd pylearn2/pylearn2/scripts/tutorials/grbm_smd/ python make_dataset.py の実行を行ったところ、 Traceback (most recent call last): File "make_dataset.py", line 27, in <module> train = cifar10.CIFAR10(which_set="train") File "/Users/aaa/pylearn2/pylearn2/datasets/cifar10.py", line 73, in __init__ data = CIFAR10._unpickle(fname) File "/Users/aaa/pylearn2/pylearn2/datasets/cifar10.py", line 244, in _unpickle fname = os.path.join(string_utils.preprocess('${PYLEARN2_DATA_PATH}'), File "/Users/aaa/pylearn2/pylearn2/utils/string_utils.py", line 55, in preprocess reraise_as(NoDataPathError()) File "/Users/aaa/pylearn2/pylearn2/utils/exc.py", line 90, in reraise_as six.reraise(type(new_exc), new_exc, orig_exc_traceback) File "/Users/aaa/pylearn2/pylearn2/utils/string_utils.py", line 52, in preprocess else os.environ[varname]) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py", line 23, in __getitem__ raise KeyError(key) pylearn2.utils.exc.NoDataPathError: You need to define your PYLEARN2_DATA_PATH environment variable. If you are using a computer at LISA, this should be set to /data/lisa/data. Platform-specific instructions for setting environment variables: Linux ===== On most linux setups, you can define your environment variable by adding this line to your ~/.bashrc file: export PYLEARN2_VIEWER_COMMAND="eog --new-instance" *** YOU MUST INCLUDE THE WORD "export". DO NOT JUST ASSIGN TO THE ENVIRONMENT VARIABLE *** If you do not include the word "export", the environment variable will be set in your bash shell, but will not be visible to processes that you launch from it, like the python interpreter. 対応策をお願い致します。 足りない部分は補足します。

みんなの回答

  • kmee
  • ベストアンサー率55% (1857/3366)
回答No.1

少しは、メッセージを読んで、自分で考えてはどうですか? この先も全部人に聞くつもりですか? それなら、求人サイトとかで「プログラムを作ってくれる人」を募集する事をおすすめします。 > You need to define your PYLEARN2_DATA_PATH environment variable と書いてあるのだから、その通りにしたらいいのでは? 少なくとも「PYLEARN2_DATA_PATH」で検索すれば有用な情報は見つかるはずですよ。

関連するQ&A

  • numpy 動作確認エラーについて

    numpyの動作確認を行ったのですがエラーが出力されましたので、 対応策を教えて下さい。 >>> import numpy >>> numpy.test() Running unit tests for numpy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/testing/nosetester.py", line 340, in test self._show_system_info() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/testing/nosetester.py", line 193, in _show_system_info nose = import_nose() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/testing/nosetester.py", line 71, in import_nose raise ImportError(msg) ImportError: Need nose >= 0.10.0 for tests - see http://somethingaboutorange.com/mrl/projects/nose よろしくお願い致します。

  • gnuplot.py について

    目的:pythonで数値計算した結果をgnuplotで出力したい。 要点:Gnuplot を import できてもグラフを表示できない。 OS : Mac OS X 10.5 まず、SorceForge から ・numerical python (numpy-1.5.1-py2.7-python.org-macosx10.3) ・gnuplot.py (gnuplot-py-1.8.tar) をダウンロードしました。 次にterminalで上のそれぞれのファイルがあるディレクトリにいって、 >> python setup.py install としました。どうやら成功した模様です。 numpy と Gnuplot というフォルダが /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ というディレクトリにできています。 そして、IDLE の python shell で >>> import numpy >>> import Gnuplot としました。無事完了します。ここまではOKです。 しかし、試しに python shell から gnuplot で表示してみようとすると、IOError: [Errno 32] Broken pipe というエラーを表示します。たとえば、上に書いたディレクトリのGnuplot というフォルダの中に、test.py というスクリプトがあって、IDLE で開いて実行すると、次のような表示が出ます: This program exercises many of the features of Gnuplot.py. The commands that are actually sent to gnuplot are printed for your enjoyment. Popping up a blank gnuplot window on your screen. Press return to show results... Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Gnuplot/demo.py", line 110, in <module> demo() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Gnuplot/demo.py", line 28, in demo g = Gnuplot.Gnuplot(debug=1) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Gnuplot/_Gnuplot.py", line 187, in __init__ self('set terminal %s' % (gp.GnuplotOpts.default_term,)) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Gnuplot/_Gnuplot.py", line 210, in __call__ self.gnuplot(s) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Gnuplot/gp_macosx.py", line 144, in __call__ self.flush() IOError: [Errno 32] Broken pipe 他のスクリプトを実行してみると、次の4つを除き正常に実行されます; _init.py, demo.py, test.py, gp_mac.py ただし、gp_mac.py だけは IOError: [Errno 32] Broken pipe ではなく、 ImportError: No module named Required_Suite というエラーです。 何が原因でしょうか?これを解決するにはどうしたらよいのでしょうか?

  • Python feedparserのパースエラー回避方法について

    feedparserを使い始めました。 ココログで削除されてしまっているあるいは存在しないブログのRSSフィードを読み込もうとすると下記のエラーが出てしまいます。 以下のページをパースしてしまっているように思われますが確認できていません。 http://www.cocolog-nifty.com/error/403 たとえば、Yahooブログで同様のことをしてもエラーはでませんでした。 このエラーの原因及び回避方法をご存知でしたら教えてください。 import feedparser d = feedparser.parse('http://xxx.cocolog-nifty.com/xxx/atom.xml') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "feedparser.py", line 2623, in parse feedparser.feed(data) File "feedparser.py", line 1441, in feed sgmllib.SGMLParser.feed(self, data) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/sgmllib.py", line 99, in feed self.goahead(0) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/sgmllib.py", line 138, in goahead k = self.parse_endtag(i) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/sgmllib.py", line 315, in parse_endtag self.finish_endtag(tag) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/sgmllib.py", line 355, in finish_endtag self.unknown_endtag(tag) File "feedparser.py", line 476, in unknown_endtag method() File "feedparser.py", line 1318, in _end_content value = self.popContent('content') File "feedparser.py", line 700, in popContent value = self.pop(tag) File "feedparser.py", line 641, in pop output = _resolveRelativeURIs(output, self.baseuri, self.encoding) File "feedparser.py", line 1594, in _resolveRelativeURIs p.feed(htmlSource) File "feedparser.py", line 1441, in feed sgmllib.SGMLParser.feed(self, data) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/sgmllib.py", line 99, in feed self.goahead(0) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/sgmllib.py", line 133, in goahead k = self.parse_starttag(i) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/sgmllib.py", line 291, in parse_starttag self.finish_starttag(tag, attrs) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/sgmllib.py", line 333, in finish_starttag self.unknown_starttag(tag, attrs) File "feedparser.py", line 1589, in unknown_starttag _BaseHTMLProcessor.unknown_starttag(self, tag, attrs) File "feedparser.py", line 1458, in unknown_starttag value = unicode(value, self.encoding) LookupError: unknown encoding: 環境は、Mac OS 10.5.4、Python 2.5.1、feedparser 4.1 レンタルサーバのXREAでも試しましたが同様のエラーが出ました。 XREAのPythonは2.4です。 よろしくお願いします。

  • ruby on railsに関して

    ruby on rails を独学で勉強しようと思い、 「基礎ruby on rails」を用いて、rubyやrailsなどをPCにダウンロードしたのですが、 rubyのバージョンが1.8.7だったので、 自分なりに調べてバージョンを1.9.3にしようとしたのですが、 再起動をするとどうしてもruby1.8.7になってしまいます。 しかたないと思って、1.8.7のまま、 「rails s」のコマンドを実行したら、 ターミナルに ↓ ーーーーーーーーーーーーーーーーーーーーーーー /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:230:in `activate': can't activate rack (~> 1.4.5, runtime) for ["actionpack-3.2.13", "railties-3.2.13"], already activated rack-1.5.2 for ["rack-ssl-1.3.3", "railties-3.2.13"] (Gem::LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:246:in `activate' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:245:in `each' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:245:in `activate' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:246:in `activate' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:245:in `each' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:245:in `activate' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:1056:in `gem' from /usr/bin/rails:18 ーーーーーーーーーーーーーーーーーーーーーーー このようなログがでてきました。 調べても内容が分からないので、 分かる人がおりましたら、 どのように対処をすればよいのかを教えていただけると幸いです。

  • Pythonの設定方法(text_factory)

    あるシステムを実行すると、下記エラーが表示されました。 --------------- Traceback (most recent call last): File "C:\TracLight\python\lib\site-packages\trac-0.12.4.ja1-py2.6.egg\trac\web\api.py", line 446, in send_error data, 'text/html') File "C:\TracLight\python\lib\site-packages\trac-0.12.4.ja1-py2.6.egg\trac\web\chrome.py", line 830, in render_template message = req.session.pop('chrome.%s.%d' % (type_, i)) File "C:\TracLight\python\lib\site-packages\trac-0.12.4.ja1-py2.6.egg\trac\web\api.py", line 216, in __getattr__ value = self.callbacks[name](self) File "C:\TracLight\python\lib\site-packages\trac-0.12.4.ja1-py2.6.egg\trac\web\main.py", line 306, in _get_session return Session(self.env, req) File "C:\TracLight\python\lib\site-packages\trac-0.12.4.ja1-py2.6.egg\trac\web\session.py", line 223, in __init__ self.promote_session(sid) File "C:\TracLight\python\lib\site-packages\trac-0.12.4.ja1-py2.6.egg\trac\web\session.py", line 282, in promote_session @self.env.with_transaction() File "C:\TracLight\python\lib\site-packages\trac-0.12.4.ja1-py2.6.egg\trac\db\api.py", line 77, in transaction_wrapper fn(ldb) File "C:\TracLight\python\lib\site-packages\trac-0.12.4.ja1-py2.6.egg\trac\web\session.py", line 287, in update_session_id """, (sid, self.req.authname)) File "C:\TracLight\python\lib\site-packages\trac-0.12.4.ja1-py2.6.egg\trac\db\util.py", line 65, in execute return self.cursor.execute(sql_escape_percent(sql), args) File "C:\TracLight\python\lib\site-packages\trac-0.12.4.ja1-py2.6.egg\trac\db\sqlite_backend.py", line 78, in execute result = PyFormatCursor.execute(self, *args) File "C:\TracLight\python\lib\site-packages\trac-0.12.4.ja1-py2.6.egg\trac\db\sqlite_backend.py", line 56, in execute args or []) File "C:\TracLight\python\lib\site-packages\trac-0.12.4.ja1-py2.6.egg\trac\db\sqlite_backend.py", line 48, in _rollback_on_error return function(self, *args, **kwargs) ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings. ----------------- 調査してみたら、Pythonで、 text_factory = str を設定したら良いとわかりましたが、設定方法が わかりません。 対話モードで設定したら良いのでしょうか? Pythonに関しては全然わからないのでどのように設定したら良いかがわかりません。 教えてください。 よろしくお願いします。

  • [svn+python]tracのinitenv中のsubversionエラー

    自分のマシン(Mac OS 10.5.5)にtracを導入に挑戦してる途中でのエラーで困っています。 tracのインストールを終え、リポジトリ作成、作業コピー作成を終えた後にinitenvしました。 Prohect Name, Database connection string, Repository type, Path to Repositoryを入力してEnterを押すと、以下の様なエラーが出ます。 ...(略) WikiStart imported from /Library/Python/2.5/site-packages/Trac-0.11.1.ja2-py2.5.egg/trac/wiki/default-pages/WikiStart Initenv for '/[Projetを作ろうとしたディレクトリ]/ProjectName' failed. ("Expected FS format '2'; found format '3'", 160043) Traceback (most recent call last): File "/Library/Python/2.5/site-packages/Trac-0.11.1.ja2-py2.5.egg/trac/admin/console.py", line 586, in do_initenv repos = self.__env.get_repository() File "/Library/Python/2.5/site-packages/Trac-0.11.1.ja2-py2.5.egg/trac/env.py", line 270, in get_repository return RepositoryManager(self).get_repository(authname) File "/Library/Python/2.5/site-packages/Trac-0.11.1.ja2-py2.5.egg/trac/versioncontrol/api.py", line 157, in get_repository repos = self._connector.get_repository(rtype, rdir, authname) File "/Library/Python/2.5/site-packages/Trac-0.11.1.ja2-py2.5.egg/trac/versioncontrol/svn_fs.py", line 280, in get_repository 'branches': self.branches}) File "/Library/Python/2.5/site-packages/Trac-0.11.1.ja2-py2.5.egg/trac/versioncontrol/svn_fs.py", line 401, in __init__ self.repos = repos.svn_repos_open(self.path, self.pool()) File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/libsvn/repos.py", line 47, in svn_repos_open return apply(_repos.svn_repos_open, args) SubversionException: ("Expected FS format '2'; found format '3'", 160043) 自分なりに調べ、「マシン内に複数バージョンのSubversionがあって、Pythonに通っているsvnへのパスがSubverion 1.5.xx。期待されていたのは1.4.xx」という風に認識しています。が、この先どうしたら良いかわからなくなってしまい、困ってしまいました。 質問は以下の3つ(4つ)です。 ■自分のマシンに入っているSubversionの一覧を知りたい ■Terminalで"which svn"と打つと、「/opt/local/bin/svn」と返ってきます。これが自分のマシン内に複数あるSubversionのどれを見に行っているのかを知りたい ■1.4.xxにパスを通したい or 1.5.xxを期待させたい (■その他上記エラーの解決策を知りたい) よろしくお願いします。

  • tracがうまく動きません。。。(ImportError: )

    Linuxにtracをインストールしたのですが、うまくページが表示されません。。 ■環境は以下の通りです。 OS:CentOS 5.3 Trac:0.11.4.ja1(日本語版) Python:2.5.2 Apache:2.2.11(ソースからインストール) SubVersion:1.4.2 mod_python:3.3.1 ブラウザからtracにアクセスすると以下のようなエラーメッセージが表示されます。 -------------------------------------------------------------------- MOD_PYTHON ERROR ProcessId: 10480 Interpreter: 'development' ServerName: 'development' DocumentRoot: '/public_html' URI: '/trac/' Location: '/trac' Directory: None Filename: '/public_html/trac' PathInfo: '/' Phase: 'PythonHandler' Handler: 'trac.web.modpython_frontend' Traceback (most recent call last): File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target result = _execute_target(config, req, object, arg) File "/usr/local/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target result = object(arg) File "/usr/local/lib/python2.5/site-packages/Trac-0.11.4.ja1-py2.5.egg/trac/web/modpython_frontend.py", line 143, in handler reload(sys.modules['trac.web']) File "/usr/local/lib/python2.5/site-packages/Trac-0.11.4.ja1-py2.5.egg/trac/web/__init__.py", line 12, in <module> from trac.web.api import * File "/usr/local/lib/python2.5/site-packages/Trac-0.11.4.ja1-py2.5.egg/trac/web/api.py", line 29, in <module> from trac.util import get_last_traceback, md5, unquote File "/usr/local/lib/python2.5/site-packages/Trac-0.11.4.ja1-py2.5.egg/trac/util/__init__.py", line 33, in <module> from trac.util.html import escape, unescape, Markup, Deuglifier File "/usr/local/lib/python2.5/site-packages/Trac-0.11.4.ja1-py2.5.egg/trac/util/html.py", line 16, in <module> from genshi import Markup, escape, unescape File "/usr/local/lib/python2.5/site-packages/Genshi-0.5.1-py2.5-linux-i686.egg/genshi/__init__.py", line 33, in <module> File "/usr/local/lib/python2.5/site-packages/Genshi-0.5.1-py2.5-linux-i686.egg/genshi/input.py", line 19, in <module> File "/usr/local/lib/python2.5/site-packages/_xmlplus/parsers/expat.py", line 4, in <module> from pyexpat import * ImportError: /usr/local/lib/python2.5/site-packages/_xmlplus/parsers/pyexpat.so: undefined symbol: PyUnicodeUCS4_Decode ------------------------------------------------------------------- pyexpat.soについていろいろ調べてみたのですが、分かりませんでした。。。 findコマンドでpyexpat.soを探してみましたが、見つかりません、、、 apacheのerror_logにも上記のエラーと同じものが残っていました。。 お心当たりのある方や同じエラーを解決できた方がいらっしゃいましたらご回答御願いいたします。ヒントになるような小さな事でも構いません。 宜しくお願いいたします。

  • pylearn2 インストール失敗

    >>python setup.py install を実行した所、 running install Because Pylearn2 is under heavy development, we generally do not advice using the `setup.py install` command. Please consider using the `setup.py develop` command instead for the following reasons: 1. Using `setup.py install` creates a copy of the Pylearn2 source code in your Python installation path. In order to update Pylearn2 afterwards you will need to rerun `setup.py install` (!). Simply using `git pull` to update your local copy of Pylearn2 code will not suffice. 2. When using `sudo` to install Pylearn2, all files, including the tutorials, will be copied to a directory owned by root. Not only is running tutorials as root unsafe, it also means that all Pylearn2-related environment variables which were defined for the user will be unavailable. Pressing enter will continue the installation of Pylearn2 in `develop` mode instead. Note that this means that you need to keep this folder with the Pylearn2 code in its current location. If you know what you are doing, and are very sure that you want to install Pylearn2 using the `install` command instead, please type `install`. Installation mode: [develop]/install/cancel: と、出力されinstallを実行した所、 running build running build_py running build_ext building 'pylearn2.utils._window_flip' extension C compiler: gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes compile options: '-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c' gcc-4.2: pylearn2/utils/_window_flip.c i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccGQGOMD.out i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccGQGOMD.out error: Command "gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pylearn2/utils/_window_flip.c -o build/temp.macosx-10.6-intel-2.7/pylearn2/utils/_window_flip.o" failed with exit status 1 とgcc4.2の部分でエラーが発生しました。 最新のgccは4.9であるため、バージョンによる失敗なんでしょうか? ちなみにdevelopを実行しても同様です。 対応策をよろしくお願い致します。

  • Pythonを用いてCGIを作る勉強をしています。

    Pythonを用いてCGIを作る勉強をしています。 さて、CGIHTTPServerでCGIのテストをしようとしたところ、ぜんぜん動いてくれません。ちゃんとファイルのパーミッションも755にしました。 自分の力だけではどうにもならなかったため、ここで質問させてもらいます。 どうしたらよいのでしょうか。 僕がつくったPythonのソース test.pyは #! /usr/bin python print "Content-type: text/html\n" print "<html><body>Hello!</body></html>" です。 本来ならブラウザで「http://127.0.0.1:8000/cgi-bin/test.py」 とすれば動いてくれるはずなのに以下のようなエラーメッセージが出ます。 localhost - - [19/May/2010 23:46:43] "GET /cgi-bin/test3.py HTTP/1.1" 200 - Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/CGIHTTPServer.py", line 255, in run_cgi OSError: [Errno 13] Permission denied localhost - - [19/May/2010 23:46:43] CGI script exit status 0x7f00 PCの環境はMacOSX10.6です。 だれか分かる方。教えていただけないでしょうか?? よろしくお願いします。

    • 締切済み
    • CGI
  • PHPからシェルコマンドを実行するとエラーが出る。

    皆様 いつもお世話になります。 早速ですがご質問させて頂きます。 PHPからPhantomjsというサーバーサイドでjavascriptをレンダリングできるツールを実行させたいと思い挑戦していますが、エラーがでてしまい上手くできません。 方法は以下の通りです。 【PHP】 shell_exec('/usr/local/bin/phantomjs /Applications/MAMP/htdocs/WebViewInterface/www/js/実行したいファイル.js 2>&1'); 【エラー内容】 dyld: Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib Expected in: /Applications/MAMP/Library/lib/libJPEG.dylib in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib ターミナル上では実行が確認できます。 以前、node.jsとphandomjsを一緒に利用としようと思い、npmコマンドで今使っている者とは別方法でphantomjsを導入したのですが、それが影響(なにかしらバッティングしている??)しているのでしょうか?? 調べても全く分からず困っています。 お詳しい方ご教授宜しくお願い致します! 開発環境: MacOSX 10.6.8 PHP 5.1.2 Phantomjs 1.9.1