Comments (4)
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.
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.
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.
Thanks!
from autotrash.
Related Issues (20)
- AUR package link not working: 404 - Page Not Found
- autotrash: error: no such option: -t HOT 4
- run at startup? HOT 1
- Date parse error for info files HOT 11
- Installing on Linux Mint 20 / Ubuntu 20.04 LTS (Focal Fossa) HOT 5
- Syntax error def read_datetime(value: str) -> datetime.datetime: HOT 2
- ValueError: unconverted data remains: .405Z [Linux Mint 19.3] HOT 2
- [Suggestion] Add to AUR HOT 3
- Arrow dependency unnecessary? HOT 1
- DeprecationWarning: SafeConfigParser HOT 6
- I can't install it. HOT 4
- Documentation suggestions
- Consider creating Snap package HOT 9
- Option to purge trash of all users when running as root
- Suggested cron syntax doesn't work HOT 4
- PackageNotFoundError not ignored when looking for package version HOT 1
- Ubuntu (and Debian? ) install instruction issues HOT 2
- Please make a flatpak package HOT 2
- Use $XDG_CONFIG_HOME rather than assuming ~/.config
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autotrash.