AToMPM / atompm

A Tool for Multi-Paradigm Modeling
https://atompm.github.io/
GNU Lesser General Public License v3.0
22 stars 15 forks source link

Issue with executing command "python mt/main.py" on MacOS #164

Closed clyderemp closed 1 year ago

clyderemp commented 1 year ago
Screenshot 2023-02-22 at 4 55 46 PM

I previously had python 3 and downgraded Python 2.7 and still having issues when executing the command.

BentleyJOakes commented 1 year ago

AToMPM is tested only on Python 3 as Python 2.7 is now deprecated.

What steps did you follow from the README file? Specifically, what is the output of: pip3 install six requests python-socketio "python-socketio[client]" websocket-client?

You may also have to run python3 mt/main.py depending on your Python setup.

clyderemp commented 1 year ago
Screenshot 2023-02-25 at 2 10 30 AM Screenshot 2023-02-25 at 2 09 26 AM

These are the outputs when I execute the commands in the README file

clyderemp commented 1 year ago

I believe I've installed all the dependencies mentioned. I'm not too sure what else I'm missing.

BentleyJOakes commented 1 year ago

Could you try re-downloading the AToMPM files please, and then re-trying the installation instructions?

I ask because the error about the No module named 'symbol' was fixed last June by commit https://github.com/AToMPM/atompm/commit/6dc143255e066ef73e820cda5bfdc88c37ad587c. Therefore you have an old version with outdated dependencies and without a few clarifications in the README.

clyderemp commented 1 year ago
Screenshot 2023-02-26 at 1 28 57 PM

I re-downloaded all of the AToMPM files multiple times already. I downloaded it again today and ran the commands as shown in the screenshot. I'm still getting the same errors.

BentleyJOakes commented 1 year ago

Could you please try editing the mt/ptcal/pytcore/rules/lqsrule.py file, and removing the from symbol import try_stmt line? It is not needed anyways.

clyderemp commented 1 year ago
Screenshot 2023-02-26 at 11 35 03 PM

I did what you suggested and I think it seems to be working now. This is the output after removing the specific line you provided.

BentleyJOakes commented 1 year ago

Great! Please let me know if there are any other issues.