LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-22-2016, 03:08 PM   #1
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 344

Rep: Reputation: Disabled
PC-Basic not starting after installation


I have Linux Mint Cinnamon 17.3.

I downloaded PC-Basic from its GitHub page, and followed the instructions at the PC-Basic website to install it.

When I click on PC-Basic in the program menu, nothing happens. When I open the terminal and type "pcbasic" I get this 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'

Please could someone give me step-by-step instructions about how to fix this.

Thanks.
 
Old 12-22-2016, 03:13 PM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,075

Rep: Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725
Can you please provide a link to the PC-Basic that you downloaded, and a link to the the instructions you followed?
 
Old 12-22-2016, 03:21 PM   #3
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 344

Original Poster
Rep: Reputation: Disabled
Sorry, was not GitHub but SourceForge:

https://sourceforge.net/projects/pcbasic/

The installation instructions from:

https://robhagemans.github.io/pcbasic/doc/#installation

I had extracted the contents of the .tgz file to a folder that was quite deep in the user's filesystem and had to do several cds to get there. I do not know if that makes any difference.

Thanks.
 
Old 12-24-2016, 08:58 AM   #4
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 344

Original Poster
Rep: Reputation: Disabled
I would greatly appreciate any help with this, as I urgently need to use some legacy software for my work.

Thanks.
 
Old 12-24-2016, 03:02 PM   #5
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
No help but it installed fine and runs on my Debian Sid box.
Code:
$ tar -xvf pcbasic-15.08.11
$ cd pcbasic-15.08.11

# ./install.sh
cat: data/VERSION: No such file or directory
INSTALLATION SCRIPT

In what directory would you like to install PC-BASIC (default: /opt/pcbasic/) ? 
APT package manager found

SUMMARY OF WHAT WILL BE DONE:
I will install PC-BASIC to directory /opt/pcbasic/
I will create a symbolic link /usr/bin/pcbasic
I will create a symbolic link /usr/share/man/man1/pcbasic.1.gz
I will create a desktop menu entry /usr/share/applications/pcbasic.desktop
I will create an icon /usr/share/icons/pcbasic.png
I will create an uninstall script /opt/pcbasic//uninstall.sh
I will install the packages python2.7 python-xdg python-pygame python-numpy python-serial python-parallel python-pexpect xsel

Start installation [y/N] ? y
Installing APT packages python2.7 python-xdg python-pygame python-numpy python-serial python-parallel python-pexpect xsel ...
Reading package lists... Done  
. . .
# compiled py files in build/pcbasic
. . .
Copying program files ... 
Creating symlinks ... 
Creating menu entry ... 
Creating icon ... 
Creating uninstaller ... 

Checking dependencies ... 
checking Python module xdg ... installed
checking Python module pygame ... installed
checking Python module numpy ... installed
checking Python module serial ... installed
checking Python module parallel ... installed
checking Python module pexpect ... installed

INSTALLATION COMPLETED.
EDIT: Does it run if you do the following:
Code:
$ export PYTHONPATH=$PYTHONPATH:/opt/pcbasic/
$ pcbasic

Last edited by norobro; 12-24-2016 at 03:37 PM.
 
Old 12-31-2016, 06:08 PM   #6
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 344

Original Poster
Rep: Reputation: Disabled
Sorry, no it does not.

Please could someone tell me how to uninstall it.

Thanks.
 
Old 01-23-2017, 05:50 AM   #7
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 344

Original Poster
Rep: Reputation: Disabled
It has not installed properly as apart from being dead there is no means to uninstall it. Can anyone tell me how to uninstall it manually? What files do I need to delete, for example? Where would I find them? Does Linux have any equivalent to the Window's registry that will need to be altered? Is there any automatic way of doing the above please?

Thanks.
 
Old 01-23-2017, 06:57 AM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
Someone posted a similar request here: https://sourceforge.net/p/pcbasic/di...ac44/?limit=25 and received a useful reply.

Unfortunately, it appears as if the original poster didn't get back to say whether the suggestions worked or not.
 
Old 01-23-2017, 09:37 AM   #9
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 20.1 MATE, MX-19.3, antiX, EndeavourOS
Posts: 3,332
Blog Entries: 17

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
grumpyskeptic,

If hydrurga's suggestion does not work, then you could always send a message to Rob Hagemans:
https://sourceforge.net/u/robhagemans/profile/
 
Old 01-23-2017, 01:06 PM   #10
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
First, navigate to /opt/pcbasic and see if a file named uninstall.sh exists. If so, execute it.

If that doesn't work try deleting the files listed as installed in post #5.
Quote:
delete all the files in /opt/pcbasic/
delete the symbolic link /usr/bin/pcbasic
delete the symbolic link /usr/share/man/man1/pcbasic.1.gz
delete /usr/share/applications/pcbasic.desktop
delete /usr/share/icons/pcbasic.png
As far as the packages go, only python2.7 python-xdg python-numpy xsel are installed on my machine. The others are relatively small so I would just leave them installed in case another app is using them.
 
Old 03-08-2017, 04:55 AM   #11
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 344

Original Poster
Rep: Reputation: Disabled
I found that when I right clicked on PC-Basic in the desktop Menu, then the choices I was offered included uninstalling it. The computer said words to the effect that it was only removing the menu entry.

How can I search from the root of the file system to find if there are any remnants of PC Basic left behind that I can delete manually? My default file manager Nemo does not give access to the root in any obvious way.

And in Linux, where are the programs kept?

When I type "pcbasic" into the terminal I still get the responce:

"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'"

So there is still something lurking in there.

Thanks.

Last edited by grumpyskeptic; 03-08-2017 at 05:00 AM.
 
Old 03-08-2017, 05:11 AM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
Run whereis pcbasic on the command line - this finds the binary, source and manual files for a command.

You answered your own question abut where Linux keeps the pclinux executable in the output you provided: /usr/bin/.

Caution urged, naturally, but if you want to run Nemo as root, just use gksudo nemo on the command line (kdesudo nemo if using KDE). Or, to delete files owned by root, issue sudo rm commands.

Did you download pcbasic as a .deb package? If so, you can look in that package and determine exactly which files pcbasic added to the system by opening it with a package manager and examining all folders except the one named DEBIAN.
 
Old 03-08-2017, 05:22 AM   #13
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
Quote:
Originally Posted by hydrurga View Post
Someone posted a similar request here: https://sourceforge.net/p/pcbasic/di...ac44/?limit=25 and received a useful reply.

Unfortunately, it appears as if the original poster didn't get back to say whether the suggestions worked or not.
Grumpyskeptic, I've quoted the above post because if I'm not mistaken it was you who posted it on another forum at the time you experienced the problem. No less than the package's creator, Rob Hagemans, got back to you to tell you exactly how to uninstall the package. You didn't even acknowledge his reply. What gives?

Given that information, if I were you, you should reinstall pcbasic and then run the uninstall script that Rob mentioned. That would be the proper way of uninstalling all the files that pcbasic installs.

Last edited by hydrurga; 03-08-2017 at 05:24 AM.
 
1 members found this post helpful.
Old 03-08-2017, 09:36 AM   #14
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,233
Blog Entries: 4

Rep: Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260Reputation: 3260
Code:
10 PRINT "It's all coming back to me now ..."
20 GOTO 10
30 END
RUN
"Bug for bug compatible ..." Luv it.
 
Old 03-09-2017, 07:02 AM   #15
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 344

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Grumpyskeptic, I've quoted the above post because if I'm not mistaken it was you who posted it on another forum at the time you experienced the problem. No less than the package's creator, Rob Hagemans, got back to you to tell you exactly how to uninstall the package. You didn't even acknowledge his reply. What gives?

Given that information, if I were you, you should reinstall pcbasic and then run the uninstall script that Rob mentioned. That would be the proper way of uninstalling all the files that pcbasic installs.
Sorry I had forgotten about that, and I had forgotten about it because it was meaningless to a beginner, especially three months ago. I still don't understand it.

I have however found that clicking on "file system" in Nemo brings you to what may be the "root". I have from there searched through the whole disk for "pcbasic" and only found three small files of only many bytes in size which Nemo does not offer the option of deleting. At a guess, maybe I should type "sudo nemo" in the terminal.

I did not find any folder for pcbasic. Perhaps it is hidden.

One of the small files is a link, the contents of which says:

#!/usr/bin/env python2
import pcbasic
pcbasic.main()

I do not intend to click on it.

I also searched using Nemo the whole disk, from the File system as above, for uninstall.sh and found nothing at all.

As suggested I have typed

cd /opt/pcbasic

in the terminal, and just get a message saying no such thing.

So my current best guess is that there are only three very small files connected with pcbasic on my computer, unless there is more hidden away. How do I delete them?

Edit: I tried typing "sudo nemo" in the terminal, and it did allow me to find a pcbasic folder and lots of files. After several false starts I found that I had to click on uninstall.sh and choose the option of running it in the terminal. It has now uninstalled and when I type pcbasic in the terminal, it says no such file exists. So I appear to have got rid of it.

There is still now an empty folder called "opt" on my disk - will Linux eventually delete this or should I do it?

I am wary of trying to install pcbasic again as I will presumably just get the same result as last time.

Last edited by grumpyskeptic; 03-09-2017 at 08:04 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL6 Installation with basic video driver, things to be verified after installation. brittocj Linux - Laptop and Netbook 3 08-31-2011 03:40 PM
Personalized Installation starting with minimal installation doraimom Debian 2 09-16-2007 12:14 AM
basic installation human Linux - Newbie 5 10-05-2004 05:06 PM
Help with a basic Samba installation phourmouzis Linux - Networking 1 04-03-2003 04:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration