LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2020, 10:12 AM   #1
Moniquejor
Member
 
Registered: Mar 2020
Posts: 31

Rep: Reputation: Disabled
How to add the modules directory to the PYTHONPATH ? (Zenmap, Arch)


Hello

Quote:
[root@archlinux]: ~># zenmap
Could not import the zenmapGUI.App module: 'No module named gtk'.
I checked in these directories:
/usr/local/bin
/usr/lib/python27.zip
/usr/lib/python2.7
/usr/lib/python2.7/plat-linux2
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/lib/python2.7/site-packages
/usr/local/lib/python2.7/site-packages/
If you installed Zenmap in another directory, you may have to add the
modules directory to the PYTHONPATH environment variable.
Thanks for help
 
Old 04-02-2020, 01:07 PM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 3,359

Rep: Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017
Are you up to date? Python2 is getting removed from packages because it is EOL. zenmap has a depend on gobject which depends on python2

Looks like it is here.
https://aur.archlinux.org/packages/zenmap/
https://aur.archlinux.org/cgit/aur.g...BUILD?h=zenmap
 
  


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
LXer: How to change sys.path or PYTHONPATH in Python LXer Syndicated Linux News 0 12-09-2015 05:33 AM
Set pythonpath from script at boot time estratos Linux - Server 1 12-11-2011 03:39 AM
[SOLVED] PYTHONPATH and editing to search for files in a certain directory GallopingGhost Programming 1 08-01-2010 03:21 AM
Ubuntu 9.10 - Error importing python modules - $PYTHONPATH? km0r3 Linux - Software 4 12-06-2009 10:18 PM
no ~.bashrc ~.bash_profile. Pythonpath always bringing errors when using compiz, etc. Romanus81 Slackware 3 05-22-2008 11:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:27 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