Module not found error using dvc repro, issues with pandas and pyenv

OS: windows 10

I cloned my teammate’s git repo, but when I run dvc repro I get an error saying that there is no module named pandas.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>project_path (main)
$ dvc repro
Running stage 'data_collection':
> python3 -m src.stages.data_collection--config=params.yaml
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "project_pathsrcstagesdata_collection.py", line 1, in <module>
import pandas as pd
ModuleNotFoundError: No module named 'pandas'
ERROR: failed to reproduce 'data_collection': failed to run: python3 -m src.stages.data_collection --config=params.yaml, exited with 1
</code>
<code>project_path (main) $ dvc repro Running stage 'data_collection': > python3 -m src.stages.data_collection--config=params.yaml Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "project_pathsrcstagesdata_collection.py", line 1, in <module> import pandas as pd ModuleNotFoundError: No module named 'pandas' ERROR: failed to reproduce 'data_collection': failed to run: python3 -m src.stages.data_collection --config=params.yaml, exited with 1 </code>
project_path (main)
$ dvc repro
Running stage 'data_collection':
> python3 -m src.stages.data_collection--config=params.yaml
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "project_pathsrcstagesdata_collection.py", line 1, in <module>
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'
ERROR: failed to reproduce 'data_collection': failed to run: python3 -m src.stages.data_collection --config=params.yaml, exited with 1

When I run the .ipynb files directly, there are no issues. When I run the .py files, there are issues.

poetry install causes issue:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> Warning: Validation of the RECORD file of pandas-2.0.0-cp311-cp311-win_amd64.whl failed. Please report to the maintainers of that package so they can fix their build process. Details:
In C:UsersuseridAppDataLocalpypoetryCacheartifactsde788c366df10f0aa0cee29394593fcdcf6451a0a21227ba93302f64d2e01b5apandas-2.0.0-cp311-cp311-win_amd64.whl, pandas/_libs/window/msvcp140.dll is not mentioned in RECORD
In C:UsersuseridAppDataLocalpypoetryCacheartifactsde788c366df10f0aa0cee29394593fcdcf6451a0a21227ba93302f64d2e01b5apandas-2.0.0-cp311-cp311-win_amd64.whl, pandas/_libs/window/concrt140.dll is not mentioned in RECORD
In C:UsersuseridAppDataLocalpypoetryCacheartifactsde788c366df10f0aa0cee29394593fcdcf6451a0a21227ba93302f64d2e01b5apandas-2.0.0-cp311-cp311-win_amd64.whl, pandas/_libs/window/vcruntime140_1.dll is not mentioned in RECORD
</code>
<code> Warning: Validation of the RECORD file of pandas-2.0.0-cp311-cp311-win_amd64.whl failed. Please report to the maintainers of that package so they can fix their build process. Details: In C:UsersuseridAppDataLocalpypoetryCacheartifactsde788c366df10f0aa0cee29394593fcdcf6451a0a21227ba93302f64d2e01b5apandas-2.0.0-cp311-cp311-win_amd64.whl, pandas/_libs/window/msvcp140.dll is not mentioned in RECORD In C:UsersuseridAppDataLocalpypoetryCacheartifactsde788c366df10f0aa0cee29394593fcdcf6451a0a21227ba93302f64d2e01b5apandas-2.0.0-cp311-cp311-win_amd64.whl, pandas/_libs/window/concrt140.dll is not mentioned in RECORD In C:UsersuseridAppDataLocalpypoetryCacheartifactsde788c366df10f0aa0cee29394593fcdcf6451a0a21227ba93302f64d2e01b5apandas-2.0.0-cp311-cp311-win_amd64.whl, pandas/_libs/window/vcruntime140_1.dll is not mentioned in RECORD </code>
    Warning: Validation of the RECORD file of pandas-2.0.0-cp311-cp311-win_amd64.whl failed. Please report to the maintainers of that package so they can fix their build process. Details:
    In C:UsersuseridAppDataLocalpypoetryCacheartifactsde788c366df10f0aa0cee29394593fcdcf6451a0a21227ba93302f64d2e01b5apandas-2.0.0-cp311-cp311-win_amd64.whl, pandas/_libs/window/msvcp140.dll is not mentioned in RECORD
    In C:UsersuseridAppDataLocalpypoetryCacheartifactsde788c366df10f0aa0cee29394593fcdcf6451a0a21227ba93302f64d2e01b5apandas-2.0.0-cp311-cp311-win_amd64.whl, pandas/_libs/window/concrt140.dll is not mentioned in RECORD
    In C:UsersuseridAppDataLocalpypoetryCacheartifactsde788c366df10f0aa0cee29394593fcdcf6451a0a21227ba93302f64d2e01b5apandas-2.0.0-cp311-cp311-win_amd64.whl, pandas/_libs/window/vcruntime140_1.dll is not mentioned in RECORD

I ran poetry add [email protected] and now poetry install output is:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>$ poetry install
Installing dependencies from lock file
No dependencies to install or update
Installing the current project:
</code>
<code>$ poetry install Installing dependencies from lock file No dependencies to install or update Installing the current project: </code>
$ poetry install
Installing dependencies from lock file

No dependencies to install or update

Installing the current project: 

But dvc repro still fails.

The python version is correct:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>$ poetry env info
Virtualenv
Python: 3.11.1
Implementation: CPython
Path: user_pathAppDataLocalpypoetryCachevirtualenvspackage-name-ZTTWURRI-py3.11
Executable: user_pathAppDataLocalpypoetryCachevirtualenvspackage-name-ZTTWURRI-py3.11Scriptspython.exe
Valid: True
</code>
<code>$ poetry env info Virtualenv Python: 3.11.1 Implementation: CPython Path: user_pathAppDataLocalpypoetryCachevirtualenvspackage-name-ZTTWURRI-py3.11 Executable: user_pathAppDataLocalpypoetryCachevirtualenvspackage-name-ZTTWURRI-py3.11Scriptspython.exe Valid: True </code>
$ poetry env info

Virtualenv
Python:         3.11.1 
Implementation: CPython
Path:           user_pathAppDataLocalpypoetryCachevirtualenvspackage-name-ZTTWURRI-py3.11
Executable:     user_pathAppDataLocalpypoetryCachevirtualenvspackage-name-ZTTWURRI-py3.11Scriptspython.exe
Valid:          True

However, I noticed that python3 cannot import pandas module (or yaml). Perhaps it is because I am using Windows?

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pandas'
>>> import yaml
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'yaml'
</code>
<code>Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pandas as pd Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'pandas' >>> import yaml Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'yaml' </code>
Python 3.11.1 (tags/v3.11.1:a7a450f, Dec  6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'pandas'
>>> import yaml
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'yaml'

python is able to import these:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>$ python
Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
>>>
</code>
<code>$ python Python 3.11.1 (tags/v3.11.1:a7a450f, Dec 6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pandas as pd >>> </code>
$ python
Python 3.11.1 (tags/v3.11.1:a7a450f, Dec  6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
>>> 

Pyenv version is correct

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>$ pyenv versions
* 3.11.1 (set by user/.python-history)
3.12.2
</code>
<code>$ pyenv versions * 3.11.1 (set by user/.python-history) 3.12.2 </code>
$ pyenv versions
* 3.11.1 (set by user/.python-history)
3.12.2

However, I noticed this issue:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>$ pyenv global system
pyenv specific python requisite didn't meet. Project is using different version of python.
Install python 'system' by typing: 'pyenv install system'
</code>
<code>$ pyenv global system pyenv specific python requisite didn't meet. Project is using different version of python. Install python 'system' by typing: 'pyenv install system' </code>
$ pyenv global system
pyenv specific python requisite didn't meet. Project is using different version of python.
Install python 'system' by typing: 'pyenv install system'

Any advice is appreciated!

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật