Comments (9)
Um, the script doesn't add --ignore-installed
so I'm not sure where that is coming from?
from flatpak-builder-tools.
Ignoring setuptools: markers 'python_version == "3.3"' don't match your environment
Doesn't it mean that dateutil requires setuptools version which works only on Python 3.3?
from flatpak-builder-tools.
The full line is: "setuptools; python_version != '3.3'" "setuptools<40.0; python_version == '3.3'"
, I don't know exactly what that means but I think it's requiring old setuptools for old Python, and latest setuptools otherwise
I should note, that this problem happens against the org.gnome.Sdk/x86_64/3.32 runtime. Perhaps it's a new issue in that version of the runtime? I'll try building against an older version.
from flatpak-builder-tools.
The same issue occurs with 3.30.
I think the real issue here might be that python-dateutil expresses a dependency on setuptools_scm in its setup_requires
. Apparently pip doesn't download setup_requires dependencies, it leaves that to setuptools instead. So this could be why pip download
doesn't get the full set of dependencies needed by the python-dateutil package.
The workaround for this issue is straightforward, but it would be better if there was a way to actually get the full set of dependencies for a package without manually figuring them out.
from flatpak-builder-tools.
I ran into a similar problem. For me dateutil was pulled in by matplotlib. I also had a similar problem with pytest.
I can resolve it by adding --no-build-isolation, i.e.
{
"name": "python3-python-dateutil",
"buildsystem": "simple",
"build-commands": [
"pip3 install --no-index --no-build-isolation --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} python-dateutil"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/dd/bf/4138e7bfb757de47d1f4b6994648ec67a51efe58fa907c1e11e350cddfca/six-1.12.0.tar.gz",
"sha256": "d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/ad/99/5b2e99737edeb28c71bcbec5b5dda19d0d9ef3ca3e92e3e925e7c0bb364c/python-dateutil-2.8.0.tar.gz",
"sha256": "c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e"
}
]
}
I also found this, it might be related: dateutil/dateutil#840, installing dateutil 2.7.0 worked.
My problem occurred when changing from kde platform 5.11 (python 3.5) to 5.12 (python 3.7).
from flatpak-builder-tools.
I don´t know if this is useful information, but flatpak-pip-generator not being able to successfully generate the modules for datuetils, also makes it not work for implementing mastodon.py with python 3.7.
When a "python flatpak-pip-generator mastodon.py" is executed, the resulting modules can be made working when nolyn´s fix is used: changing dateutils version to 2.7.0:
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/e5/1d/64a3b1c30842ecf0518af93ed123e5064559e588aebdcae0a59831dee642/python-dateutil-2.7.0.tar.gz",
"sha256": "8f95bb7e6edbb2456a51a1fb58c8dca942024b4f5844cae62c90aa88afe6e300"
}
Hope this helps someone out :)
from flatpak-builder-tools.
I can't reproduce this issue with the latest master version. I think this is fixed by #63, since python-dateutil is now installed using the wheel.
(.env) dan@dan-Librem-13-v2:~/Projects/flatpak-builder-tools/pip$ python flatpak-pip-generator python-dateutil
Collecting python-dateutil
Using cached https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl
Saved /tmp/pip-generator-python3-python-dateutil-082sa1df/python_dateutil-2.8.0-py2.py3-none-any.whl
Collecting six>=1.5
Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Saved /tmp/pip-generator-python3-python-dateutil-082sa1df/six-1.12.0-py2.py3-none-any.whl
Successfully downloaded python-dateutil six
Generating hash for /tmp/pip-generator-python3-python-dateutil-082sa1df/python_dateutil-2.8.0-py2.py3-none-any.whl
Extracting download url for python_dateutil
Generating hash for /tmp/pip-generator-python3-python-dateutil-082sa1df/six-1.12.0-py2.py3-none-any.whl
Extracting download url for six
{
"name": "python3-python-dateutil",
"buildsystem": "simple",
"build-commands": [
"pip3 install --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} python-dateutil"
],
"sources": [
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl",
"sha256": "7e6584c74aeed623791615e26efd690f29817a27c73085b78e4bad02493df2fb"
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl",
"sha256": "3350809f0555b11f552448330d0b52d5f24c91a322ea4a15ef22629740f3761c"
}
]
}
from flatpak-builder-tools.
I was able to solve my problem using this, but it was not yet straight forward. Not sure it is a new bug though. So I'll describe it here shortly. My package uses matplotlib.
./flatpak-pip-generator matplotlib
produces this file (i added .txt).
python3-matplotlib.json.txt
It has duplicate entries for packages. One tar.gz and one .whl. I had to manually delete the tar.gz entries before my build succeeded.
from flatpak-builder-tools.
For what it is worth, this problem still exists and doesn't seem to have been fixed by the merge request listed above, sadly.
from flatpak-builder-tools.
Related Issues (20)
- Build failure with git version of Relm4 HOT 4
- flatpak-node-generator generates no useable sources when using npm HOT 4
- how to use flatpak to install flatpak-pip-generator HOT 2
- Node: Generic error KeyError: 'resolved' HOT 5
- Cannot install flatpak-node-generator HOT 4
- node-generator does not support lockfiles generated by yarn v3
- name should be only the filename, not whole path
- flatpak-pip-checker should parse python_version synatx in requirements file HOT 1
- flatpak-node-generator does not work well with lockfile v3 in monorepo HOT 1
- cargo generator cant seem to find `build-dependencies` HOT 3
- @electron/get > v2.0.3 requires SHA256SUMS.txt for cached files HOT 3
- poetry: flatpak-poetry-generator.py doesn't seem to work with new poetry.lock files HOT 1
- npm-generator: url content data makes flatpak-builder crash HOT 7
- node-generator: assert (package.lockfile.parent / source.path / 'package.json').is_file() AssertionError HOT 3
- [node] npm provider's `generated-sources.json` missing many packages (ENOTCACHED)
- pip generator does not collect build dependencies
- [node] NotImplementedError: Git sources in lockfile v2 format are not supported yet HOT 1
- Add support for pnpm in flatpak-node-generator HOT 1
- cargo: TomlDecodeError when attempting to parse Cargo.lock for rustdesk
- flatpak-node-generator HOT 1
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 flatpak-builder-tools.