Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'split' #3

Closed
lsq2020 opened this issue Mar 28, 2024 · 11 comments
Closed

AttributeError: 'NoneType' object has no attribute 'split' #3

lsq2020 opened this issue Mar 28, 2024 · 11 comments
Assignees

Comments

@lsq2020
Copy link

lsq2020 commented Mar 28, 2024

Hello, I used Pyaging=0.3.6, but I could not install the package. I tried three methods in the help documentation, and all errors occurred:
AttributeError: 'NoneType' object has no attribute 'split'
I guess the reason is that the dependency package pybigwig package cannot be installed. Is there any solution? I use windows system
The error is as follows:

(Pyaging) C:\Users\admin>pip install Pyaging
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting Pyaging
Using cached https://mirrors.aliyun.com/pypi/packages/46/b3/f573c6c7ca1f349503da8e6bc31f9e9b3bc0f9cd1a926cfefff2ac38edd0/pyaging-0.1.6-py3-none-any.whl (37 kB)
Requirement already satisfied: anndata<0.11.0,>=0.10.3 in c:\users\admin\anaconda3\envs\pyaging\lib\site-packages (from Pyaging) (0.10.5.post1)
Requirement already satisfied: numpy<2.0.0,>=1.26.2 in c:\users\admin\anaconda3\envs\pyaging\lib\site-packages (from Pyaging) (1.26.4)
Requirement already satisfied: pandas<3.0.0,>=2.1.3 in c:\users\admin\anaconda3\envs\pyaging\lib\site-packages (from Pyaging) (2.2.1)
Collecting pyBigWig<0.4.0,>=0.3.22 (from Pyaging)
Using cached https://mirrors.aliyun.com/pypi/packages/f0/57/334db9a75d6941876ef282cc7eb1885a24fe71d3c6522c19f717db4f8b73/pyBigWig-0.3.22.tar.gz (73 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
Traceback (most recent call last):
File "C:\Users\admin\anaconda3\envs\Pyaging\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\admin\anaconda3\envs\Pyaging\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\admin\anaconda3\envs\Pyaging\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\admin\AppData\Local\Temp\pip-build-env-g85iu5lr\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\admin\AppData\Local\Temp\pip-build-env-g85iu5lr\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\admin\AppData\Local\Temp\pip-build-env-g85iu5lr\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 19, in
AttributeError: 'NoneType' object has no attribute 'split'
[end of output]

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

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Thankyou!!

@lcamillo
Copy link
Collaborator

lcamillo commented Apr 2, 2024

Hi! Thanks for bringing this up.

Could I check which version of python you are using? Currently pyaging only works on 3.9-3.11.

@lcamillo lcamillo self-assigned this Apr 13, 2024
@osbornzhou
Copy link

pip install pyaging in python 3.9-3.11 all have this problem, maybe something wrong in setuptool?

@lcamillo
Copy link
Collaborator

lcamillo commented May 5, 2024

I would recommend installing pyaging with poetry rather than with pip. Perhaps creating a new conda environment would help -- the GitHub tests passed in Windows and Linux for python 3.9-3.11.

Could you provide more details of your OS?

Thank you!

@osbornzhou
Copy link

I would recommend installing pyaging with poetry rather than with pip. Perhaps creating a new conda environment would help -- the GitHub tests passed in Windows and Linux for python 3.9-3.11.

Could you provide more details of your OS?

Thank you!

i use anaconda in win11! thx

@osbornzhou
Copy link

i use poetry to install, and with the installing of pyaging, pybigwig==0.3.22 counter the same problem, thx

@GillianGrayson
Copy link

Any updates here?
It is impossible to install one of dependencies (pybigwig) on Windows OS.
Is pyaging supported only for Unix/Linux? Maybe it will be useful to add a disclaimer about supported OS in the package description?

@lcamillo
Copy link
Collaborator

Apologies for the delay! I'm planning on making the pybigwig dependency optional this weekend. It should run just fine on Unix/Linux.

@GillianGrayson
Copy link

Thank you so much!
I'll be waiting for it!

@lcamillo
Copy link
Collaborator

Apologies again for the delay. I have now made pyBigWig optional (only needed for the histone mark clocks). Could you let me know if the issue has been fixed? Thanks!

@GillianGrayson
Copy link

Thank you so much!
Everything works perfectly now! Tested all Homo Sapiens DNAm clocks with custom dataset.
Will cite you in future papers.

@lcamillo
Copy link
Collaborator

Great to hear! I'll close the issue now but feel free to open another one in case something is not working! Thanks again for flagging it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants