Menu

Will not start after installation

Anonymous
2016-12-24
2016-12-25
  • Anonymous

    Anonymous - 2016-12-24

    I have installed PC-Basic on my Linux Mint Cinnamon 17.3 computer, but unfortunately it will not start. When I click on its entry in the programs menu, nothing happens. When I open the terminal and type in pcbasic I only get this error message:

    "Traceback (most recent call last):
    File "/usr/bin/pcbasic", line 2, in <module>
    import pcbasic
    File "/opt/pcbasic/pcbasic.py", line 3, in <module>
    pcbasic.main()
    AttributeError: 'module' object has no attribute 'main'".

    The folder I unpacked the archive file into is quite deep in my file system, I don't know if that makes any difference.

    Please could someonme tell me how to fix this? I am only a beginning Linux user, I have no idea what the error message means.

    It would also be useful to know how to uninstal it, so that I could try unpacking it again in another folder.

    Thanks.

     
  • Rob Hagemans

    Rob Hagemans - 2016-12-25

    Hi, thanks for reporting this issue!

    Based on the output, I'm making the following assumptions - let me know if this is incorrect:
    - you've installed pcbasic-15.08.11
    - you've used sudo install.sh to install and accepted the defaults

    Now, I can't reproduce this issue locally (Ubuntu 15.04) - after using the default install script it works correctly. However, if I remove or rename /opt/pcbasic/pcbasic, I get the same error that you see. So perhaps something went wrong during the install.

    It may be useful to uninstall and try again; there is an uninstall script in /opt/pcbasic/uninstall.sh that should do this automatically. Note that if you installed with sudo you also have to uninstall with sudo. It may be useful to make a backup copy of uninstall.sh to your home directory or somewhere else you can find it; it constains a list of all installed PC-BASIC files.

    If you feel like experimenting a bit before uninstalling, try

    cd /opt/pcbasic
    ./pcbasic.py
    

    Does that work or do you get an error? If the latter, is it the same error as before?

    Hope this works; if you continue to have this issue or if something else goes wrong, please post the commands you use for the (un)install and the console output here; it will help debugging this issue.

    Alternatively, instead of using the install script, it's usually also possible to run pcbasic directly from the location where you unpacked it. Just go to that location, then run

    ./.pcbasic.py
    

    Happy holidays,
    Rob

     
  • Anonymous

    Anonymous - 2017-03-19

    Hi, as a beginner it took me anlother three months of experience in using Linux to guess what the unstated steps were, but I have now followed your suggestions and it appears to have been disinstalled now.

    Thanks.

     
  • Rob Hagemans

    Rob Hagemans - 2017-03-19

    Hi, great that the issue was resolved. Could you let me know what the "unstated steps" were that you are referring to? As far as I can see the documentation provided with PC-BASIC is pretty exhaustive, but nothing is more difficult or time-consuming than writing things to be as simple as possible, so I may have missed something. If you let me know what it is I can update the documentation so others can benefit from your experience.

    thanks
    Rob

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.