Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'birmingham': 0.04; 'i?m': 0.05; 'importerror:': 0.05; 'none,': 0.05; 'scipy': 0.05; 'skip:" 60': 0.05; 'i?ve': 0.07; 'none)': 0.07; 'we?re': 0.07; '40,': 0.09; 'failed:': 0.09; 'path,': 0.09; 'skip:" 80': 0.09; 'subject:module': 0.09; 'def': 0.10; 'subject:error': 0.11; 'subject:not': 0.11; 'file,': 0.15; 'kings': 0.16; 'numpy': 0.16; 'scientist': 0.16; 'skip:" 70': 0.16; 'trainee': 0.16; 'received:169.254.1': 0.17; 'load': 0.19; 'module': 0.19; 'skip:" 30': 0.20; 'foundation': 0.20; 'trying': 0.21; 'import': 0.21; 'skip:s 70': 0.22; "world's": 0.22; 'image-size:2**11': 0.23; 'proprietary': 0.23; 'specified': 0.23; "i've": 0.23; 'received:169.254': 0.24; 'script': 0.24; '(most': 0.27; 'donate': 0.27; '(as': 0.27; 'dll': 0.27; 'found.': 0.27; 'skip:" 50': 0.27; 'skip:& 60': 0.27; 'skip:e 30': 0.27; 'run': 0.28; 'skip:& 70': 0.29; 'array': 0.29; 'received:169': 0.29; 'skip:_ 10': 0.29; 'skip:& 10': 0.29; "i'm": 0.29; "we're": 0.30; 'error': 0.30; '+44': 0.30; 'checked': 0.30; 'point': 0.31; 'file': 0.32; 'could': 0.32; 'getting': 0.33; 'traceback': 0.33; 'anyone': 0.33; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'skip:d 20': 0.34; 'text': 0.34; 'robert': 0.35; 'but': 0.36; 'url:org': 0.36; 'subject:" ': 0.36; 'skip:p 20': 0.36; 'author': 0.37; 'best,': 0.37; 'does': 0.37; 'url:rec-html40': 0.37; 'why': 0.37; 'university': 0.38; 'skip:o 20': 0.38; 'some': 0.38; 'received:10': 0.38; 'to:addr:python.org': 0.39; 'url:schemas': 0.39; 'recipient': 0.39; 'url:office': 0.39; 'url:omml': 0.39; 'url:2004': 0.39; 'url:microsoft': 0.39; 'url:12': 0.40; 'most': 0.61; 'email:': 0.62; 'header:Message-Id:1': 0.62; 'received:62': 0.62; 'received:unknown': 0.63; 'skip:n 10': 0.63; 'information,': 0.63; 'more': 0.63; 'replying': 0.64; 'virus:src="cid:': 0.64; 'our': 0.65; 'content-type:multipart/related': 0.65; 'tel:': 0.65; 'medical': 0.66; 'e-mail.': 0.71; 'privileged.': 0.72; 'exclusive': 0.81; '7000': 0.84; 'cancer': 0.84; 'clinical': 0.84; 'hospitals': 0.91; 'numbers:': 0.91; 'skip:& 80': 0.91; 'subject:found': 0.91; 'treatments': 0.91; '8bit%:18': 0.95; 'recipient(s)': 0.96 From: Robert Flintham To: "'python-list@python.org'" Date: Tue, 19 Mar 2013 15:10:42 +0000 Subject: "module could not be found" error Thread-Topic: "module could not be found" error Thread-Index: Ac4ks+xsz7JGupEjQM+HocgavJ8PFw== OLD-MSG-ID: Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: multipart/related; boundary="_004_DFBB66D7CAE80545A91347000FC76D5E022E672B9CBOURNExuhbnhs_"; type="multipart/alternative" MIME-Version: 1.0 X-SEF-7853D99-ADF1-478E-8894-213D316B8FFA: 1 X-SEF-Processed: 7_0_0_00239__2013_03_19_15_10_46 X-TM-AS-Product-Ver: IMSVA-8.0.0.1467-7.0.0.1014-19732.000 X-TM-AS-Result: No--32.376-60-31-10 X-imss-scan-details: No--32.376-60-31-10; No--32.376-3-31-10; No--32.376-5-31-10 X-TMASE-MatchedRID: YG1nGyiTp6KGSXlaFpW6Yb50lYduDghO0Wobj8GkNVrFJnEpmt9OE8rA DFQ3AjUL36vDsot+TXbhXcnMPO8RCEw9yYxqhp7ppXNiy9991TH1A+HzbPqZGsnJhTYnTng9xfI /IdHfoNUE4HKF/a+OHWdPhgLJihOEjjCvOetwLqfK09/T6AzbVmv34qCfZeB4sneuamRRT5NvPL RCpc5nqchPvwxXFl3Ourp7iUhdW6L/wFVzOFJrMLpQpcFDSnfc6BV0G92YJFFVJ67sl+rgYf/0T vG5VRyQia9pRXQFUa1iR5bYmO+0UfasLruDhuzWsyNb+yeIRApbUMPBWMyETgIH2h2T9kPwu0wO oMwhDw0HTUxnVVW8PCREOUPksBgB3qZejzo5GKrBtFDYGmaWKuq/uWzz2rh3+TdKNkxxkWQYo/Q g6rtTRVY3O5ppnjvGSQ2Sb5TIR9MS5lm5mQJTQTbN0t/c2qF2MrX+p1uNztAUtdRZTmEaIV2pa+ aJMbyan9fPWsL/WDS0XdFsGUlXTTScgMqgJnG/dhpn9dHmSFa2raKhDLB9XSeU9ni3W5GKUdfEK c10rU54nNRC+UXW5yqFmu/h/tw7lKHFFpLwOfU00dkxYNMRtwPOOkGDNg0s0QqB1UBzzMYp7OJH BmP4J4A+zZbAFdrS/76CM4Z/MGbtCn4AxG8/YYkMuDBv/UrZaZGo0EeYG964wTpaFKqo4VzpEbY pzI2KobiHrpbOKZKSiN8MzoBQOEUYJ3RLQ0KyZo3U20zmGVcS0/Mv4fW5bvFGIg998GTazh2NsD KDdzwchXTZ3Wukbw== X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 300 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1363705854 news.xs4all.nl 6843 [2001:888:2000:d::a6]:40681 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41517 --_004_DFBB66D7CAE80545A91347000FC76D5E022E672B9CBOURNExuhbnhs_ Content-Type: multipart/alternative; boundary="_000_DFBB66D7CAE80545A91347000FC76D5E022E672B9CBOURNExuhbnhs_" --_000_DFBB66D7CAE80545A91347000FC76D5E022E672B9CBOURNExuhbnhs_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi,=0D=0A=0D=0AI'm trying to run the following, with representin= g an array of floating point numbers:=0D=0A=0D=0A--------------------------= ----------------------------------=0D=0Aimport numpy as np=0D=0Aimport scip= y as sp=0D=0Afrom scipy import optimize=0D=0A=0D=0Axdata=3D=0D=0A= ydata=3D=0D=0A=0D=0Adef t2fit(x,T2,A):=0D=0A return A * np.exp= (-x/T2)=0D=0A=0D=0Apopt, pcov =3D optimize.curve=5Ffit(t2fit, xdata, ydata,= p0=3DNone, sigma=3DNone)=0D=0A--------------------------------------------= ----------------=0D=0A=0D=0ABut I'm getting an ImportError:=0D=0A=0D=0ATrac= eback (most recent call last):=0D=0A File "K:\eclipse\plugins\org.python.p= ydev=5F2.7.1.2012100913\pysrc\pydevd.py", line 1397, in =0D=0A d= ebugger.run(setup['file'], None, None)=0D=0A File "K:\eclipse\plugins\org.= python.pydev=5F2.7.1.2012100913\pysrc\pydevd.py", line 1090, in run=0D=0A = pydev=5Fimports.execfile(file, globals, locals) #execute the script=0D=0A= File "K:\eclipse\plugins\org.python.pydev=5F2.7.1.2012100913\pysrc\=5Fpyde= v=5Fexecfile.py", line 38, in execfile=0D=0A exec(compile(contents+"\n",= file, 'exec'), glob, loc) #execute the script=0D=0A File "K:\PROGRAMMING\= MRI=5FPython\fatfrac.py", line 7, in =0D=0A from scipy import op= timize=0D=0A File "K:\Python33\lib\site-packages\scipy\optimize\=5F=5Finit= =5F=5F.py", line 147, in =0D=0A from .=5Fminimize import *=0D=0A= File "K:\Python33\lib\site-packages\scipy\optimize\=5Fminimize.py", line = 29, in =0D=0A from .lbfgsb import =5Fminimize=5Flbfgsb=0D=0A Fi= le "K:\Python33\lib\site-packages\scipy\optimize\lbfgsb.py", line 40, in =0D=0A from . import =5Flbfgsb=0D=0AImportError: DLL load failed: = The specified module could not be found.=0D=0A=0D=0A=0D=0AI've checked the = path, and the file lbfgsb.py is definitely at that location (as are optimiz= e.py and =5Fminimize.py). Does anyone know why I'm getting the error=3F=0D= =0A=0D=0AAll the best,=0D=0ARob=0D=0A=0D=0A=0D=0A=0D=0ARobert Flintham=0D=0A= Trainee Clinical Scientist - MRI=0D=0ATel:=0D=0A=0D=0A +44 (0)121 371 7000=0D= =0A=0D=0AEmail:=0D=0A=0D=0A Robert.Flintham@uhb.nhs.uk=0D=0A=0D=0AWeb:=0D=0A=0D= =0A http://www.uhb.nhs.uk=0D=0A=0D=0A=0D=0AWe're bringing the world's most = advanced cancer treatments to Birmingham.=0D=0AFind out more at www.qecance= rappeal.org or text QEHB01 =A35 to 70070 to = donate =A35 to our appeal.=0D=0A=0D=0ARRPPS=0D=0AMedical Physics - Universi= ty Hospitals Birmingham NHS Foundation Trust=0D=0A63 Melchett Road, Kings N= orton,=0D=0ABirmingham, B30 3HP=0D=0A=0D=0A[cid:image001.gif@01CE24B3.0686D= A50]=0D=0ADISCLAIMER:=0D=0AThis email and any attachments hereto contains p= roprietary information, some or all of which may be confidential or legally= privileged. It is for the exclusive use of the intended recipient(s) only.= If an addressing or transmission error has misdirected this e-mail and you= are not the intended recipient(s), please notify the author by replying to= this e-mail. If you are not the intended recipient you must not use, discl= ose, distribute, copy, print, or rely on this e-mail or any attachments, as= this may be unlawful.=0D=0A --_000_DFBB66D7CAE80545A91347000FC76D5E022E672B9CBOURNExuhbnhs_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable