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

  • Home
  • SEARCH
  • 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 6182121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:08:50+00:00 2026-05-24T01:08:50+00:00

I encountered and solved this problem earlier this day and now I run into

  • 0

I encountered and solved this problem earlier this day and now I run into something similar but in another context.

When I fire up python (2.7) in my mac Terminal (Mac OS Lion) and do

import oursql

everything is fine.

When I do the same within a python script in the Aptana IDE I get the following error.

    Traceback (most recent call last):
  File "/Users/salah/Documents/Aptana Studio 3 Workspace/pubmap/src/scripts/parse_all_dblp_authors.py", line 10, in <module>
    import oursql
ImportError: dlopen(/Library/Python/2.7/site-packages/oursql.so, 2): Library not loaded: libmysqlclient.18.dylib
  Referenced from: /Library/Python/2.7/site-packages/oursql.so
  Reason: image not found

This is the same error as in the problem above which I used to solve by adding

PATH=${PATH}:/usr/local/mysql/bin
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:/usr/local/mysql/lib/"

to .bashrc and

if [ -f ~/.bashrc ]; then
    source ~/.bashrc
fi

to .bash_profile.

Why does this have no effect on Aptana? By the way Aptana is a derivate of eclipse so everything relevant to eclipse should be relevant to Aptana, too – at least I think so…

Edit:

A suggestion by Peter in his answer below brought me a possible solution. Just set the path right into the interpreter Options of Python in Aptana/Eclipse/Pydev. See the following Screenshot:

Interpreter Settings for Aptana

  • 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-24T01:08:52+00:00Added an answer on May 24, 2026 at 1:08 am

    It’s been a while since I used Pydev, but the Pydev docs on configuring the interpreter are probably worth a look.

    Python IDEs usually let you configure the environment python is run in when you run from the IDE.

    Also, having .bashrc change your $PATH will only change the environment variable for bash sessions. Unless you run Aptana from bash changing your .bashrc won’t change the envirnment variables Aptana gets. See setting-environment-variables-in-os-x.

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

Sidebar

Related Questions

Encountered this problem before but forgot how I solved it. I want to use
This problem is a little similar to that solved by reservoir sampling , but
I have encountered this solution for a problem I tried to solve (uncheck radio
I recently updated from mathematica 7.0 to 8.0, and have now encountered problem with
I've been searching on this for a while now, but I can't find anything
We encountered a problem with using Subversion on Windows. A developer committed a file
I encountered the following ddl in a pl/sql script this morning: create index genuser.idx$$_0bdd0011
I encountered a problem when running some old code that was handed down to
I encountered this term Hindley-Milner , and I'm not sure if grasp what it
I encountered a strange problem today. Whenever i put a breakpoint in one of

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.