Comments (6)
BTW https://pypi.python.org/pypi/path.py/ shows that latest version is 12.5.0.
Is that OK and something is wrong with 15.0.0?
from path.
Thanks for the report. This issue was addressed in 904d648 and released as 15.0.1.
BTW https://pypi.python.org/pypi/path.py/ shows that latest version is 12.5.0.
Is that OK and something is wrong with 15.0.0?
The project was renamed from path.py
to path
. Please use the package under the name path
(pypi).
from path.
Just tested 15.0.1 ad still something is wrong.
+ cd path-15.0.1
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-path-15.0.1-2.fc34.x86_64/usr/lib/python3.8/site-packages
+ pytest -v
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.3, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python3
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/home/tkloczko/rpmbuild/BUILD/path-15.0.1/.hypothesis/examples')
rootdir: /home/tkloczko/rpmbuild/BUILD/path-15.0.1, configfile: pytest.ini
plugins: hypothesis-4.23.8, flaky-3.6.1, forked-1.3.0, xdist-2.1.0, shutil-1.7.0, virtualenv-1.7.0, cov-2.10.1
collected 82 items / 2 errors / 80 selected
================================================================================== ERRORS ==================================================================================
____________________________________________________________________ ERROR collecting path/matchers.py _____________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:310: in from_call
result = func() # type: Optional[TResult]
/usr/lib/python3.8/site-packages/_pytest/runner.py:340: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:537: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('path.matchers', '/home/tkloczko/rpmbuild/BUILDROOT/python-path-15.0.1-2.fc34.x86_64/usr/lib/python3.8/site-packages/path/matchers.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/path-15.0.1/path/matchers.py'))
___________________________________________________________________ ERROR collecting path/py37compat.py ____________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:310: in from_call
result = func() # type: Optional[TResult]
/usr/lib/python3.8/site-packages/_pytest/runner.py:340: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:532: in collect
module = import_path(self.fspath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:537: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('path.py37compat', '/home/tkloczko/rpmbuild/BUILDROOT/python-path-15.0.1-2.fc34.x86_64/usr/lib/python3.8/site-packages/path/py37compat.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/path-15.0.1/path/py37compat.py'))
========================================================================= short test summary info ==========================================================================
ERROR path/matchers.py - _pytest.pathlib.ImportPathMismatchError: ('path.matchers', '/home/tkloczko/rpmbuild/BUILDROOT/python-path-15.0.1-2.fc34.x86_64/usr/lib/python3.8...
ERROR path/py37compat.py - _pytest.pathlib.ImportPathMismatchError: ('path.py37compat', '/home/tkloczko/rpmbuild/BUILDROOT/python-path-15.0.1-2.fc34.x86_64/usr/lib/pytho...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================ 2 errors in 0.44s =============================================================================
from path.
That looks like a different issue with a different error. It looks to me like there’s something about the rpm environment that’s making two copies of the project. How could one replicate the issue?
from path.
Please open a new issue and mention me on it if I can help investigate the RPM issue, but please do put together a repro (such as a Dockerfile that replicates the behavior).
from path.
This issu has nothing to do with rpm.
Rpm is used only here to execute repeatable build and test procedure.
from path.
Related Issues (20)
- Joining a drive and path results in invalid path (windows) HOT 2
- Fix simple typo: temporry -> temporary
- from django.urls import path ImportError: cannot import name path
- Fails on black format check HOT 1
- Align API with pathlib.Path HOT 1
- test_shutil failing on Windows HOT 3
- lines() is implemented using text(), not read_text() HOT 7
- Tests on travis failing HOT 4
- Conflict upgrading project to path when other dependency depends on path.py HOT 3
- Autogenerated documentation mis-represents "mode" argument defaults HOT 3
- "For enterprise" link 404 HOT 2
- TempDir directory not deleted on interruption HOT 1
- 15.1.2: sphinx warnings HOT 1
- 15.1.2: pytest errors HOT 8
- 16.0.0: pytest errors
- Some tests can't be run on filesystems that have strict utf-8 mode HOT 1
- Add stacklevel=2 in deprecation warning
- Add method to see the setted permissions HOT 4
- `path.Path().files()` fails with `FileNotFoundError` HOT 2
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 path.