Giter Site home page Giter Site logo

Techincal question about autotrash HOT 4 CLOSED

chookapp avatar chookapp commented on June 30, 2024
Techincal question

from autotrash.

Comments (4)

bneijt avatar bneijt commented on June 30, 2024

Hi, github is a great way to communicate with me. I'm not quick to respond, but other people also have a chance to respond if they run into the same issue.

Could you post the command you are trying to run and what the result is?

from autotrash.

chookapp avatar chookapp commented on June 30, 2024

That response was rather quick :-)

Anyway, this is what I tried... I might be missing something obvious here...

PYTHONPATH=autotrash python3 -m autotrash:

/usr/bin/python3: No module named autotrash.__main__; 'autotrash' is a package and cannot be directly executed

PYTHONPATH=autotrash python2.7 -m autotrash:

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
    mod_name, _Error)
  File "/usr/lib/python2.7/runpy.py", line 111, in _get_module_details
    __import__(mod_name)  # Do not catch exceptions initializing package
  File "autotrash/__init__.py", line 8, in <module>
    from .app import *
  File "autotrash/app.py", line 61
    def real_file_name(trash_name: str) -> str:
                                 ^
SyntaxError: invalid syntax

python3 init.py:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/requirements.py", line 90, in __init__
    req = REQUIREMENT.parseString(requirement_string)
  File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/pyparsing.py", line 1617, in parseString
    raise exc
...  
  File "/usr/lib/python3/dist-packages/pkg_resources/_vendor/pyparsing.py", line 2670, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pkg_resources._vendor.pyparsing.ParseException: Expected W:(abcd...) (at char 0), (line:1, col:1)

python2.7 init.py:

Traceback (most recent call last):
  File "__init__.py", line 4, in <module>
    __version__ = get_distribution(__name__).version
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 470, in get_distribution
    dist = Requirement.parse(dist)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2988, in parse
    req, = parse_requirements(s)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2935, in parse_requirements
    yield Requirement(line)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2944, in __init__
    raise RequirementParseError(str(e))
pkg_resources.RequirementParseError: Invalid requirement, parse error at "'__main__'"

from autotrash.

bneijt avatar bneijt commented on June 30, 2024

I've added some documentation on running it from git in a new "Development" section of the readme, let me know if that helps. Closing this for now.

from autotrash.

chookapp avatar chookapp commented on June 30, 2024

Thanks!

from autotrash.

Related Issues (20)

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.