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

Installation issue #226

Open
Noorulhuda90 opened this issue Nov 7, 2024 · 8 comments
Open

Installation issue #226

Noorulhuda90 opened this issue Nov 7, 2024 · 8 comments

Comments

@Noorulhuda90
Copy link

I am unable to install it Pip is not working conda is not working and There is no document available on how to run it inside a docker. Can anyone help ? I am getting this error after setting up conda envirnment.

python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
/tmp/pip-install-j7v3d4gg/ashlar_ebf1d54e34214b36a970cdd602bdf9cd/versioneer.py:423: SyntaxWarning: invalid escape sequence '\s'
LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-j7v3d4gg/ashlar_ebf1d54e34214b36a970cdd602bdf9cd/setup.py", line 24, in
VERSION = versioneer.get_version()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-j7v3d4gg/ashlar_ebf1d54e34214b36a970cdd602bdf9cd/versioneer.py", line 1483, in get_version
return get_versions()["version"]
^^^^^^^^^^^^^^
File "/tmp/pip-install-j7v3d4gg/ashlar_ebf1d54e34214b36a970cdd602bdf9cd/versioneer.py", line 1415, in get_versions
cfg = get_config_from_root(root)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-j7v3d4gg/ashlar_ebf1d54e34214b36a970cdd602bdf9cd/versioneer.py", line 344, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
[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.

@moataz-youssef
Copy link

I am having the same issues when trying to install Ashlar in a conda environment (Anaconda distribution running on Windows 10).

@Phillip-Miller
Copy link

did you find a solution?

@moataz-youssef
Copy link

Nope. I tried the same steps on 3 different systems with different configurations and everytime the same error. I guess the package is damaged or something.

@jmuhlich
Copy link
Collaborator

Sorry, this is a problem with python 3.12 compatibility in the versions of ashlar currently available via pip. You can either create a virtual environment with python 3.11, or you can use python 3.12 and install directly from github where we've fixed the problem:

pip install git+https://github.com/jmuhlich/ashlar.git

I will try to release an updated version to pypi soon.

@Noorulhuda90
Copy link
Author

It worked with above installation command for me.

Can you help me how the data must look like ? like if we have tiles in 6x11 mosaic. Can we define it is 6x11 ?

@jmuhlich
Copy link
Collaborator

Sure, I will need to see a list of some example filenames, and it may be helpful to know what microscope you are using.

@jmuhlich
Copy link
Collaborator

jmuhlich commented Nov 25, 2024

I will try to release an updated version to pypi soon.

Ashlar 1.19.0 is now available with the fix for Python 3.12. Please try to install it and let me know whether it works for you.

@Noorulhuda90
Copy link
Author

For file names they are like X00Y00 to define position in the mosaic. But to use in ImageJ I have also named it as image_1 to image_66.

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