Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 906967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:28:25+00:00 2026-05-15T16:28:25+00:00

Whilst writing working my way through a list of scripts I need to write

  • 0

Whilst writing working my way through a list of scripts I need to write I started using the MySQLdb package. This all worked fine in my Terminal by doing a simple python at the command line then import MySQLdb. However after about 30 minutes I figured I better move this to Eclipse incase I start making some stupid mistakes… Eclipse for some reason cannot see MySQLdb:

Unresolved import: MySQLdb  
MySQLdb Found at:

I then proceeded to scratch my head and go back to the terminal to see if it works… and low and behold:

Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3c1-py2.6-linux-i686.egg/MySQLdb/__init__.py", line 19, in <module>

  File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3c1-py2.6-linux-i686.egg/_mysql.py", line 7, in <module>
  File "/usr/local/lib/python2.6/dist-packages/MySQL_python-1.2.3c1-py2.6-linux-i686.egg/_mysql.py", line 3, in __bootstrap__
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2553, in <module>
    working_set = WorkingSet()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 384, in __init__
    self.add_entry(entry)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 399, in add_entry
for dist in find_distributions(entry, True):
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1647, in find_on_path
    path_item = _normalize_cached(path_item)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1794, in _normalize_cached
_cache[filename] = result = normalize_path(filename)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1788, in normalize_path
return os.path.normcase(os.path.realpath(filename))
  File "/usr/lib/python2.6/posixpath.py", line 364, in realpath
return abspath(filename)
  File "/usr/lib/python2.6/posixpath.py", line 337, in abspath
    path = join(os.getcwd(), path)
OSError: [Errno 2] No such file or directory
>>> 

I am utterly confused as to what I have done. Could someone please point out my stupid mistake and any solutions? I have yet to master all this python installing/egg business. Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T16:28:25+00:00Added an answer on May 15, 2026 at 4:28 pm

    Could this be the answer; your current path does no longer exist: http://bugs.python.org/issue6612 thus os.getcwd () doesn’t work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whilst working on a recent project, I was visited by a customer QA representitive,
Whilst trying to get our app working in Firefox (I'm a big proponent of
Whilst trawling through some old code I came across something similar to the following:
Is there a way to utilise the GCC compiler whilst still being able to
I'm working on an audio encoder cgi script that utilises libmp3lame. I'm writing in
i need some advice and help with a plugin i am writing for Nagios.
Whilst writing a custom webpart for use in Sharepoint 2007 / WSS 3.0 I've
I'm in the process of re-writing some code whilst maintaining the external interface. The
While writing a recent application I accidentally started filling an array before I had
I'm writing this in the forlorn hope that someone has already done something similar.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.