maxplanck-ie / snakepipes

Customizable workflows based on snakemake and python for the analysis of NGS data
http://snakepipes.readthedocs.io
MIT License
374 stars 85 forks source link

snakePipes envInfo: AttributeError: 'NoneType' object has no attribute 'encode' #992

Closed sunta3iouxos closed 3 months ago

sunta3iouxos commented 3 months ago

I run the following and get a weird issue.

snakePipes envInfo
Traceback (most recent call last):
  File "/scratch/tgeorgom/mamba/snakepipes_devel/bin/snakePipes", line 441, in <module>
    main(sys.argv[1:])
  File "/scratch/tgeorgom/mamba/snakepipes_devel/bin/snakePipes", line 427, in main
    envInfo()
  File "/scratch/tgeorgom/mamba/snakepipes_devel/bin/snakePipes", line 270, in envInfo
    md5hash.update(condaEnvDir.encode())
                   ^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'encode'

```version of snakePipes:
```bash
snakePipes version
version 2.8.1

My python is version 3.11

WardDeb commented 3 months ago

What is the condaEnvDir variable set to in your 'defaults.yaml' file ? (snakePipes infoto get the path to it).

sunta3iouxos commented 3 months ago

interestingly it is

null

here is the whole file:

clusterConfig: shared/cluster.yaml
condaEnvDir: null
configMode: manual
emailSender: null
max_thread: 25
oldConfig: null
onlySSL: false
organismsDir: shared/organisms
smtpPassword: null
smtpPort: 0
smtpServer: null
smtpUsername: null
snakemakeOptions: ''
tempDir: /scratch/tgeorgom/tmp/
toolsVersion: true
WardDeb commented 3 months ago

Was it set before ? If not, fill in an appropriate path (without a trailing slash), and you should be able to continue then.

sunta3iouxos commented 3 months ago

done and close Thank you