Changes between Version 2 and Version 3 of Ticket #63492, comment 10


Ignore:
Timestamp:
Sep 16, 2021, 3:56:17 PM (3 years ago)
Author:
DavidBAEpstein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #63492, comment 10

    v2 v3  
    66...some time later...
    77
    8 My problem has now gone away. I found a conda requirements file on our Github repo, removed my old unsuccessful environment and created the new environment, using "conda create" with the -f flag for the requirements file. This installs a conda version of pip, so that pip in that environment works consistently with conda. I think that conda cannot install the openslide binaries from C-code directly, and this has to be done by pip (but one must use the conda version of pip). Incidentally, although "import openslide" now works, the diff -r between the openslide packages on /opt/local and on ~/anaconda3, continues to give an identical answer to what I saw before, so my previous "test" using "diff -r" was misleading. I think all the binary files differ for both the failing environment and the new successful one. All the other files (python programs) are identical.
     8My problem has now gone away. I found a conda requirements file on our Github repo, removed my old unsuccessful environment and created the new environment, using "conda create" with the -f flag for the requirements file. This installs a conda version of pip, so that pip in that environment works consistently with conda. I think that conda on its own cannot install the openslide binaries from C-code directly, and this has to be done by pip (but one must use the conda version of pip). Incidentally, although "import openslide" now works, the diff -r between the openslide packages on /opt/local and on ~/anaconda3, continues to give an identical answer to what I saw before, so my previous "test" using "diff -r" was misleading. I think all the binary files differ for both the failing environment and the new successful one. All the other files (python programs) are identical.
    99
    1010Your explanation above is excellent and I hope it will avoid others getting into the same pickle (at least in the case of openslide). You have pointed out that this has occurred from time to time with other ports. What do you think about you adding to the Macports guide(s) a short section with your wisdom about Macports and virtual environments, and associated hazards that must be avoided?