Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'anyway': 0.11; 'subject:error': 0.11; 'thu,': 0.15; '>thanks,': 0.16; 'add.': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'subject:import': 0.16; 'url:pyinstaller': 0.16; 'laura': 0.18; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; 'see:': 0.22; 'sep': 0.22; 'file.': 0.22; 'import': 0.24; 'command': 0.26; '-0700,': 0.29; 'received:se': 0.29; 'cc:no real name:2**1': 0.29; 'add': 0.34; 'needed': 0.36; 'there': 0.36; 'url:org': 0.36; 'subject:: ': 0.37; 'charset:us-ascii': 0.37; 'turned': 0.38; 'skip:- 20': 0.39; 'header:Message-Id:1': 0.61; 'header:In-reply-to:1': 0.84; 'subject:+ ': 0.91 To: Heli Nix cc: python-list@python.org, lac@openend.se From: Laura Creighton Subject: Re: PyInstaller+ Python3.5 (h5py import error) In-reply-to: <4f9cdd42-fff9-4f0c-b36d-277df25d109f@googlegroups.com> References: <4d764608-4091-4600-a1ed-ac11bd790792@googlegroups.com> <4ca597c9-5b1f-4709-a88b-5ecc78d1c590@googlegroups.com> <4f9cdd42-fff9-4f0c-b36d-277df25d109f@googlegroups.com> Comments: In-reply-to Heli Nix message dated "Thu, 24 Sep 2015 02:58:35 -0700." MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16198.1443093113.1@fido> Content-Transfer-Encoding: quoted-printable Date: Thu, 24 Sep 2015 13:11:53 +0200 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Thu, 24 Sep 2015 13:11:55 +0200 (CEST) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1443093124 news.xs4all.nl 23825 [2001:888:2000:d::a6]:46270 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:97069 In a message of Thu, 24 Sep 2015 02:58:35 -0700, Heli Nix writes: >Thanks Christian, = > >It turned out that h5py.defs was not the only hidden import that I needed= to add. = > >I managed to get it working with the follwoing command adding 4 hidden im= ports. = > > >pyinstaller --hidden-import=3Dh5py.defs --hidden-import=3Dh5py.utils --h= idden-import=3Dh5py.h5ac --hidden-import=3Dh5py._proxy test.py > > >is there anyway that you can use to add all h5py submodules all together? > >Thanks, = > Yes. You can use a hook file. see: https://pythonhosted.org/PyInstaller/#using-hook-files Laura