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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "[CLOSED] General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
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.
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 defaultsNow, 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 withsudo
you also have to uninstall withsudo
. It may be useful to make a backup copy ofuninstall.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
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
Happy holidays,
Rob
View and moderate all "[CLOSED] General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
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.
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