[go: nahoru, domu]

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

bug: Installation issues in Python 3.11, Linux Ubuntu 22.04 #194

Open
charlesll opened this issue Jun 10, 2024 · 4 comments · May be fixed by #197
Open

bug: Installation issues in Python 3.11, Linux Ubuntu 22.04 #194

charlesll opened this issue Jun 10, 2024 · 4 comments · May be fixed by #197
Labels
bug Something isn't working

Comments

@charlesll
Copy link
charlesll commented Jun 10, 2024

Bug Report

**Fortuna version: **

0.1.45

Current behavior:

  • On Ubuntu 22.04, after creating a new Conda environment with Python 3.11, and installation with pip install aws-fortuna (first install): Import of fortuna fails. This is apparently related to an issue with Flax and Jax versions.

Expected behavior:

Loading aws-fortuna

Steps to reproduce:

In a terminal, type the commands:

$ conda create --name test python=3.11
$ conda activate test
$ pip install aws-fortuna
$ python
>>> import fortuna

Related code:

Python 3.11.9 (main, Apr 19 2024, 16:48:06) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import fortuna
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/charles/miniconda3/envs/test/lib/python3.11/site-packages/fortuna/__init__.py", line 1, in <module>
    import flax
  File "/home/charles/miniconda3/envs/test/lib/python3.11/site-packages/flax/__init__.py", line 18, in <module>
    from .configurations import (
  File "/home/charles/miniconda3/envs/test/lib/python3.11/site-packages/flax/configurations.py", line 92, in <module>
    flax_filter_frames = define_bool_state(
                         ^^^^^^^^^^^^^^^^^^
  File "/home/charles/miniconda3/envs/test/lib/python3.11/site-packages/flax/configurations.py", line 42, in define_bool_state
    return jax_config.define_bool_state('flax_' + name, default, help)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Config' object has no attribute 'define_bool_state'
>>> 

Other information:

On Linux, upgrading Jax and Flax to the latest versions actually solved the issue. I don't know if it will create further errors though...

@charlesll charlesll added the bug Something isn't working label Jun 10, 2024
@benHeid
Copy link
benHeid commented Jun 16, 2024

I am experiencing the same error on MacOS.

@wistuba
Copy link
Collaborator
wistuba commented Jun 21, 2024

Thanks for pointing this out! Would you be willing to prepare a fix for this?

@mdhanna
Copy link
mdhanna commented Jun 28, 2024

Can confirm that upgrading flax to 0.8.5 fixed this issue for me on MacOS.

This was referenced Jun 29, 2024
@wistuba
Copy link
Collaborator
wistuba commented Jun 29, 2024

#197 should fix this. Does anyone have time to confirm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants