samuelleblanc / fp

Flight planning software, moving lines
GNU General Public License v3.0
4 stars 2 forks source link

Installation problem on Windows 11 #19

Closed srbrodzik closed 7 months ago

srbrodzik commented 8 months ago

I just tried to install and got this when trying to run ml. The end of the installation completed without error, but when I tried to run ml I got a bunch of errors. Do I need to change my PATH variable? Now that I've closed that command window and opened another, I can't even find ml. Suggestions?

Stacy

Downloading and Extracting Packages:

Preparing transaction: done Verifying transaction: done Executing transaction: done

(ml) C:\Users\impacts\miniforge3\condabin>ml Traceback (most recent call last): File "C:\Users\impacts\miniforge3\envs\ml\lib\site-packages\movinglines\ml.py", line 127, in from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg File "C:\Users\impacts\miniforge3\envs\ml\lib\site-packages\matplotlib__init__.py", line 109, in from . import _api, _version, cbook, docstring, rcsetup File "C:\Users\impacts\miniforge3\envs\ml\lib\site-packages\matplotlib\rcsetup.py", line 27, in from matplotlib.colors import Colormap, is_color_like File "C:\Users\impacts\miniforge3\envs\ml\lib\site-packages\matplotlib\colors.py", line 51, in from PIL import Image File "C:\Users\impacts\miniforge3\envs\ml\lib\site-packages\PIL\Image.py", line 114, in from . import _imaging as core ImportError: DLL load failed while importing _imaging: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\impacts\miniforge3\envs\ml\Scripts\ml-script.py", line 6, in from movinglines import main File "C:\Users\impacts\miniforge3\envs\ml\lib\site-packages\movinglines__init.py", line 24, in from .ml import Create_interaction as main File "C:\Users\impacts\miniforge3\envs\ml\lib\site-packages\movinglines\ml.py", line 130, in from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg File "C:\Users\impacts\miniforge3\envs\ml\lib\site-packages\matplotlib\init__.py", line 109, in from . import _api, _version, cbook, docstring, rcsetup File "C:\Users\impacts\miniforge3\envs\ml\lib\site-packages\matplotlib\rcsetup.py", line 27, in from matplotlib.colors import Colormap, is_color_like File "C:\Users\impacts\miniforge3\envs\ml\lib\site-packages\matplotlib\colors.py", line 51, in from PIL import Image File "C:\Users\impacts\miniforge3\envs\ml\lib\site-packages\PIL\Image.py", line 114, in from . import _imaging as core ImportError: DLL load failed while importing _imaging: The specified module could not be found.

(ml) C:\Users\impacts\miniforge3\condabin> (

samuelleblanc commented 7 months ago

This is strange, can you make sure you've made an environment based on python 3.9?

I've also updated the requirements for packages on conda, can you update to newest install (v1.49) there? https://anaconda.org/samuelleblanc/movinglines

srbrodzik commented 7 months ago

I'll take a look at how I set things up. It's been awhile and I don't remember what I did.

Stacy

On Tue, Apr 9, 2024 at 6:18 PM Samuel LeBlanc @.***> wrote:

This is strange, can you make sure you've made an environment based on python 3.9?

I've also updated the requirements for packages on conda, can you update to newest install (v1.49) there? https://anaconda.org/samuelleblanc/movinglines https://urldefense.com/v3/__https://anaconda.org/samuelleblanc/movinglines__;!!K-Hz7m0Vt54!jYwSMC43NYIh8_13i3c8Hvy5hRVRf9z24gpu42iBLrKAaC8HsTrbav3H-LzObENTM4LvRLfOJg02I0Ed_2saWAE$

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/samuelleblanc/fp/issues/19*issuecomment-2046285085__;Iw!!K-Hz7m0Vt54!jYwSMC43NYIh8_13i3c8Hvy5hRVRf9z24gpu42iBLrKAaC8HsTrbav3H-LzObENTM4LvRLfOJg02I0Ed_D0nZuA$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABHT7FXJP34YGXIMRD4S57DY4SHODAVCNFSM6AAAAABEVC3VAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBWGI4DKMBYGU__;!!K-Hz7m0Vt54!jYwSMC43NYIh8_13i3c8Hvy5hRVRf9z24gpu42iBLrKAaC8HsTrbav3H-LzObENTM4LvRLfOJg02I0EdUp6Gidk$ . You are receiving this because you authored the thread.Message ID: @.***>

srbrodzik commented 7 months ago

Hi Sam,

I just ran the following commands:

conda create -n ml python=3.9 conda activate ml conda install samuelleblanc::movinglines

After the last one, I got the following error. Can you tell me what I'm doing wrong?

Stacy

(ml) C:\Users\impacts>conda install samuelleblanc::movinglines Channels:

PackagesNotFoundError: The following packages are not available from current channels:

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

On Tue, Apr 9, 2024 at 6:18 PM Samuel LeBlanc @.***> wrote:

This is strange, can you make sure you've made an environment based on python 3.9?

I've also updated the requirements for packages on conda, can you update to newest install (v1.49) there? https://anaconda.org/samuelleblanc/movinglines https://urldefense.com/v3/__https://anaconda.org/samuelleblanc/movinglines__;!!K-Hz7m0Vt54!jYwSMC43NYIh8_13i3c8Hvy5hRVRf9z24gpu42iBLrKAaC8HsTrbav3H-LzObENTM4LvRLfOJg02I0Ed_2saWAE$

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/samuelleblanc/fp/issues/19*issuecomment-2046285085__;Iw!!K-Hz7m0Vt54!jYwSMC43NYIh8_13i3c8Hvy5hRVRf9z24gpu42iBLrKAaC8HsTrbav3H-LzObENTM4LvRLfOJg02I0Ed_D0nZuA$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABHT7FXJP34YGXIMRD4S57DY4SHODAVCNFSM6AAAAABEVC3VAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBWGI4DKMBYGU__;!!K-Hz7m0Vt54!jYwSMC43NYIh8_13i3c8Hvy5hRVRf9z24gpu42iBLrKAaC8HsTrbav3H-LzObENTM4LvRLfOJg02I0EdUp6Gidk$ . You are receiving this because you authored the thread.Message ID: @.***>

samuelleblanc commented 7 months ago

This is similar to what was also found by others. I amended the readme to include the need to add the conda-forge channel for the dependencies for the conda installations (mamba has this already set up).

conda config --add channels conda-forge

Does that work?

srbrodzik commented 7 months ago

Yes, that seems to work. This time when I type the ml command I get the expected GUI.

Thanks for the help.

Stacy

On Mon, Apr 22, 2024 at 2:47 PM Samuel LeBlanc @.***> wrote:

This is similar to what was also found by others. I amended the readme to include the need to add the conda-forge channel for the dependencies for the conda installations (mamba has this already set up).

conda config --add channels conda-forge

Does that work?

— Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/samuelleblanc/fp/issues/19*issuecomment-2071007857__;Iw!!K-Hz7m0Vt54!ki2LWZ4RffTzB6BEyg_rrijarS32cHxNvjKfccS07KUkyacTFK-k77r0IEN32ORF33MAHHat1JcpnY_J-ztxwe8$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABHT7FTMQHOVKGRUBQZJUP3Y6WAPRAVCNFSM6AAAAABEVC3VAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZRGAYDOOBVG4__;!!K-Hz7m0Vt54!ki2LWZ4RffTzB6BEyg_rrijarS32cHxNvjKfccS07KUkyacTFK-k77r0IEN32ORF33MAHHat1JcpnY_J9BDHcu8$ . You are receiving this because you authored the thread.Message ID: @.***>

samuelleblanc commented 7 months ago

Great!