[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] Problem with imported Python module.
From: |
stormen |
Subject: |
Re: [Bug-gnubg] Problem with imported Python module. |
Date: |
Fri, 16 Apr 2010 13:42:19 -0700 (PDT) |
No problem, I should have specified that. Yes, the different python scripts
related to gnubg are in /usr/local/share/gnubg. This is my first Python
coding, so maybe I am missing something fundamental regarding Python and
imports. I wasnt able to find much useful info googling on embedded Python
and imports.
Michael Petch wrote:
>
> Oh I thought you were on windows. My apologies. Where (directory) have
> you placed your Gnubg Python modules on your Linux box? I seem to
> recall putting mine in /usr/local/share/gnubg/scripts but that was a
> while back.
>
> On 16-Apr-10, at 1:45 PM, stormen wrote:
>
>>
>> I seem not to have a pythonlib subdir (?!) I am on a linux box and
>> have
>> installed from a repo.
>>
>>
>>
>> Michael Petch wrote:
>>>
>>> Are your Python modules inside of the pythonlib subdirectory within
>>> the Gnubg install folder?
>>>
>>>
>>> On 16-Apr-10, at 12:58 PM, Bob Harley wrote:
>>>
>>>> Hi,
>>>>
>>>> I am working on a couple of functions that I want to add to my
>>>> gnubg.py and am using some imports. When I start my python
>>>> interpreter my import statement works fine, but adding the same
>>>> import statement to gnubg.py or using it after having dropped to
>>>> python using ">" when running GnuBG I get an import error:
>>>> "ImportError: No module named MyModule", where MyModule is a module
>>>> that is installed and wich I can Import when just running ">python"
>>>> in a console.
>>>>
>>>> Suggestions ?
>>>>
>>>> Storm
>>>>
>>>>
>>>> _______________________________________________
>>>> Bug-gnubg mailing list
>>>> address@hidden
>>>> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>>>
>>>
>>>
>>> _______________________________________________
>>> Bug-gnubg mailing list
>>> address@hidden
>>> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Problem-with-imported-Python-module.-tp28270647p28271089.html
>> Sent from the Gnu - Backgammon mailing list archive at Nabble.com.
>>
>>
>>
>> _______________________________________________
>> Bug-gnubg mailing list
>> address@hidden
>> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>>
>
>
>
> _______________________________________________
> Bug-gnubg mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-gnubg
>
>
--
View this message in context:
http://old.nabble.com/Problem-with-imported-Python-module.-tp28270647p28271565.html
Sent from the Gnu - Backgammon mailing list archive at Nabble.com.