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

OSX: The main python script fails, although specific components work #44

Open
mj-xmr opened this issue May 26, 2022 · 0 comments
Open
Labels
good first issue Good for newcomers

Comments

@mj-xmr
Copy link
Owner

mj-xmr commented May 26, 2022

In the main directory there's a symlink soloptxmr.py, that points to src/prod.py. The script calls a few Python modules, ultimately to call the opti executable in the build/default-static-release/bin/ directory by default.

Even though calling the individual components that constitute the src/prod.py goes fine, the script hangs the GitHub CI machines. See the workaround in util/ci.sh:

python3 src/tests.py
# Now test unpickling:
python3 src/tests.py

./ci-default -o "VERBOSE_FUNCTIONS=OFF" # <-- it might be helpful to set it to ON

echo "Testing the entire production chain:"
if [ "$(uname)" == "Linux" ]; then
        python3 src/prod.py
else
        # TODO: Mac OSX suffers from an endless loop (?) in prod.py
        #python3 src/prod.py
        cd build/default-static-release/bin/
        ./opti
fi

A good approach would be to run the script in Python's debug mode and pause the execution to see where it hung.

It can be done either by a Mac owner or by somebody (like me) through renting an OSX terminal from a service like https://www.vpsserver.com .

@mj-xmr mj-xmr added help wanted Extra attention is needed good first issue Good for newcomers labels May 26, 2022
@mj-xmr mj-xmr removed the help wanted Extra attention is needed label Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant