Opened 13 years ago

Closed 9 years ago

Last modified 5 years ago

#15648 closed request (wontfix)

VPython request

Reported by: ralph@… Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: VPython Cc: ltalirz (Leopold Talirz)
Port:

Description

Any chance of a MacPort of VPython?

Attachments (1)

Portfile (1.3 KB) - added by raimue (Rainer Müller) 13 years ago.

Download all attachments as: .zip

Change History (25)

comment:1 Changed 13 years ago by raimue (Rainer Müller)

From the website of VPython:

VPython is a package that includes:

  • the Python programming language
  • the IDLE interactive development environment
  • "Visual", a Python module that offers real-time 3D output, and is easily usable by novice programmers
  • "Numeric", a Python module for fast processing of arrays

So I think this is just a distribution of usual python stuff. We already have python and IDLE (included in the python builds). Not sure if we already have "Visual", but we definitely already have "Numeric" as py*-numeric.

Is something else missing? Maybe we could create a virtual-package which just depends on the other stuff, but I don't think we would gain much from it.

comment:2 Changed 13 years ago by ralph@…

Yes, it is Visual which is missing and is wanted. This makes it easy for beginners to do 3D graphics.

comment:3 Changed 13 years ago by raimue (Rainer Müller)

Owner: changed from macports-tickets@… to raimue@…
Status: newassigned

Changed 13 years ago by raimue (Rainer Müller)

Attachment: Portfile added

comment:4 Changed 13 years ago by raimue (Rainer Müller)

Added a Portfile for this. Dependencies might not be complete yet. It builds, but I don't know Visual and can't verify if it actually works.

It should depend on boost +python25 which is not possible. I don't know know what the best workaround would be.

comment:5 Changed 13 years ago by ralph@…

What is the port called? I can't seem to see it when I look through the available ports, even after a selfupdate.

comment:6 Changed 13 years ago by raimue (Rainer Müller)

I attached the Portfile to this ticket, it is not yet in the tree.

comment:7 Changed 13 years ago by ralph@…

This seems to have stalled. What is preventing it from progressing?

comment:8 Changed 13 years ago by raimue (Rainer Müller)

I was awaiting feedback if the proposed port works for you as expected.

comment:9 Changed 13 years ago by ralph@…

Oh. As I could not say port install ..., I could not try it out. Please give me a pointer (RTFM) how to try it out and I will see if it works. Thanks.

comment:10 Changed 13 years ago by ralph@…

OK, found Section4.6 in http://guide.macports.org/ on how to test portfiles. Trying it now.

comment:11 Changed 13 years ago by ralph@…

I get a build failure concerning gtkglarea, so I could not test this:

---> Extracting gtkglarea ---> Configuring gtkglarea Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_gtkglarea/work/gtkglarea-1.2.3" && ./configure --prefix=/opt/local " returned error 1 Command output: checking whether to build shared libraries... no checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... no -fno-common checking if /usr/bin/g++-4.0 PIC flag -fno-common works... yes checking if /usr/bin/g++-4.0 supports -c -o file.o... yes checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... no checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking dynamic linker characteristics... darwin9.4.0 dyld appending configuration tag "GCJ" to libtool checking if gcj supports -fno-rtti -fno-exceptions... (cached) no checking for gcj option to produce PIC... -fno-common checking if gcj PIC flag -fno-common works... no checking if gcj supports -c -o file.o... no checking whether the gcj linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... no checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... no checking dynamic linker characteristics... darwin9.4.0 dyld checking whether build environment is sane... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for gtk-config... no checking for GTK - version >= 0.99.7... no * The gtk-config script installed by GTK could not be found * If GTK was installed in PREFIX, make sure PREFIX/bin is in * your path, or set the GTK_CONFIG environment variable to the * full path to gtk-config. configure: error: Cannot find proper gtk version

comment:12 Changed 13 years ago by raimue (Rainer Müller)

First, run sudo port sync to have the latest ports tree.

You need to install boost +python25 with sudo port install boost +python25. This will take some time. Then download the Portfile attached to this ticket (Use the 'Original Format' link at the bottom of the preview) and put it in some directory. In Terminal, cd to this directory and run sudo port install.

comment:13 Changed 13 years ago by ralph@…

After installing boost +python25, rather than just boost which your portfile causes to be automatically installed, I still get a failure in building gtkglarea, as described above. It seems like gtkglarea needs to be fixed before we can proceed with this. I've properly formatted the problem this time. (Sorry!)

--->  Configuring gtkglarea
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_gtkglarea/work/gtkglarea-1.2.3" && ./configure --prefix=/opt/local " returned error 1
Command output: checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... no
-fno-common
checking if /usr/bin/g++-4.0 PIC flag -fno-common works... yes
checking if /usr/bin/g++-4.0 supports -c -o file.o... yes
checking whether the /usr/bin/g++-4.0 linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... darwin9.4.0 dyld
appending configuration tag "GCJ" to libtool
checking if gcj supports -fno-rtti -fno-exceptions... (cached) no
checking for gcj option to produce PIC... -fno-common
checking if gcj PIC flag -fno-common works... no
checking if gcj supports -c -o file.o... no
checking whether the gcj linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld) supports shared libraries... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking dynamic linker characteristics... darwin9.4.0 dyld
checking whether build environment is sane... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gtk-config... no
checking for GTK - version >= 0.99.7... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: Cannot find proper gtk version

Error: The following dependencies failed to build: gtkglarea
Error: Status 1 encountered during processing.

comment:14 Changed 13 years ago by ralph@…

OK, the gtkglarea port has now been fixed, and I can install py25-visual using your portfile.

There are now 2 further issues

1 There is a missing dependency

It now appears that py25-tkinter is missing as a dependency.

Try to start idle:

/opt/local/bin/idle2.5 
Traceback (most recent call last):
  File "/opt/local/bin/idle2.5", line 3, in <module>
    from idlelib.PyShell import main
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/idlelib/PyShell.py", line 14, in <module>
    import macosxSupport
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/idlelib/macosxSupport.py", line 6, in <module>
    import Tkinter
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter

I thus manually installed py25-tkinter.

2 A crash occurs after fixing this missing dependency

Start idle:

/opt/local/bin/idle2.5

and when it has launched, type in its window

from visual import *

and hit return.

This caused a crash:

Fatal Python error: Interpreter not initialized (version mismatch?)

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0

Thread 0 Crashed:
0   libSystem.B.dylib             	0x926ccb9e __kill + 10
1   libSystem.B.dylib             	0x92743ec2 raise + 26
2   libSystem.B.dylib             	0x9275347f abort + 73
3   libpython2.5.dylib            	0x01967c43 Py_FatalError + 51
4   libpython2.5.dylib            	0x01963eee Py_InitModule4 + 382
5   libboost_python-mt-1_35.dylib 	0x01723e0b boost::python::detail::init_module(char const*, void (*)()) + 59
6   cvisualmodule.so              	0x0115fd55 initcvisual + 37
7   org.python.python             	0x00251717 _PyImport_LoadDynamicModule + 167
8   org.python.python             	0x0024f233 load_module + 227
9   org.python.python             	0x0024f75d import_submodule + 301
10  org.python.python             	0x0024f9f6 load_next + 262
11  org.python.python             	0x0024fe7f import_module_level + 143
12  org.python.python             	0x002503ae PyImport_ImportModuleLevel + 46
13  org.python.python             	0x0022900f builtin___import__ + 159
14  org.python.python             	0x0019f9f2 PyObject_Call + 50
15  org.python.python             	0x0022e236 PyEval_CallObjectWithKeywords + 118
16  org.python.python             	0x002318b9 PyEval_EvalFrameEx + 9849
17  org.python.python             	0x00236c4a PyEval_EvalCodeEx + 1962
18  org.python.python             	0x00236d57 PyEval_EvalCode + 87
19  org.python.python             	0x0024e58c PyImport_ExecCodeModuleEx + 188
20  org.python.python             	0x0024ea13 load_source_module + 739
21  org.python.python             	0x0024f75d import_submodule + 301
22  org.python.python             	0x0024f9bf load_next + 207
23  org.python.python             	0x0024fe7f import_module_level + 143
24  org.python.python             	0x002503ae PyImport_ImportModuleLevel + 46
25  org.python.python             	0x0022900f builtin___import__ + 159
26  org.python.python             	0x0019f9f2 PyObject_Call + 50
27  org.python.python             	0x0022e236 PyEval_CallObjectWithKeywords + 118
28  org.python.python             	0x002318b9 PyEval_EvalFrameEx + 9849
29  org.python.python             	0x00236c4a PyEval_EvalCodeEx + 1962
30  org.python.python             	0x00236d57 PyEval_EvalCode + 87
31  org.python.python             	0x0024e58c PyImport_ExecCodeModuleEx + 188
32  org.python.python             	0x0024ea13 load_source_module + 739
33  org.python.python             	0x0024f594 load_package + 468
34  org.python.python             	0x0024f75d import_submodule + 301
35  org.python.python             	0x0024f9bf load_next + 207
36  org.python.python             	0x0024fe7f import_module_level + 143
37  org.python.python             	0x002503ae PyImport_ImportModuleLevel + 46
38  org.python.python             	0x0022900f builtin___import__ + 159
39  org.python.python             	0x0019f9f2 PyObject_Call + 50
40  org.python.python             	0x0022e236 PyEval_CallObjectWithKeywords + 118
41  org.python.python             	0x002318b9 PyEval_EvalFrameEx + 9849
42  org.python.python             	0x00236c4a PyEval_EvalCodeEx + 1962
43  org.python.python             	0x00234c83 PyEval_EvalFrameEx + 23107
44  org.python.python             	0x00236c4a PyEval_EvalCodeEx + 1962
45  org.python.python             	0x001c428a function_call + 330
46  org.python.python             	0x0019f9f2 PyObject_Call + 50
47  org.python.python             	0x002330c1 PyEval_EvalFrameEx + 16001
48  org.python.python             	0x00236c4a PyEval_EvalCodeEx + 1962
49  org.python.python             	0x00234a63 PyEval_EvalFrameEx + 22563
50  org.python.python             	0x00236c4a PyEval_EvalCodeEx + 1962
51  org.python.python             	0x00236d57 PyEval_EvalCode + 87
52  org.python.python             	0x0025b5c4 PyRun_StringFlags + 244
53  org.python.python             	0x0025b69e PyRun_SimpleStringFlags + 78
54  org.python.python             	0x002691ab Py_Main + 1435
55  org.python.python             	0x00001f7b 0x1000 + 3963
56  org.python.python             	0x00001ea9 0x1000 + 3753

comment:15 in reply to:  14 Changed 13 years ago by blb@…

Replying to ralph@cs.cf.ac.uk:

...

2 A crash occurs after fixing this missing dependency

Start idle:

/opt/local/bin/idle2.5

and when it has launched, type in its window

from visual import *

and hit return.

This caused a crash:

Fatal Python error: Interpreter not initialized (version mismatch?)

That could be ticket #16111.

comment:16 Changed 12 years ago by raimue (Rainer Müller)

Resolution: wontfix
Status: assignedclosed

Lack of interest, closing.

comment:17 Changed 12 years ago by jmroot (Joshua Root)

Type: defectrequest

comment:18 Changed 12 years ago by (none)

Milestone: Port Requests

Milestone Port Requests deleted

comment:19 Changed 10 years ago by Russell-Jones-OxPhys (Russell Jones)

Resolution: wontfix
Status: closedreopened

I'm interested in vpython for macports. Will try updating the portfile and report back.

comment:20 in reply to:  19 Changed 10 years ago by dbailey@…

Replying to russell.jones@…:

I'm interested in vpython for macports. Will try updating the portfile and report back.

That would be great! We use VPython, OpenCV, PIL, numpy, scipy, matplotlib, ... and I have never gotten all of them working at the same time on the same Python installation on a Mac. VPython is the only one missing from MacPorts.

comment:21 Changed 9 years ago by raimue (Rainer Müller)

Resolution: wontfix
Status: reopenedclosed

No sign of an updated Portfile, closing again.

comment:22 Changed 7 years ago by Russell-Jones-OxPhys (Russell Jones)

I'm testing building https://github.com/BruceSherwood/vpython-wx in a virtualenv vs /opt/local/* If/when I get that done, I'll have another go at a portfile.

comment:23 Changed 7 years ago by Russell-Jones-OxPhys (Russell Jones)

The build failed. It looks like #42331, conflicts between typedefs (at least) in MacPorts mesa and OpenGL.framework. Apparently #41349 explains why a newer, fixed version is not being used yet.

Last edited 7 years ago by Russell-Jones-OxPhys (Russell Jones) (previous) (diff)

comment:24 Changed 5 years ago by ltalirz (Leopold Talirz)

Cc: leopold.talirz@… added

Cc Me!

Note: See TracTickets for help on using tickets.