wdecoster / NanoPlot

Plotting scripts for long read sequencing data
http://nanoplot.bioinf.be
MIT License
407 stars 48 forks source link

Can't install Nanoplot #322

Closed BairdMc closed 1 year ago

BairdMc commented 1 year ago

Hi there, I'm trying to install Nanoplot on Python3.9 or 3.9, and getting an error. I've got a local anaconda environment, and trying to install with either pip or conda is giving me an error. When install with the given Conda command, I get the following log/error:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve. 
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
 Solving environment: failed with initial frozen solve. Retrying with flexible solve. 
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.                                                                                                                                                                                         -failed                                                                                                                                                                                                                                          UnsatisfiableError: The following specifications were found to be incompatible with each other:                                                                                                                                                 Output in format: Requested package -> Available versions      

When trying with pip, I get the following:

error: subprocess-exited-with-error                                                                                                                                                                                                             × python setup.py egg_info did not run successfully. 
exit code: 1
╰─> [24 lines of output]  
# pysam: no cython available - using pre-compiled C 
# pysam: htslib mode is shared 
# pysam: HTSLIB_CONFIGURE_OPTIONS=None
 '.' is not recognized as an internal or external command, operable program or batch file.                                                                                         '.' is not recognized as an internal or external command, operable program or batch file.                                                                                         Traceback (most recent call last): 
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\baird\AppData\Local\Temp\pip-install-j5wyyysy\pysam_1adf46dd31b641c7ac2fb52def9f92f0\setup.py", line 381, in <module> 
        htslib_make_options = run_make_print_config()
    File "C:\Users\baird\AppData\Local\Temp\pip-install-j5wyyysy\pysam_1adf46dd31b641c7ac2fb52def9f92f0\setup.py", line 79, in run_make_print_config
        stdout = subprocess.check_output(["make", "-s", "print-config"])
    File "C:\ProgramData\Anaconda3\envs\Nanopore\lib\subprocess.py", line 421, in check_output 
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "C:\ProgramData\Anaconda3\envs\Nanopore\lib\subprocess.py", line 503, in run
        with Popen(*popenargs, **kwargs) as process: 
    File "C:\ProgramData\Anaconda3\envs\Nanopore\lib\subprocess.py", line 971, in __init__                                    self._execute_child(args, executable, preexec_fn, close_fds, 
    File "C:\ProgramData\Anaconda3\envs\Nanopore\lib\subprocess.py", line 1440, in _execute_child
        hp, ht, pid, tid = _winapi.CreateProcess(executable, args, 
    FileNotFoundError: [WinError 2] The system cannot find the file specified 
    # pysam: htslib configure options: None 
    [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. 

Any ideas what I could do to solve this? Thanks!

wdecoster commented 1 year ago

It does not work on Windows, but it does work on WSL.