Coder Social home page Coder Social logo

pyutils's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pyutils's Issues

I keep getting an error that says "ModuleNotFoundError: No module named 'utils.dataset_utils'"

I was trying to use utlis, following the example from llama-recipes/examples/quickstart.ipynb file. However, I keep getting a utils error when I run this Python code:

from pathlib import Path
import os
import sys
from utils.dataset_utils import get_preprocessed_dataset
from configs.datasets import samsum_dataset

train_dataset = get_preprocessed_dataset(tokenizer, samsum_dataset, 'train')

First it was saying there is No modle named 'utlis' so I did pip install utils. Now it says the below error:

ModuleNotFoundError                       Traceback (most recent call last)
Cell In[3], line 4
      2 import os
      3 import sys
----> 4 from utils.dataset_utils import get_preprocessed_dataset
      5 from configs.datasets import samsum_dataset
      7 train_dataset = get_preprocessed_dataset(tokenizer, samsum_dataset, 'train')

ModuleNotFoundError: No module named 'utils.dataset_utils'

When I do:

!pip show utils

This is the output about my utlis version:

Name: utils
Version: 1.0.1
Summary: A grab-bag of utility functions and objects
Home-page: http://github.com/haaksmash/pyutils
Author: Haak Saxberg
Author-email: [email protected]
License: UNKNOWN
Location: /root/Desktop/llama2_70B/llama/env_Py310/lib/python3.10/site-packages
Requires: 
Required-by: 

Installation

How can I get utils wheel file for python 3.6 -32 bit window system. Thank you.

No such file or directory: 'README.txt'

When executing setup.py on utils 0.6 it it breaks with the following stack trace:

  Running setup.py (path:/tmp/pip_build/utils/setup.py) egg_info for package utils
    Running command python setup.py egg_info
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build/utils/setup.py", line 10, in <module>
        long_description=open("README.txt").read(),
    IOError: [Errno 2] No such file or directory: 'README.txt'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip_build/utils/setup.py", line 10, in <module>

    long_description=open("README.txt").read(),

IOError: [Errno 2] No such file or directory: 'README.txt'

Changing README.txt to README.rst in setup.py should fix this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.