跳至內容
Odoo 選單
  • 登入
  • 免費試用
  • 應用程式
    財政
    • 會計
    • 發票
    • 開支報銷
    • 試算表 (BI)
    • 文件管理
    • 電子簽名
    銷售
    • 客戶關係
    • 銷售
    • POS 銷售點管理 - 零售
    • POS 銷售點管理 - 餐廳
    • 訂閱
    • 租賃
    網站
    • 網站製作
    • 電子商務
    • 網誌
    • 討論區
    • 線上客服
    • 網上學習
    供應鏈
    • 庫存
    • 製造管理
    • 產品生命周期
    • 採購
    • 保養維護
    • 品質管理
    人力資源
    • 員工管理
    • 招聘
    • 休假
    • 工作表現評核
    • 內部推薦
    • 車隊管理
    市場推廣
    • 社交媒體推廣
    • 電郵推廣
    • 短訊營銷
    • 活動
    • 自動化推廣
    • 網上調查
    服務
    • 專案管理
    • 工時管理
    • 外勤服務管理
    • 技術支援
    • 工作規劃
    • 預約管理
    生產力
    • 聊天
    • 批核
    • 物聯網
    • VoIP
    • 知識庫
    • WhatsApp
    第三方應用程式 Odoo Studio Odoo 雲端平台
  • 行業
    零售
    • 書店
    • 服裝店
    • 家具店
    • 食品雜貨店
    • 五金店
    • 玩具店
    餐飲及款待
    • 酒吧及酒館
    • 餐廳
    • 快餐
    • 賓館
    • 飲品分銷商
    • 酒店
    房地產
    • 地產代理公司
    • 建築師事務所
    • 建造業
    • 物業管理
    • 園藝
    • 業主聯會
    顧問服務
    • 會計公司
    • Odoo 合作夥伴
    • 市場推廣公司
    • 律師事務所
    • 人才招募
    • 審計及認證
    製造管理
    • 紡織
    • 金屬
    • 家具
    • 食品
    • 啤酒廠
    • 企業禮品
    保健與健身
    • 運動俱樂部
    • 眼鏡店
    • 健身中心
    • 健康從業人員
    • 藥房
    • 髮型屋
    技術行業
    • 雜工
    • IT 硬體與支援
    • 太陽能系統
    • 鞋匠
    • 清潔服務
    • 暖通空調服務
    其他
    • 非牟利組織
    • 環境保護機構
    • 廣告板租賃
    • 攝影服務
    • 自行車租賃
    • 軟體經銷商
    瀏覽所有行業
  • 社群
    學習
    • 教學影片
    • 使用說明
    • 認證
    • 培訓
    • 網誌
    • Podcast
    增強教學效能
    • 教育計劃
    • Scale Up! 商業遊戲
    • 到訪 Odoo
    取得軟件
    • 下載
    • 版本對照表
    • 版本說明
    合作
    • GitHub
    • 討論區
    • 活動
    • 翻譯
    • 成為合作夥伴
    • 合作夥伴服務
    • 登記你的會計服務公司
    獲取服務相關資料
    • 尋找合作夥伴
    • 尋找會計服務
    • 預約顧問諮詢
    • 安裝及推行服務
    • 客戶案例
    • 支援
    • 軟件升級
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    預約示範
  • 定價
  • 技術支援

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • 客戶關係
  • e-Commerce
  • 會計
  • 庫存
  • PoS
  • 專案管理
  • MRP
All apps
只限註冊用戶才可與社群互動。
所有帖文 人 獎章
標籤 (查看所有)
odoo accounting v14 pos v15
關於此討論區
只限註冊用戶才可與社群互動。
所有帖文 人 獎章
標籤 (查看所有)
odoo accounting v14 pos v15
關於此討論區
支援

Upload Attachment In External Storage

訂閱

此帖文有活動時,接收通知

此問題已被標幟
attachmentdmsdocumentattachmentsftp
2 回覆
16494 瀏覽次數
頭像
Ken Tong

Dear All,

I am trying to set the attachment to be uploaded to the external storage via FTP connection. I have read through some articles from odoo regarding the settings but no success.

 

Any guidance would be highly appreciated.

0
頭像
捨棄
Med Said BARA

Which articles ? Which error messages ?

Ken Tong
作者

DiskStation1> python get-pip.py Downloading/unpacking pip Downloading pip-1.5.6-py2.py3-none-any.whl (1.0MB): 1.0MB downloaded Installing collected packages: pip Successfully installed pip Cleaning up...

頭像
Ken Tong
作者 最佳答案

http://www.baconconsult.eu/home/our-products/openerp/knowledge-management/openerp----documentation-management---configuration-in-version-70

 

This article guide me how to set the parameters. After the parameters has been set, the upload attachment process hang.

From my understanding, this article shows how to configure the file attachment to be same as the openerp database location. How if I have an external FTP ?

0
頭像
捨棄
頭像
Med Said BARA
最佳答案

Yes it's for OpenERP Documents (but not only for storing documents into the database location: you can configure it to use the file system as a storage space, by configuring the ir_attachement.location = file:///filestore, under settings --> Technical --> Parameters --> System Parameters).

 

For your need, you can use the following repo: http://bazaar.launchpad.net/~akretion-team/file-exchange/file-exchange/files

( Back from Travel - Edited on Sep 09 2014 )

Sorry for the late Ken.

After uploading the modules, you have to install them, and after that you will find a new menu " File Exchange" under "Settings", there you can configure your File Repo ...

https://www.dropbox.com/s/ttfhnd0ehmbb5vt/File Exchange KEN.png?dl=0

 

Some remarks: (according to the images links you've posted)

Don't confuse between accessing your sytem files (and folders) via WinSCP on Synology Server from your Window PC, and accessing (browsing) your OpenERP documents (which are under a Linux file System) via FTP from within OpenERP. They are two different things ! handled each one by 2 different FTP servers. (http://s22.postimg.org/7co7f76r5/image.png this opertion relies on document_ftp module).

If you just need to access them (OpenERP Documents) via WinSCP they are under /volume1/@appstore/openerp/filestore/you_database_name or at  any others  ftp locations you are using, but this is not the case of your question.

At this stage, you should first verify that you are not running under the following case: FTP  disabled in multiprocess mode (just take a look in your openerp-server.log file to see if there is a similar message) and  to be sure that your ftp server is running.

Another important thing is,  when uploading a file hangs and seems to take a long time (http://s22.postimg.org/bn2vasbu9/image.png), this is probably due to the size of the file, in this case you can override this limitation by using https://www.odoo.com/apps?search=attachment_size_limit&series=7.0

 

0
頭像
捨棄
Ken Tong
作者

Hi Med, Sorry for my newbie question, is installing the repo need backend modification / accessing the installation directory of openerp?

Med Said BARA

Using this repository (or any other repo in launchpad) need to to get a copy of it on your local machine by using a tool like BAZAAR EXPLORER, cause it's very hard to download all the files one by one, and recreating the same folder and sub-folder hierarchy. With Bazaar Explorer you can CLONE the repo on your local machine (getting a copy of the repo on your Hard Drive, and it's also very useful for updating). After cloning the repo, you have to copy the needed modules to your addons folder.

Ken Tong
作者

Hi Med, I have uploaded the modules into addon folder as mentioned: [url=http://postimage.org/][img]http://s22.postimg.org/otwwo1wxd/image.png[/img][/url] [url=http://postimage.org/]photo sharing[/url] Then i try upload and hang quite a long time: [url=http://postimage.org/][img]http://s22.postimg.org/bn2vasbu9/image.png[/img][/url] [url=http://postimage.org/]jpg images[/url] Then I try to click on knowledge Tab and browse with below but cant navigate to the directory: [url=http://postimage.org/][img]http://s22.postimg.org/7co7f76r5/image.png[/img][/url] [url=http://postimage.org/]picture share[/url] This is the parameters I set earlier: [url=http://postimage.org/][img]http://s22.postimg.org/6ymvflmnl/image.png[/img][/url] [url=http://postimage.org/]pic hosting[/url] I have also set the configuration file earlier and was able to access through FTP program like WinSCP: [url=http://postimage.org/][img]http://s22.postimg.org/84qveeay9/image.png[/img][/url] [url=http://postimage.org/]upload pic[/url] Any idea how should I setup next? Appreciate your kind help.

Ken Tong
作者

Hi Med, I have uploaded the modules into addon folder as mentioned: http://s22.postimg.org/otwwo1wxd/image.png Then i try upload and hang quite a long time: http://s22.postimg.org/bn2vasbu9/image.png Then I try to click on knowledge Tab and browse with below but cant navigate to the directory: http://s22.postimg.org/7co7f76r5/image.png This is the parameters I set earlier: http://s22.postimg.org/6ymvflmnl/image.png I have also set the configuration file earlier and was able to access through FTP program like WinSCP: http://s22.postimg.org/84qveeay9/image.png Any idea how should I setup next? Appreciate your kind help.

Ken Tong
作者

Hi Med, As I have uploaded the repo earlier, but how can I install them?

Med Said BARA

Steps for installation: .https://www.dropbox.com/s/z5ewyw85bgilb48/How To Install Modules.mov?dl=0

Ken Tong
作者

I was unable to find the module after update. Hereby I have attached a video. https://dl.dropboxusercontent.com/u/42025188/Cant_Install_Module.avi

Ken Tong
作者

as I checked, there are only red and black status. I can't find any blue pending module status. Is there any dependencies to be install first?

Med Said BARA

Could you verify that all the files under the 4 folders (file_repsitory, file_document etc ...) are also transferred. There must be a total of 44 files under the 4 folders.

Ken Tong
作者

As checked, there are 26 files and 6 folders, including sub folder. Well, I downloaded 1 by 1 as I could not launch the bazaar explorer as you recommended earlier in windows OS.

Med Said BARA

Sorry, i've deleted 2 erroneous comments, this is due to an error when using VLC https://www.dropbox.com/s/1ox4egimazwyfrj/Color Error in VLC.png?dl=0

Ken Tong
作者

I installed the bazaar explorer and it wouldnt launch anyway. can you share the repo via dropbox and share? So is there any issue with my red status module?

Med Said BARA

There is probably a problem with access rights on the files or some others issues (like line ending caracters), especially when downloading and transferring from windows, i will upload the modules to DropBox

Med Said BARA

Don't uncompress the ZIP in windows, transfer it first, and then uncompress it on your server: https://www.dropbox.com/s/1agpnqdaq4umdf4/file exchange.zip?dl=0

Med Said BARA

There is no problems with the Red Colored modules

Ken Tong
作者

Hi Med, Same. I checked and it consist of 26 files and 6 folders in the zip file.

Med Said BARA

Ok, just copy them to the addons folder (Merge Folders and Replace Files)

Ken Tong
作者

Strange enough. Update module and check again, still did not appear.

Med Said BARA

Yes, you are right there is only 26 files. Did you get any result?

Ken Tong
作者

The result is still same. Not appear in the list. Well, is the directory of the FTP that i upload is correct? I am using synology.

Ken Tong
作者

Hi Med, Found the problem. Is due to permission of the folder and files. I set it right now and it appears. Let me set the remaining and see if I can install the module.

Med Said BARA

Keep on, waiting for feedback .

Ken Tong
作者

Hi Med, It looks like this after modified permission https://dl.dropboxusercontent.com/u/42025188/repo.png

Ken Tong
作者

Med, Need your help to download and share for me again. Such a painful if download 1 by 1 https://dl.dropboxusercontent.com/u/42025188/repo_abstract.png

Ken Tong
作者

Get this error after everything about to install. OpenERP Server Error Client Traceback (most recent call last): File "/var/packages/OpenERP7.x/target/openerp/addons/web/http.py", line 195, in dispatch response["result"] = method(self, **self.params) File "/var/packages/OpenERP7.x/target/openerp/addons/web/controllers/main.py", line 1375, in run [action_id], req.context) File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 43, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 31, in proxy_method result = self.session.send(self.service_name, method, *args) File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 104, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info) Server Traceback (most recent call last): File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 90, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/usr/local/lib/python2.7/site-packages/openerp/netsvc.py", line 295, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/usr/local/lib/python2.7/site-packages/openerp/service/web_services.py", line 614, in dispatch res = fn(db, uid, *params) File "/usr/local/lib/python2.7/site-packages/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/usr/local/lib/python2.7/site-packages/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/openerp/osv/osv.py", line 198, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/usr/local/lib/python2.7/site-packages/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/var/packages/OpenERP7.x/target/openerp/addons/base/ir/ir_actions.py", line 611, in run eval(action.code, cxt, mode="exec", nocopy=True) # nocopy allows to return 'action' File "/usr/local/lib/python2.7/site-packages/openerp/tools/safe_eval.py", line 241, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) File "", line 1, in File "/var/packages/OpenERP7.x/target/openerp/addons/base/module/module.py", line 425, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) File "/var/packages/OpenERP7.x/target/openerp/addons/base/module/module.py", line 476, in _button_immediate_function _, pool = pooler.restart_pool(cr.dbname, update_module=True) File "/usr/local/lib/python2.7/site-packages/openerp/pooler.py", line 39, in restart_pool registry = RegistryManager.new(db_name, force_demo, status, update_module) File "/usr/local/lib/python2.7/site-packages/openerp/modules/registry.py", line 214, in new openerp.modules.load_modules(registry.db, force_demo, status, update_module) File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 347, in load_modules processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module) File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 258, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 190, in load_module_graph load_data(module_name, idref, mode) File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 75, in load_data = lambda *args: _load_data(cr, *args, kind='data') File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 126, in _load_data tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report) File "/usr/local/lib/python2.7/site-packages/openerp/tools/convert.py", line 941, in convert_xml_import doc = etree.parse(xmlfile) File "lxml.etree.pyx", line 2954, in lxml.etree.parse (src/lxml/lxml.etree.c:56220) File "parser.pxi", line 1555, in lxml.etree._parseDocument (src/lxml/lxml.etree.c:82527) File "parser.pxi", line 1585, in lxml.etree._parseFilelikeDocument (src/lxml/lxml.etree.c:82848) File "parser.pxi", line 1468, in lxml.etree._parseDocFromFilelike (src/lxml/lxml.etree.c:81704) File "parser.pxi", line 1024, in lxml.etree._BaseParser._parseDocFromFilelike (src/lxml/lxml.etree.c:78751) File "parser.pxi", line 569, in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/lxml.etree.c:74488) File "parser.pxi", line 650, in lxml.etree._handleParseResult (src/lxml/lxml.etree.c:75379) File "parser.pxi", line 590, in lxml.etree._raiseParseError (src/lxml/lxml.etree.c:74712) XMLSyntaxError: Input is not proper UTF-8, indicate encoding ! Bytes: 0xEE 0x74 0x20 0x47, line 5, column 15

Med Said BARA

Cancel the installation of the 3 modules in blue state (look also if there is not others modules in the Blue state - modules dependencies). Before that check if the modules fetchmail, file_document and abstract_automatic_task are installed (or in which state they are?). After that you can proceed with the installation, One by One of the modules, this way you can see which module is causing this issue.

Med Said BARA

Here is the dependency: https://www.dropbox.com/s/z6offhikvs3caz1/abstract-automatic-task.zip?dl=0

Ken Tong
作者

Is file_repository having problem of installing. Anything can do with it?

Med Said BARA

AFAIK no, which problem do you encounter ?

Med Said BARA

it just depends on file_autotask_rel, which in turn depends on file_document and abstract_automatic_task

Ken Tong
作者

This is the error i get. There is something wrong with the .py file with line number 24, 25 and 27 OpenERP Server Error Client Traceback (most recent call last): File "/var/packages/OpenERP7.x/target/openerp/addons/web/http.py", line 195, in dispatch response["result"] = method(self, **self.params) File "/var/packages/OpenERP7.x/target/openerp/addons/web/controllers/main.py", line 1083, in call_button action = self._call_kw(req, model, method, args, {}) File "/var/packages/OpenERP7.x/target/openerp/addons/web/controllers/main.py", line 1071, in _call_kw return getattr(req.session.model(model), method)(*args, **kwargs) File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 43, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 31, in proxy_method result = self.session.send(self.service_name, method, *args) File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 104, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info) Server Traceback (most recent call last): File "/var/packages/OpenERP7.x/target/openerp/addons/web/session.py", line 90, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/usr/local/lib/python2.7/site-packages/openerp/netsvc.py", line 295, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/usr/local/lib/python2.7/site-packages/openerp/service/web_services.py", line 614, in dispatch res = fn(db, uid, *params) File "/usr/local/lib/python2.7/site-packages/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/usr/local/lib/python2.7/site-packages/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/openerp/osv/osv.py", line 198, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/usr/local/lib/python2.7/site-packages/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/var/packages/OpenERP7.x/target/openerp/addons/base/module/module.py", line 425, in button_immediate_install return self._button_immediate_function(cr, uid, ids, self.button_install, context=context) File "/var/packages/OpenERP7.x/target/openerp/addons/base/module/module.py", line 476, in _button_immediate_function _, pool = pooler.restart_pool(cr.dbname, update_module=True) File "/usr/local/lib/python2.7/site-packages/openerp/pooler.py", line 39, in restart_pool registry = RegistryManager.new(db_name, force_demo, status, update_module) File "/usr/local/lib/python2.7/site-packages/openerp/modules/registry.py", line 214, in new openerp.modules.load_modules(registry.db, force_demo, status, update_module) File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 347, in load_modules processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module) File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 258, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "/usr/local/lib/python2.7/site-packages/openerp/modules/loading.py", line 161, in load_module_graph load_openerp_module(package.name) File "/usr/local/lib/python2.7/site-packages/openerp/modules/module.py", line 405, in load_openerp_module __import__('openerp.addons.' + module_name) File "/usr/local/lib/python2.7/site-packages/openerp/modules/module.py", line 133, in load_module mod = imp.load_module('openerp.addons.' + module_part, f, path, descr) File "/var/packages/OpenERP7.x/target/openerp/addons/file_repository/__init__.py", line 24, in import file_repository File "/var/packages/OpenERP7.x/target/openerp/addons/file_repository/file_repository.py", line 25, in from .file_connexion import FileConnection File "/var/packages/OpenERP7.x/target/openerp/addons/file_repository/file_connexion.py", line 27, in import paramiko ImportError: No module named paramiko

Med Said BARA

You need to install python paramiko package. For this, type in you console: sudo pip install paramiko and provide you root password (you may also need to install python pycrypto).

Ken Tong
作者

Having problem install paramiko python on my synology. Can you guide me to install the paramiko? https://dl.dropboxusercontent.com/u/42025188/console.png

Med Said BARA

try without sudo: pip install paramiko

Ken Tong
作者

DiskStation1> pip install paramiko -ash: pip: not found

Med Said BARA

if setup-tools is installed on your system use: easy_install pip , to install it, if not download setup-tools and install it first https://pypi.python.org/pypi/setuptools

Ken Tong
作者

Really headache setting up the FTP file exchange. Any other method? I get the below error. wget https://bootstrap.pypa.io/ez_setup.py -O - | python --23:16:09-- https://bootstrap.pypa.io/ez_setup.py => `-' Resolving bootstrap.pypa.io... 103.245.222.175 Connecting to bootstrap.pypa.io|103.245.222.175|:443... connected. ERROR: Certificate verification error for bootstrap.pypa.io: unable to get local issuer certificate ERROR: certificate common name `*.c.ssl.fastly.net' doesn't match requested host name `bootstrap.pypa.io'. To connect to bootstrap.pypa.io insecurely, use `--no-check-certificate'. Unable to establish SSL connection.

Ken Tong
作者

I can see the file exchange & configuration menu on my left pane. can i skip the file_repository installation?

Med Said BARA

You can't skip file_repository install. Concerning the error message: just repeat the command and append --no-check-certificate , as stated at the end of the error message

Ken Tong
作者

I have done wget. So what's next to launch the installation? DiskStation1> wget https://bootstrap.pypa.io/ez_setup.py --no-check-certificate | python --00:06:34-- https://bootstrap.pypa.io/ez_setup.py => `ez_setup.py' Resolving bootstrap.pypa.io... 103.245.222.175 Connecting to bootstrap.pypa.io|103.245.222.175|:443... connected. WARNING: Certificate verification error for bootstrap.pypa.io: unable to get local issuer certificate WARNING: certificate common name `*.c.ssl.fastly.net' doesn't match requested host name `bootstrap.pypa.io'. HTTP request sent, awaiting response... 200 OK Length: 10,476 (10K) [text/x-python] 100%[====================================>] 10,476 --.--K/s

Med Said BARA

Now install pip, and after install paramiko, and if needed pycrypto

Ken Tong
作者

As shown below, PIP is successfully installed. I am not sure my earlier wget ez_setup has successfully install the PARAMIKO or not? DiskStation1> python get-pip.py Downloading/unpacking pip Downloading pip-1.5.6-py2.py3-none-any.whl (1.0MB): 1.0MB downloaded Installing collected packages: pip Successfully installed pip Cleaning up...

Ken Tong
作者

i use pip install paramiko and return the result below: copying lib/Crypto/SelfTest/Random/OSRNG/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_Counter.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_winrandom.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_number.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_asn1.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/test_pkcs1_15.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature creating build/lib.linux-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/AllOrNothing.py -> build/lib.linux-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/Chaffing.py -> build/lib.linux-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/KDF.py -> build/lib.linux-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Protocol creating build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_slowmath.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/pubkey.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/RSA.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/DSA.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_DSA.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/ElGamal.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_RSA.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey creating build/lib.linux-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/PKCS1_PSS.py -> build/lib.linux-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/PKCS1_v1_5.py -> build/lib.linux-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Signature running build_ext running build_configure checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/tmp/pip_build_root/pycrypto': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details Traceback (most recent call last): File "", line 1, in File "/tmp/pip_build_root/pycrypto/setup.py", line 456, in core.setup(**kw) File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/local/lib/python2.7/site-packages/setuptools/command/install.py", line 53, in run return _install.run(self) File "/usr/local/lib/python2.7/distutils/command/install.py", line 563, in run self.run_command('build') File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/local/lib/python2.7/distutils/command/build.py", line 127, in run self.run_command(cmd_name) File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/tmp/pip_build_root/pycrypto/setup.py", line 251, in run self.run_command(cmd_name) File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/tmp/pip_build_root/pycrypto/setup.py", line 278, in run raise RuntimeError("autoconf error") RuntimeError: autoconf error ---------------------------------------- Cleaning up... Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-PyQrot-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/pycrypto Storing debug log for failure in /root/.pip/pip.log

Ken Tong
作者

I think the installation of paramiko is success but there is a problem which is crypto have not install yet. I tried install the file_repository and it have the error below at the last line. How can I install crypto? ImportError: No module named Crypto.PublicKey

Ken Tong
作者

I use the command "pip install pycrypto" and it returns the result below: DiskStation1> pip install pycryto Downloading/unpacking pycryto Could not find any downloads that satisfy the requirement pycryto Cleaning up... No distributions at all found for pycryto Storing debug log for failure in /root/.pip/pip.log

Med Said BARA

The other way to install a python package (when not using easy_install or pip) is to download the package as tar.gz (or tar or any other compressed format) uncompress it, move to the folder where you uncomressed the package and rxecute ' python setup.py install'.

Med Said BARA

Link for pycrypto: https://pypi.python.org/pypi/pycrypto

Ken Tong
作者

with this file, do i need to upload to the ftp and perform the uncompress? Or do i use wget to download to the system straight away? https://dl.dropboxusercontent.com/u/42025188/pycrypto.png

Med Said BARA

It's better to upload the downloaded package to your Linux, uncompress it, and then install it by the command: python setup.py install

Ken Tong
作者

The problem is I do not know where the exact directory should I upload in order to install. Sorry for my newbie question. I am not very good in linux install packages & etc. Can you guide me? Thanks

Med Said BARA

You can upload it anywhere, or you can create a folder and name it "python packages" ... and put there all your downloaded python packages ...

Ken Tong
作者

I encounter error message while trying to install. DiskStation1> python setup.py install running install running build running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/Crypto copying lib/Crypto/__init__.py -> build/lib.linux-x86_64-2.7/Crypto copying lib/Crypto/pct_warnings.py -> build/lib.linux-x86_64-2.7/Crypto creating build/lib.linux-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA384.py -> build/lib.linux-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA224.py -> build/lib.linux-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD5.py -> build/lib.linux-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/RIPEMD.py -> build/lib.linux-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD2.py -> build/lib.linux-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/MD4.py -> build/lib.linux-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA.py -> build/lib.linux-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/HMAC.py -> build/lib.linux-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA512.py -> build/lib.linux-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/SHA256.py -> build/lib.linux-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Hash copying lib/Crypto/Hash/hashalgo.py -> build/lib.linux-x86_64-2.7/Crypto/Hash creating build/lib.linux-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/ARC2.py -> build/lib.linux-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/Blowfish.py -> build/lib.linux-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/blockalgo.py -> build/lib.linux-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/AES.py -> build/lib.linux-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/PKCS1_v1_5.py -> build/lib.linux-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/ARC4.py -> build/lib.linux-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/CAST.py -> build/lib.linux-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/XOR.py -> build/lib.linux-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/DES.py -> build/lib.linux-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/DES3.py -> build/lib.linux-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Cipher copying lib/Crypto/Cipher/PKCS1_OAEP.py -> build/lib.linux-x86_64-2.7/Crypto/Cipher creating build/lib.linux-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/number.py -> build/lib.linux-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/RFC1751.py -> build/lib.linux-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/_number_new.py -> build/lib.linux-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/asn1.py -> build/lib.linux-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/randpool.py -> build/lib.linux-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/Counter.py -> build/lib.linux-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/py21compat.py -> build/lib.linux-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/winrandom.py -> build/lib.linux-x86_64-2.7/Crypto/Util copying lib/Crypto/Util/py3compat.py -> build/lib.linux-x86_64-2.7/Crypto/Util creating build/lib.linux-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/_UserFriendlyRNG.py -> build/lib.linux-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/random.py -> build/lib.linux-x86_64-2.7/Crypto/Random copying lib/Crypto/Random/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Random creating build/lib.linux-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/SHAd256.py -> build/lib.linux-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/FortunaAccumulator.py -> build/lib.linux-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/FortunaGenerator.py -> build/lib.linux-x86_64-2.7/Crypto/Random/Fortuna copying lib/Crypto/Random/Fortuna/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Random/Fortuna creating build/lib.linux-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/nt.py -> build/lib.linux-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/posix.py -> build/lib.linux-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/rng_base.py -> build/lib.linux-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Random/OSRNG copying lib/Crypto/Random/OSRNG/fallback.py -> build/lib.linux-x86_64-2.7/Crypto/Random/OSRNG creating build/lib.linux-x86_64-2.7/Crypto/SelfTest copying lib/Crypto/SelfTest/st_common.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest copying lib/Crypto/SelfTest/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_CAST.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_pkcs1_15.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_DES3.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_Blowfish.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_AES.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/common.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_XOR.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_ARC2.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_ARC4.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher copying lib/Crypto/SelfTest/Cipher/test_DES.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA256.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA512.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD5.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/common.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_RIPEMD.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD4.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA224.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_MD2.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_HMAC.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash copying lib/Crypto/SelfTest/Hash/test_SHA384.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Hash creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_KDF.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_chaffing.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_rfc1751.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/test_AllOrNothing.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Protocol copying lib/Crypto/SelfTest/Protocol/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Protocol creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_importKey.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_ElGamal.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_DSA.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey copying lib/Crypto/SelfTest/PublicKey/test_RSA.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/test_random.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/test_rpoolcompat.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random copying lib/Crypto/SelfTest/Random/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_SHAd256.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaGenerator.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaAccumulator.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/Fortuna copying lib/Crypto/SelfTest/Random/Fortuna/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/Fortuna creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_posix.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_nt.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_winrandom.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_fallback.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/test_generic.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG copying lib/Crypto/SelfTest/Random/OSRNG/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Random/OSRNG creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_asn1.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_Counter.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_number.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/test_winrandom.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util copying lib/Crypto/SelfTest/Util/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util creating build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/test_pkcs1_15.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature copying lib/Crypto/SelfTest/Signature/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature creating build/lib.linux-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/AllOrNothing.py -> build/lib.linux-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/KDF.py -> build/lib.linux-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/Chaffing.py -> build/lib.linux-x86_64-2.7/Crypto/Protocol copying lib/Crypto/Protocol/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Protocol creating build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/RSA.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/ElGamal.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_DSA.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/DSA.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_slowmath.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/pubkey.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey copying lib/Crypto/PublicKey/_RSA.py -> build/lib.linux-x86_64-2.7/Crypto/PublicKey creating build/lib.linux-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/PKCS1_PSS.py -> build/lib.linux-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/PKCS1_v1_5.py -> build/lib.linux-x86_64-2.7/Crypto/Signature copying lib/Crypto/Signature/__init__.py -> build/lib.linux-x86_64-2.7/Crypto/Signature running build_ext running build_configure checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/root/python_packages': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details Traceback (most recent call last): File "setup.py", line 456, in core.setup(**kw) File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/local/lib/python2.7/distutils/command/install.py", line 563, in run self.run_command('build') File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/local/lib/python2.7/distutils/command/build.py", line 127, in run self.run_command(cmd_name) File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 251, in run self.run_command(cmd_name) File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 278, in run raise RuntimeError("autoconf error") RuntimeError: autoconf error

Med Said BARA

Try "python setup.py build" and after "python setup.py install".

Ken Tong
作者

Receive the error message below:- DiskStation1> python setup.py build running build running build_py running build_ext running build_configure checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: in `/root/python_packages': configure: error: no acceptable C compiler found in $PATH See `config.log' for more details Traceback (most recent call last): File "setup.py", line 456, in core.setup(**kw) File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/local/lib/python2.7/distutils/command/build.py", line 127, in run self.run_command(cmd_name) File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 251, in run self.run_command(cmd_name) File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 278, in run raise RuntimeError("autoconf error") RuntimeError: autoconf error

Med Said BARA

As it appear from your comments,on your synology Diskstation, you have to install some packages needed for Linux as gcc ... and you have probably to upgrade your Linux distribution. Can you tell me which Diskstation are you using, which Linux version ...

Med Said BARA

I advise you to read the following links carefully: http://forum.synology.com/wiki/index.php/Overview_on_modifying_the_Synology_Server,_bootstrap,_ipkg_etc and http://oinkzwurgl.org/diskstation and also http://www.chainsawonatireswing.com/2012/01/09/installing-3rd-party-software-on-your-synology-diskstation-ds411j/

Med Said BARA

Here is a list where you can find packages you can install (IF NEEDED, AND WHEN NEEDED !!!): http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/stable/

Ken Tong
作者

Hi Med, I'm running XPEnology 4.2 on Vmware Workstation with 1 processor given. I use this as a test environment before i deploy to the real Syno NAS. Linux DiskStation1 3.2.30 #16 SMP Wed Aug 28 14:34:11 CEST 2013 x86_64 GNU/Linux synology_bromolow_3612xs

Med Said BARA

From where did you downloaded the DSM 4.2 (Build 3230) ?

Ken Tong
作者

I downloaded from:- https://drive.google.com/folderview?id=0B8WTs1D6D3VIVS1XMEs2STFqMEE&usp=sharing&tid=0B8WTs1D6D3VIWUFubjNFODhmU3c#list Are you trying to virtualize it as well?

Med Said BARA

For the DS3612xs, you should use the Linux 3.2.11, and you also need to download the following Toolchain http://sourceforge.net/projects/dsgpl/files/DSM 4.1 Tool Chains/Intel x86 Linux 3.2.11 %28Bromolow%29/gcc421_glibc236_x86_bromolow-GPL.tgz/download

Med Said BARA

Maybe i will try to virtualize it this week-end if i have enough time ! After installing GCC, continue with the installation of pycrypto as above (by running "python setup.py build" to build the package, and "python setup.py install" to install it.).

Ken Tong
作者

I am planning to upgrade to 5.0 soon since the Synology NAS that 1 going to deploy is version 5.0 As for the toolchains, I really have no idea how should I start installing it. I try install the GCC into my vm environment now. Will keep you updated with the result.

Ken Tong
作者

Hi Med, Sorry to trouble you. Can you take a look of my issue for this topic? https://www.odoo.com/forum/help-1/question/how-to-pass-value-from-one-view-to-another-63248

Ken Tong
作者

Hi Med, Can you have a look at this question? Is about required field, but only in editable state. TQ. https://www.odoo.com/forum/help-1/question/how-can-i-set-required-field-by-condition-63417

喜歡這則討論?不要只閱讀,加入發表意見吧!

今天就建立帳戶,享受獨家功能,與我們精彩的社群互動!

註冊
相關帖文 回覆 瀏覽次數 活動
Force documents to be stored in FTP location
attachment document filestore ftp
頭像
0
7月 24
2075
How to Access Attachment using FTP?
attachment document ftp odooV8
頭像
0
1月 17
4583
How I can save attachments to file system?
document attachments
頭像
2
6月 22
17621
Attachment Security Issue
attachment attachments
頭像
0
10月 21
3427
how to store attachments files in a filesystem instead of the database - odoo 10
attachment attachments
頭像
頭像
2
11月 17
7802
社群
  • 教學影片
  • 使用說明
  • 討論區
開源
  • 下載
  • GitHub
  • Runbot 測試環境
  • 翻譯
服務
  • odoo.sh 網頁寄存
  • 支援
  • 升級
  • 自訂功能開發
  • 教育及培訓
  • 尋找會計服務
  • 尋找合作夥伴
  • 成為合作夥伴
關於我們
  • 關於 Odoo 公司
  • 品牌資產
  • 聯絡我們
  • 招聘
  • 活動
  • Podcast
  • 網誌
  • 客戶
  • 法律 • 私隱政策
  • 安全性
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo 是一套開放源碼的商業管理系統,涵蓋你公司全部的營運需要,包括客戶關係管理(CRM)、電子商務、會計、庫存管理、POS(銷售點管理)、專案管理等應用程式。

Odoo 的獨特價值是非常簡單易用,同時將不同應用程式完美整合。

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now