question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't install latest version on macOS

See original GitHub issue

Describe the bug I follow the installation guide to install Ludwig using a virtual environment. But the version I can only install is 0.1.0. I try to use pip install --upgrade ludwig, but the ludwig version didn’t change and I try to use ludwig experiment like the first example, it’s also not working.

To Reproduce Steps to reproduce the behavior:

  1. virtualenv -p python3 venv
  2. (after activate virtual environment) pip install ludwig
  3. pip list to check the version of ludwig, it shows 0.1.0
  4. try cmd ludwig train, it said: "ModuleNotFoundError: No module named ‘tensorflow.contrib’ "
  5. try cmd ludwig experiment, it said: "ModuleNotFoundError: No module named ‘tensorflow.contrib’ "

Expected behavior install latest version of ludwig and run successfully

Screenshots % ludwig experiment \

–dataset text_example.csv
–config_file config.yaml Traceback (most recent call last): File “/Users/vyue/Desktop/folder1/venv/bin/ludwig”, line 5, in <module> from ludwig.cli import main File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/init.py”, line 16, in <module> from ludwig.api import LudwigModel File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/api.py”, line 39, in <module> from ludwig.data.postprocessing import postprocess_df, postprocess File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/data/postprocessing.py”, line 19, in <module> from ludwig.features.feature_registries import output_type_registry File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/features/feature_registries.py”, line 25, in <module> from ludwig.features.bag_feature import BagBaseFeature File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/features/bag_feature.py”, line 24, in <module> from ludwig.features.base_feature import BaseFeature File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/features/base_feature.py”, line 21, in <module> from ludwig.models.modules.recurrent_modules import reduce_sequence File “/Users/vyue/Desktop/folder1/venv/lib/python3.9/site-packages/ludwig/models/modules/recurrent_modules.py”, line 20, in <module> from tensorflow.contrib.rnn import MultiRNNCell, LSTMStateTuple ModuleNotFoundError: No module named ‘tensorflow.contrib’

Environment (please complete the following information):

  • OS: macOS Big Sur
  • Version 11.4
  • Python version 3.9.5
  • Ludwig version 0.1.0

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
victoriayuecommented, Jun 14, 2021

@jimthompson5802 Thanks for the help. I try python 3.8 and it works!

0reactions
jimthompson5802commented, Jun 14, 2021

@victoriayue I may have an explanation.

the tfa-nightly dependency is for the tensorflow_addons package. It appears that this version of the package was built for only Python 3.6, 3.7 and 3.8. Here is a screenshot of the available downloads for this version of the tensorflow_addons package: image

As you can see there is no package file with the designation of cp39 (aka Python 3.9). The highest is cp38 (aka Python 3.8).

From your initial posting, you indicated your Python version is 3.9. To install Ludwig 0.3.3, you’ll have to create a virtual environment with Python 3.8 and install Ludwig in there. FWIW…I’ve been using Python 3.6 without issues.

Let me know if this makes sense and if it helps you install ludwig.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If an error occurred while updating or installing macOS
If an error occurred while updating or installing macOS · Check your internet connection · Install in safe mode · Install after repairing...
Read more >
How to Fix the "macOS Could Not Be Installed on Your ...
1. Restart Your Mac and Retry the Installation · 2. Set Your Mac to the Correct Date and Time · 3. Create Enough...
Read more >
Quick-fixes for "Mac won't update" issue - Setapp
Turn it off; Press the power button while holding Shift; Release Shift once you see the login screen; Log into your Mac; Try...
Read more >
What to do if your Ventura update is stuck - Macworld
2. Go to System Preferences > Software Update. Or, if you are on an older macOS version, go to the Mac App Store...
Read more >
How to Update Your Mac Operating System and Installed Apps
If you can't update your Mac, despite having plenty of free space to do so, it's possible that your Mac is too old...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found