Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot pass install process. #52

Open
damiankitai opened this issue Aug 27, 2024 · 7 comments
Open

cannot pass install process. #52

damiankitai opened this issue Aug 27, 2024 · 7 comments

Comments

@damiankitai
Copy link

/Users/student/Downloads/mwa2_demo/run_mwa2.sh
*** Creating Django database for MWA2 ***
dyld[7275]: Library not loaded: '@executable_path/../.Python'
Referenced from: '/Users/student/Downloads/mwa2_demo/bin/python'
Reason: tried: '/Users/student/Downloads/mwa2_demo/bin/../.Python' (no such file), '/usr/local/lib/.Python' (no such file), '/usr/lib/.Python' (no such file)
/Users/student/Downloads/mwa2_demo/run_mwa2.sh: line 28: 7275 Abort trap: 6 bin/python mwa2/manage.py migrate

@gregneagle
Copy link
Contributor

Doesn't sound like you have Python installed. You also don't mention which branch you are working from -- anything other than the py3 branch is very unlikely to work.

@gregneagle
Copy link
Contributor

If you are using the py3 branch, then you'll need to install Xcode. python3 in the virtual environment's bin directory points at Xcode's python:

$ ls -al
total 88
drwxrwxr-x  14 gneagle  wheel   448 Mar  7 09:21 .
drwxrwxr-x   8 gneagle  wheel   256 Mar  7 10:00 ..
-rw-r--r--   1 gneagle  wheel  8834 Mar  7 09:09 Activate.ps1
-rw-r--r--   1 gneagle  wheel  1901 Mar  7 09:09 activate
-rw-r--r--   1 gneagle  wheel   850 Mar  7 09:09 activate.csh
-rw-r--r--   1 gneagle  wheel  1990 Mar  7 09:09 activate.fish
-rwxrwxr-x   1 gneagle  wheel   281 Mar  7 09:21 django-admin
-rwxrwxr-x   1 gneagle  wheel   239 Mar  7 09:09 pip
-rwxrwxr-x   1 gneagle  wheel   239 Mar  7 09:09 pip3
-rwxrwxr-x   1 gneagle  wheel   239 Mar  7 09:09 pip3.9
lrwxrwxr-x   1 gneagle  wheel     7 Mar  7 09:09 python -> python3
lrwxrwxr-x   1 gneagle  wheel    58 Mar  7 09:09 python3 -> /Applications/Xcode.app/Contents/Developer/usr/bin/python3
lrwxrwxr-x   1 gneagle  wheel     7 Mar  7 09:09 python3.9 -> python3
-rwxrwxr-x   1 gneagle  wheel   234 Mar  7 09:21 sqlformat

@damiankitai
Copy link
Author

python (latest: 3.12.5) and xcode (downloaded from the appstore) are installed.
same error.

@gregneagle
Copy link
Contributor

If you look at the symlinks in the virtual env, they are looking for Python 3.9.x.

The Python included with Xcode 15.4 is Python 3.9.6.

$ /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -V
Python 3.9.6

@gregneagle
Copy link
Contributor

And again: it sounds like maybe you are trying to use the Python2 demo zip file, which is unlikely to work at all.

@ziltsh
Copy link

ziltsh commented Sep 25, 2024

I think the mwa2_demo.zip from the py3 branch may be the same as the one from the main branch - as in the URI's mentioned in the README.md are the same.
How can one download the mwa2_demo.zip for and with Python3 ?

@gregneagle
Copy link
Contributor

I don't think anyone has created a mwa2_demo.zip for Python 3. The major obstacle there is that Apple does not include Python 3. A zipped up virtual env has to at least know where the python interpreter is. If Python 3 is installed by the nature of having Xcode, it's in one place. If instead, you installed the command-line dev tools, it's in a different place. If you installed via the Python.org package, it's in a third place. If you installed via Homebrew or Anaconda or MacAdmins Python or...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants