473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

DISLIN 9.3 starting issues

*** I thought I posted this subject 45 min ago but it does not show so
something went wrong and it does not show up. Excuse me if I repeat
myself ***

DISLIN 9.3 old manual problems

I just installed DISLIN 9.3 for python (DISPY is installed too) and I
am up to:

1.4 Quickplots
Some quickplots are added to the DISLIN module which are collections
of DISLIN routines for displaying data with one command. For example,
the function ’plot’ displays two-dimensional curves.

Example:
from Numeric import *
from dislin import *
x = arange (100, typecode=Float32)
plot (x, sin (x/5))
disfin ()
I built the following little program:

from numpy import *
from dislin import *

def main():
x = arange (100, typecode=Float32)
plot (x, sin (x/5))
disfin ()

main()

*** Here are the problems:

1. The "from Numeric import" statement did not work, I replaced with
"from numpy import*" and no complains form the interpreter.

2. If I enyter "from dislin import *" I get:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from dislin import *
ImportError: No module named dislin
>>>
I checked the environmental variables paths and it all seems Ok:
c:\dislin
SYSTEM PATH = %SystemRoot%\system32;%SystemRoot%;\System32;\Wbem ;C:
\Archivos de programa;\QuickTime;\QTSystem;C:\dislin\win
PYTHON PATH = C:\Archivos de programa\ArcGIS\bin;c:\dislin\python

WHAT ELSE TO DO?

any help will be much apreciated
Jun 27 '08 #1
3 2516
adolfo wrote:
I built the following little program:

from numpy import *
from dislin import *

def main():
x = arange (100, typecode=Float32)
plot (x, sin (x/5))
disfin ()

main()

*** Here are the problems:

1. The "from Numeric import" statement did not work, I replaced with
"from numpy import*" and no complains form the interpreter.

2. If I enyter "from dislin import *" I get:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from dislin import *
ImportError: No module named dislin

I checked the environmental variables paths and it all seems Ok:
c:\dislin
SYSTEM PATH = %SystemRoot%\system32;%SystemRoot%;\System32;\Wbem ;C:
\Archivos de programa;\QuickTime;\QTSystem;C:\dislin\win
PYTHON PATH = C:\Archivos de programa\ArcGIS\bin;c:\dislin\python
the environment variable is PYTHONPATH and i has to contain the directory
where the dislin.pyd module can be found;
you should set environment variable DISLIN too
(see python.inf, which you can find in the dislin-distribution)

depending on your python version (2.4 or 2.5) you need the correct
dislin-distribution, because dislin is a fortran/c library with
a layer for python access.

and try some examples of the distribution (they are importing only dislin
and math modules).

hth

Herbert
Jun 27 '08 #2
On May 7, 2:03 am, Weinhandl Herbert <weinh...@unileoben.ac.atwrote:
adolfo wrote:
I built the following little program:
from numpy import *
fromdislinimport *
def main():
x = arange (100, typecode=Float32)
plot (x, sin (x/5))
disfin ()
main()
*** Here are the problems:
1. The "from Numeric import" statement did not work, I replaced with
"from numpy import*" and no complains form the interpreter.
2. If I enyter "fromdislinimport *" I get:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
fromdislinimport *
ImportError: No module nameddislin
I checked the environmental variables paths and it all seems Ok:
c:\dislin
SYSTEM PATH = %SystemRoot%\system32;%SystemRoot%;\System32;\Wbem ;C:
\Archivos de programa;\QuickTime;\QTSystem;C:\dislin\win
PYTHON PATH = C:\Archivos de programa\ArcGIS\bin;c:\dislin\python

the environment variable is PYTHONPATH and i has to contain the directory
where thedislin.pyd module can be found;
** Thank you for the comments:
1- The strange thing is that I went to the dislin directory in the C:
drive and there was no disli.pyd file anywhere. I found the file in
the My Documents subdirectory where I had originally unzipped the
dislin archived files I downloaded and from where I run the setup.
you should set environment variableDISLINtoo
(see python.inf, which you can find in thedislin-distribution)
2 - Well I have followed the DISLIN 9.3 inf file for Python 2.5.2 for
Windows. It contains commands for a unix command line "unzip -o
dl_93_py.zip setup first and then... " and then:

" Windows 98/ME

Add the following commands to the autoexec.bat file

PATH=c:\dislin\win;%PATH%
SET DISLIN=c:\dislin
SET PYTHONPATH=c:\dislin\python

Windows NT/2000/XP/Vista

The environment variables can be set or modified with the
Control Panel
(see -Control Panel -System -Advanced -Environment
Variables)."

*** I have followed all these directions but DISLIN still does not
shop up as a module when making the Python calls.

It keeps me entertained in spite that my productivity is cero ;-)

Adolfo
>
depending on your python version (2.4 or 2.5) you need the correctdislin-distribution, becausedislinis a fortran/c library with
a layer for python access.

and try some examples of the distribution (they are importing onlydislin
and math modules).

hth

Herbert
Jun 27 '08 #3
On 8 Mai, 02:55, adolfo <aguirre.ado...@gmail.comwrote:
...
1- The strange thing is that I went to thedislindirectory in the C:
drive and there was no disli.pyd file anywhere. I found the file in
the My Documents subdirectory where I had originally unzipped thedislinarchived files I downloaded and from where I run the setup.
The name of the Dislin module for Python 2.5 is dislin.pyd, not
disli.pyd. It's
copied by the setup program to the directory c:\dislin\python if you
have choosed
the default installation directory c:\dislin.
you should set environment variableDISLINtoo
(see python.inf, which you can find in thedislin-distribution)

2 - Well I have followed theDISLIN9.3 inf file for Python 2.5.2 for
Windows. It contains commands for a unix command line "unzip -o
dl_93_py.zip setup first and then... " and then:

" Windows 98/ME

Add the following commands to the autoexec.bat file

PATH=c:\dislin\win;%PATH%
SETDISLIN=c:\dislin
SET PYTHONPATH=c:\dislin\python

Windows NT/2000/XP/Vista

The environment variables can be set or modified with the
Control Panel
(see -Control Panel -System -Advanced -Environment
Variables)."

*** I have followed all these directions butDISLINstill does not
shop up as a module when making the Python calls.
The environment variable for Python is PYTHONPATH without any blanks.
You can check
the variable with the command 'echo %PYTHONPATH%' at a command prompt.
Regards,

Helmut
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gaubitzer Erwin | last post by:
Hi everybody I want to recompile the DISLIN graphics module for Python under Linux, because I think it is one of the best graphics libraries at present. The included module was for version 2.0...
1
by: Karin Lagesen | last post by:
I have a lot of data that I am going to plot and put on a web server. Since there is a lot of it, I was planning to script it all using python. I have looked around and it seems to me that dislin...
2
by: Tom Richardson | last post by:
If anyone has any experience using the graphics package DISLIN with Python, I'd appreciate some help. I am trying to use the function tifmod to change the resolution of a tif graphics file....
5
by: eesun | last post by:
Hi, I've downloaded the dislin package for the scientific plotting. And I have already created the application window with Tkinter (menu, canvas, status bar..). I want to integrate the Dislin...
6
by: Richard | last post by:
I am going to need to plot some data and formula results from Python. A few years ago I used gnuplot (not from Python) and was wondering which Python plotting module I should use (learn)? I...
1
by: pwhbeck | last post by:
Linux SUSE 10.1 Python 2.5 Dislin 9.1 Download dislin 9.1, change to directory dislin-9.1/python Change make_py to: elif test $1 = lnx ; then CC="gcc -fPIC -c -O" ...
3
by: luis | last post by:
Hello! I have an unespectedn result with dislin titlin dislin.metafl ('WMF') dislin.disini () ..... a="Andrés or Ramón" dislin.titlin (a.encode("Latin-1"), 1)
1
by: adolfo | last post by:
I am at the very beginning of the DISLIN 9.3 Manual: 1.4 Quickplots Some quickplots are added to the DISLIN module which are collections of DISLIN routines for displaying data with one command....
0
by: Helmut Michels | last post by:
Dear C/C++ programmers, I am pleased to announce version 9.4 of the data plotting software DISLIN. DISLIN is a high-level and easy to use plotting library for displaying data as curves, bar...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.