jpivarski / pyminuit

Automatically exported from code.google.com/p/pyminuit
GNU General Public License v2.0
14 stars 3 forks source link

Calling Pyminuit inside a script #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  Run a Python script (OK)
with 2. Import minuit (OK)
and 3.execute any minuit command (e.g. minuit.Minuit(something)) 

What is the expected output? What do you see instead?
Expected: No errors.
What Happens: "AttributeError: 'module' object has no attribute 'Minuit'"

What version of the product are you using? On what operating system?

Pyminuit 1.1.1 on Mac OS 10.5.8

Please provide any additional information below.

Pyminuit works flawlessly in the Python prompt, but I cannot get it working 
inside a Python 
script. I seems the module minuit is imported without errors, but when I try to 
use  
minuit.Minuit() this error happens...

Is there any reason why Pyminuit can not me used inside a script? Perhaps I 
messed up 
something during the installation and it only works on a Python prompt?

Thanks,

John 

Original issue reported on code.google.com by jpphd...@gmail.com on 27 Aug 2009 at 4:36

GoogleCodeExporter commented 9 years ago
There is no intended or expected restriction to the command-line.

I just tested it on Linux (2.6.24-24-generic, Ubuntu Hardy Heron distribution) 
and
have no trouble running something in a script.

Could someone else with a Mac please verify?
Thanks,
-- Jim

Original comment by jpivar...@gmail.com on 27 Aug 2009 at 6:03

GoogleCodeExporter commented 9 years ago
I recompiled again and now everything is working OK.

Original comment by jpphd...@gmail.com on 30 Aug 2009 at 5:13

GoogleCodeExporter commented 9 years ago
Okay, thanks for letting me know!

Original comment by jpivar...@gmail.com on 30 Aug 2009 at 8:53