Open jessdtate opened 8 years ago
installing numy and scipy is very easy (for me) using pip:
cd "scirun_root"/bin/Externals/Install/Python_external/bin/ ./python3 -m pip install numpy
similar for scipy, matplotlib and other major packages.
Which OSs did you test on?
OS X 10.10.
Linux will probably work then. This needs testing on Windows.
There are some issues pushing matlab matrices back to scirun. They have to be converted to lists of lists, where matlab has an array format. The conversion is not as straight forward as going the opposite way (at least as far as I have found). This may be a problem with fields too.
I should be able to write a converter on the C++ side. What happens when you pass the Matlab array type to the set transient state function?
nothing. There is a null output from the module (both the interfacewithpython and pythonobjectforwarder). It doesn't seem to to be waiting around for it, like it finds the object, but can't convert it.
OK. See if there's (non-python) terminal output--I think I print a message saying the value can't be converted.
here it is:
[NOTICE] Invalid Connection request: input port is full, or ports are different datatype or same i/o type, or on the same module.
That's a different message. No worries, I can look at this Monday.
Oops, That was the one that worked (after conversion). Here is the error:
No known conversion from python object to C++ object [PYTHON] 'Transient value set'
I can't get pip working on my Windows machine. It appears that our python build is lacking required OpenSSL support. Also, we're using the flag "--with-ensurepip=no"
which seems like it would explain it. Any thoughts?
I'm not sure, as I'm not an expert in python. I think that flag would just keep pip out of the default installation, but prevent subsequent installation. I have had no problems with OS X and pip.
Turning off ensurepip was due to a Mac OS X build error in 3.4.3. I uploaded 3.4.4 for testing earlier today, since it appears to have some build fixes. OpenSSL on Windows may be tricky.
@ajanson @jessdtate I got a little bit further on Windows, but we'll probably have to modify the python external build configuration. We decided to push this one until post-IBBM since it will affect so few people.
I'll focus on getting ensurepip working after upgrading to 3.6 (see #1668).
Stale issue message
Depends on Python upgrade path (gotta get off of 3.4 on Windows first, then ship 3.6 on Mac)
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 60 days.
This issue is stale because it has been open 240 days with no activity. Remove the stale label or comment, or this will be closed in 60 days.
ensurepip still had problems in 3.8. Not sure why this is so difficult...
This issue is stale because it has been open 240 days with no activity. Remove the stale label or comment, or this will be closed in 60 days.
Users need to be able to easily use numpy and scipy. It would be best to include them with SCIRun, but we at least need documentation explaining how to do the install/ add to the path.