LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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


Closed Thread
  Search this Thread
Old 02-09-2019, 05:49 PM   #1
cliffhanger
Member
 
Registered: Jan 2017
Posts: 60

Rep: Reputation: Disabled
Issue running python program


Hi

I'm running a python script called ALPS which installs packages. It has worked, but now spits this error:


Traceback (most recent call last):
File "/usr/bin/alps", line 295, in <module>
initPackages()
File "/usr/bin/alps", line 156, in initPackages
packageMap[line.split(':')[0]].append(line.split(':')[1].strip())
KeyError: 'twm'

This is obviously linked to python, but can anyone point the way to solving this? Its last use was reinstalling twm.

thanks

Cliff
 
Old 02-09-2019, 09:08 PM   #2
individual
Member
 
Registered: Jul 2018
Posts: 315
Blog Entries: 1

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by cliffhanger View Post
Hi

I'm running a python script called ALPS which installs packages. It has worked, but now spits this error:


Traceback (most recent call last):
File "/usr/bin/alps", line 295, in <module>
initPackages()
File "/usr/bin/alps", line 156, in initPackages
packageMap[line.split(':')[0]].append(line.split(':')[1].strip())
KeyError: 'twm'

This is obviously linked to python, but can anyone point the way to solving this? Its last use was reinstalling twm.

thanks

Cliff
It looks like you have another thread about this problem. Anyway, do you have a link to this program? It is hard to say what the problem is exactly without looking the full program. Obviously it doesn't contain "twm" in its dictionary (Python's version of a hash map). The question is, how does it load the package map?
EDIT: For other readers, here is the source code for alps (AryaLinux Packaging System).

Last edited by individual; 02-09-2019 at 09:16 PM.
 
  


Closed Thread



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
I got error while installing python-tk python-psycopg2 python-twisted saili kadam Linux - Newbie 1 09-05-2015 03:03 AM
[SOLVED] Running a 'python' program on 'Windows" Dafydd Linux - General 4 09-30-2013 08:22 PM
[SOLVED] Python TypeError when calling Python program from a Bash script noppeli Programming 2 01-15-2013 08:06 AM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
Python program not running from cron spiri Linux - Software 7 03-09-2006 02:02 AM

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

All times are GMT -5. The time now is 01:15 AM.

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