-
Notifications
You must be signed in to change notification settings - Fork 3
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: 'Style' object has no attribute 'clear_meta_and_links' #389
Comments
Thanks for raising the issue @matiasandina. Some of the team are away currently, so we may take a while to get back to you. I can't reproduce on my (Ubuntu 20.04) machine with:
Can anyone else @neuroinformatics-unit/neuroinformatics-all? |
I cannot on my macbook, can try on Ubuntu 22 when I am back next week 🤔 |
I'm able to launch it successfully on Ubuntu 22.04 / Linux 6.5.0.28-generic in a fresh python 3.10 environment. |
Hi, looks like it could be a |
Thanks for the quick checks. Interestingly, this environment works well! 🤔
I created the first one as suggested in the docs
Maybe there are some differences in the environment creation ? rich is the same in both envs
|
The only difference I can think of is that "my" way, would fetch a different version of Python itself (and from conda-forge). |
Strange 🤔 Followed the docs setup steps on Ubuntu 22.04.4 LTS (WSL2 ) and it launches fine. |
Indeed
(datashuttle-env) ***@***.***:~$ python
Python 3.10.14 (main, May 6 2024, 19:42:50) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>> quit()
(datashuttle-env) ***@***.***:~$ conda activate datashuttle-test
(datashuttle-test) ***@***.***:~$ python
Python 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:36:13)
[GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
…>>
|
Weird, this shouldn't make a difference. Anyway, glad you're up and running @matiasandina, let us know if you have any more problems. I'll keep this issue open so we can dig into this later. |
Hey @matiasandina thanks for this report!! This is very interesting case, it seems at runtime the version of rich being used is located at:
rather than the correction version at:
I have no idea why this is happening, though it is a strange thing I've very seen infrequently before with In any case, there is no reason why the docs should specify the install is with This can be changed to
if people agree. (The reason the multi-line install rather than one-liner is used in the docs is just to make each step clearer to new conda users) |
Coincidentally I had the same problem on another project and it led to discovering some very crazy conda/pip behaviour I did not know about that I think led to this error. You may have multiple pip installed on your system ( To get it to work properly, you need to In some circumstances (I'm not exactly sure which), even if pip is installed by conda during environment setup, the conda env may or may not use the conda installed pip. For example, I am trying it on our cluster after On our HPC, if I request So, fundamentally it seems that if you request a python version when installing a conda env and you have a system version of python with pip, conda will not necessarily use the correct version of pip (and possibly any other pip-installed dependency). I guess this problem is in theory is also possible doing I am very surprised by this behaviour, it may be worth a blog post on the 'How to' page. Although I not sure how to reliably deal with it 😅. * This is also true with |
This is very weird. I've had various issues with conda on our HPC, but I've never come across this locally, and I've made about 1-5 conda envs every week for the last 6 years! |
I wonder if this is a clue in itself, do you have any non-conda managed installs of Python on your machine (or maybe, only an old one)? If not, I think you should never see this problem! |
On some machines I have the system Python, but I've only ever used conda, so it's unlikely I ever have a non-conda version of the Python version I'm trying to use. |
This has been adressed in #386 and properly tested in #394. Thanks @matiasandina please don't hestitate to raise issues / get in contact with any other problems or feedback. |
Describe the bug
Cannot create a local project
Cannot go into the settings
To Reproduce
First fresh install using conda-forge in conda env.
Log file
Computer used (please complete the following information):
The text was updated successfully, but these errors were encountered: