holzschu / Carnets

Carnets is a stand-alone Jupyter notebook server and client. Edit your notebooks on the go, even where there is no network.
https://holzschu.github.io/Carnets_Jupyter/
BSD 3-Clause "New" or "Revised" License
567 stars 34 forks source link

Installation of pure python packages #228

Open route2021 opened 2 years ago

route2021 commented 2 years ago

Since version 1.6.3 (183) of Carnets plus (the version with Scipy) I can't load pure python packages anymore. This happens after a fresh installation of Carnets, not an update.
Here the message when trying to install psychrolib:

pip install psychrolib

Defaulting to user installation because normal site-packages is not writeable Collecting psychrolib Downloading PsychroLib-2.5.0.zip (9.5 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'error'

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [0 lines of output] [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details. WARNING: You are using pip version 22.0.2; however, version 22.0.3 is available. You should consider upgrading via the '/private/var/containers/Bundle/Application/D30FC94D-00C7-4686-B078-2E4B07205A39/Carnets-sci.app/Library/bin/python3 -m pip install --upgrade pip' command.

Note: you may need to restart the kernel to use updated packages.

holzschu commented 2 years ago

I ran a rapid test. I could upgrade pip, for example, and install rsa too. So not all packages are affected, but Psychrolib definitely is.

Running "!python setup.py egg_info" inside the psychrolib directory works, but running "!pip install --user ." does not, and fails by saying that "python setup.py egg_info" failed. I'm looking into it.

holzschu commented 2 years ago

The good news is that I found what is causing the issue. The bad news is that the fix is not going to be fast. I'm working on it.

caryn-geady commented 2 years ago

Following -- I have a similar issue with scikit-image

holzschu commented 2 years ago

I'm afraid fixing this issue won't fix the problem with scikit-image: it has lots of modules written in Cython, so it cannot be installed by the user. I think pillow (which is included) has more or less the same functionalities as scikit-image.

caryn-geady commented 2 years ago

Okay, thank you!

Caryn Geady, MSc, HBSc Graduate Student Researcher | Dept. of Medical Biophysics, University of Toronto (647) 210 9889 | @.*** https://caryn.geady.com

On Feb 14, 2022, at 2:47 PM, Nicolas Holzschuch @.***> wrote:

I'm afraid fixing this issue won't fix the problem with scikit-image: it has lots of modules written in Cython, so it cannot be installed by the user. I think pillow (which is included) has more or less the same functionalities as scikit-image.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.

holzschu commented 2 years ago

Thank you very much for raising this issue, it impacts a lot of users. I'm uploading a build with the fix. Expect 1-2 days before the build is approved by Apple.

TheUncanny97 commented 2 years ago

Thank you very much for raising this issue, it impacts a lot of users. I'm uploading a build with the fix. Expect 1-2 days before the build is approved by Apple.

Thanks a lot!

holzschu commented 2 years ago

Hi, the TestFlight version is out, with the fix: https://testflight.apple.com/join/UbNIjkjp It works in my tests. If you don't want to install the TestFlight version, the AppStore version should have the fix in a few days.

route2021 commented 2 years ago

Good work, pip works again as usual. Thanks a lot!