BAD CPU type executable

195 views
Skip to first unread message

巫佳樺 WU, CHIA-HUA E64992019

unread,
Nov 17, 2021, 12:18:18 AM11/17/21
to Biogeme
Hi everyone,

I'm not sure why my Mac can't execute Biogeme.
It keep pop up:   zsh: bad CPU type in executable.
Thanks for the reply!!

巫佳樺 WU, CHIA-HUA E64992019

unread,
Nov 17, 2021, 12:18:28 AM11/17/21
to Biogeme
Hello everyone,

Can someone help me with executing Biogeme on Mac.
I tried to adjust my computer with APPLE support, but i still can't execute the program.
It said zsh: bad CPU type in executable

Thanks for the reply!!

Bierlaire Michel

unread,
Nov 17, 2021, 12:20:23 AM11/17/21
to e649...@gs.ncku.edu.tw, Bierlaire Michel, Biogeme
Biogeme has been precompiled on a Mac Book Pro with an Intel processor. You may have another processor. 

Did you use “pip”? 

Try to install it from the source code from GitHub. See http://biogeme.epfl.ch/install.html

--
You received this message because you are subscribed to the Google Groups "Biogeme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to biogeme+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/biogeme/cb8cb87b-5777-4969-977c-f1151fc0569dn%40googlegroups.com.

Bart Jourquin

unread,
Nov 17, 2021, 2:54:56 AM11/17/21
to e649...@gs.ncku.edu.tw, Biogeme
Hi,

Are you running a recent Mac with a M1 CPU ?

Bart

--
You received this message because you are subscribed to the Google Groups "Biogeme" group.
To unsubscribe from this group and stop receiving emails from it, send an email to biogeme+u...@googlegroups.com.

Bierlaire Michel

unread,
Nov 18, 2021, 12:51:00 AM11/18/21
to JoeyWu, Bierlaire Michel, Biogeme, Bart Jourquin
Biogeme 1.8 is obsolete and not maintained anymore. 
I suggest to upgrade to the latest version, which is 3.2.8 http://biogeme.epfl.ch

On 17 Nov 2021, at 19:47, Bart Jourquin <bart.j...@uclouvain.be> wrote:

Biogeme 1.8 is a pre-Python version, which comes as a set of precompiled 32 bits binaries, which cannot be run anymore on a Mac since MacOS Catalina. 

See https://www.pcmag.com/how-to/how-to-run-32-bit-apps-in-macos-catalina for a possible solution. Note that VMWare fusion can now be used for free. An alternative is to run Windows version of Biogeme 1.8 in a Windows virtual machine installed with VMWare fusion or VirtualBox.

You can also install this version of Wineskin : https://github.com/Gcenx/WineskinServer. Watch https://www.youtube.com/watch?v=0X4IJPFB9dg for an example. I gave it a quick try and I succeeded in running Biogeme 1.8 for Windows on my iMac with Monterey :-) See screenshot.

But are you sure you cannot use Pandas Biogeme ?

Bart




<Capture d’écran 2021-11-17 à 16.45.13.png>
  


Le 17 nov. 2021 à 12:08, Bart Jourquin <bart.j...@uclouvain.be> a écrit :

Biogeme 1.8 ? This is really an old one :-(

Current version is Pandas Biogeme 3.2.8 I think… You need Python 3.x

Bart

Le 17 nov. 2021 à 11:59, JoeyWu <e649...@gs.ncku.edu.tw> a écrit :

Hi Bart,

My computer is updated to Monterey, and I used zsh as default shell. I downloaded  version 1.8 of Biogeme. Because my tutor asked us to do so. Maybe I should try to download the newer version of Biogeme.
Thank you so much for your reply😊😊

Kind regards,
Joey

On Wed, 17 Nov 2021 at 7:07 pm, Bart Jourquin <bart.j...@uclouvain.be> wrote:
Which version of MacOS are you running ?

I only see 2 reasons that could explain the error :

1) You still have a 32-bit version of Python and/or Biogeme. This could be the case if you upgraded your computer to Catalina, BigSur or Monterey. The latest versions only support 64 bit executables.
2) You have an M1 CPU (which doesn’t seem to be the case). In this case, you may need to install rosetta, the Intel emulator for M1. 

Some Python users also report that Python sometimes stuck if zsh is not the default shell ; https://discussions.apple.com/thread/250777998


Le 17 nov. 2021 à 08:41, JoeyWu <e649...@gs.ncku.edu.tw> a écrit :

Hi Bart and Bierlaire,

My processor is dual core Intel core i5
Should I download from Github?
Thank you:)

kind regards,
Joey
Reply all
Reply to author
Forward
0 new messages