[core-updates-frozen] python-graphene (fixed with version update) and python-nautilus fail to build

  • Done
  • quality assurance status badge
Details
2 participants
  • John Kehayias
  • Ludovic Courtès
Owner
unassigned
Submitted by
John Kehayias
Severity
normal
J
J
John Kehayias wrote on 1 Oct 2021 19:52
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
j4up-vkfh01A_MphJb2GUpeMXnXyeJUlybKVCPI99aZtMblAphc5zqpIeIZTNq-rT4stupCgGN-3e058Ecw-P0nFnzZjrFyCqwO128qSGE0=@protonmail.com
Hello,

python-graphene fails to build on core-updates-frozen; log from the CI on x86_64 is here: https://ci.guix.gnu.org/build/894641/details

I tried updating this and needed packages, though some things are in between versions and dependencies (between beta/rc and older stable release). It started getting a little messy with needing several older versions of packages, so I found the easiest thing was to update python-graphene to the latest beta version, since that closely matches the dependency versions we have. Although the dependents also depend on python-nautilus, so I haven't been able to check their builds (see below).

So that builds (see git diff attached), but then python-nautilus fails for me, after updating it as well, with the (partial log):

Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/scripts/events/publish.py'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/api'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/api/{{name}}'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/api/{{name}}/server.py'...
*** File "/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/api/{{name}}/server.py", line 4
class {{name.title()}}Service(nautilus.APIGateway):
^
SyntaxError: invalid syntax

Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/auth'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/auth/{{name}}'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/auth/{{name}}/server.py'...
*** File "/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/auth/{{name}}/server.py", line 4
class {{name.title()}}Service(nautilus.AuthService): pass
^
SyntaxError: invalid syntax

Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/common'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/common/{{name}}'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/common/{{name}}/__init__.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/common/{{name}}/manage.py'...
*** File "/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/common/{{name}}/manage.py", line 6
from server import {{name.title()}}Service
^
SyntaxError: invalid syntax

Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/connection'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/connection/{{name}}'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/connection/{{name}}/server.py'...
*** File "/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/connection/{{name}}/server.py", line 5
from ..{{service}} import {{service.title()}}Service{% endfor %}
^
SyntaxError: invalid syntax

Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/model'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/model/{{name}}'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/model/{{name}}/server.py'...
*** File "/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/model/{{name}}/server.py", line 5
class {{name.title()}}(BaseModel):
^
SyntaxError: invalid syntax

Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/util'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/util/__init__.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/util/render_template.py'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/models'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/models/__init__.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/models/base.py'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/models/fields'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/models/fields/__init__.py'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/models/serializers'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/models/serializers/__init__.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/models/serializers/modelSerializer.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/models/util.py'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/__init__.py'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/__init__.py'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/actionHandlers'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/actionHandlers/__init__.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/actionHandlers/createHandler.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/actionHandlers/crudHandler.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/actionHandlers/deleteHandler.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/actionHandlers/flexibleAPIHandler.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/actionHandlers/queryHandler.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/actionHandlers/readHandler.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/actionHandlers/rollCallHandler.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/actionHandlers/updateHandler.py'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/consumers'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/consumers/__init__.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/consumers/actions.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/consumers/api.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/consumers/kafka.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/events/util.py'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/http'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/http/__init__.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/http/requestHandler.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/network/http/responses.py'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/services'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/services/__init__.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/services/apiGateway.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/services/connectionService.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/services/modelService.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/services/service.py'...
Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/services/serviceManager.py'...
Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus-0.5.2-py3.9.egg-info'...
error: in phase 'install': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("-m" "compileall" "--invalidation-mode=unchecked-hash" "/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2") exit-status: 1 term-signal: #f stop-signal: #f>
phase `install' failed after 0.2 seconds
command "python" "-m" "compileall" "--invalidation-mode=unchecked-hash" "/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2" failed with status 1
builder for `/gnu/store/saqsy8lqv0kp1jap6qhpklnqsj87p9rv-python-nautilus-0.5.2.drv' failed with exit code 1
build of /gnu/store/saqsy8lqv0kp1jap6qhpklnqsj87p9rv-python-nautilus-0.5.2.drv failed

Thanks for taking a look,
John
Toggle diff (65 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9821e9288e..fa4003ab2f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16136,19 +16136,19 @@ from Facebook.")
(define-public python-graphene
(package
(name "python-graphene")
- (version "0.10.2")
+ (version "3.0b8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "graphene" version))
(sha256
(base32
- "09zhac7igh9ixdz0ay6csy35b40l1jwbf2wrbxmgxwfhy51iy06q"))))
+ "04h2h16yky6xkfk06zm6frg5jw7jc2a6rfs28v5il0mpgbi2mbm6"))))
(build-system python-build-system)
(propagated-inputs
`(("python-graphql-core" ,python-graphql-core)
("python-graphql-relay" ,python-graphql-relay)
- ("python-iso8601" ,python-iso8601)
+ ("python-aniso8601" ,python-aniso8601)
("python-promise" ,python-promise)
("python-six" ,python-six)))
(arguments
@@ -16164,14 +16164,14 @@ with an associated set of resolve methods that know how to fetch data.")
(define-public python-nautilus
(package
(name "python-nautilus")
- (version "0.4.9")
+ (version "0.5.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "nautilus" version))
(sha256
(base32
- "01hwzjc1zshk4vvxrcghm398fpy4jls66dyz06g07mrwqif8878p"))))
+ "1phdams5zqjfmaaf0dzcp37rndcrfb78qxx3lhqmwvswq60hnibj"))))
(build-system python-build-system)
(arguments `(#:tests? #f)) ; fails to import test modules
(propagated-inputs
diff --git a/gnu/packages/time.scm b/gnu/packages/time.scm
index df4b8ac6f5..826ae42451 100644
--- a/gnu/packages/time.scm
+++ b/gnu/packages/time.scm
@@ -450,14 +450,14 @@ datetime type.")
(define-public python-aniso8601
(package
(name "python-aniso8601")
- (version "1.3.0")
+ (version "9.0.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "aniso8601" version))
(sha256
(base32
- "1waj54iv3n3lw1fapbz8a93yjgrybgpc86wif5baxdh1arpj9df3"))))
+ "0wxry6riyqajl02mkad8g2q98sx5jr13zndj3fandpzfcxv13qvj"))))
(build-system python-build-system)
(propagated-inputs
`(("python-dateutil" ,python-dateutil)))
L
L
Ludovic Courtès wrote on 18 Nov 2021 15:57
(name . John Kehayias)(address . john.kehayias@protonmail.com)
87fsrtpl4m.fsf@gnu.org
Hi John,

John Kehayias <john.kehayias@protonmail.com> skribis:

Toggle quote (4 lines)
> python-graphene fails to build on core-updates-frozen; log from the CI on x86_64 is here: https://ci.guix.gnu.org/build/894641/details
>
> I tried updating this and needed packages, though some things are in between versions and dependencies (between beta/rc and older stable release). It started getting a little messy with needing several older versions of packages, so I found the easiest thing was to update python-graphene to the latest beta version, since that closely matches the dependency versions we have. Although the dependents also depend on python-nautilus, so I haven't been able to check their builds (see below).

Addressed with something similar to your patch in commit
2b3046beca1b35e03f975fb95956f32eb46dee8c.

Toggle quote (12 lines)
> So that builds (see git diff attached), but then python-nautilus fails for me, after updating it as well, with the (partial log):
>
> Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/scripts/events/publish.py'...
> Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates'...
> Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/api'...
> Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/api/{{name}}'...
> Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/api/{{name}}/server.py'...
> *** File "/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/api/{{name}}/server.py", line 4
> class {{name.title()}}Service(nautilus.APIGateway):
> ^
> SyntaxError: invalid syntax

That I don’t know how to fix. Looks like these are templates, not
actual Python files, and that as such they should be skipped compilation
machinery in the ‘install’ phase.

Maxim, any suggestions?

Thanks,
Ludo’.
L
L
Ludovic Courtès wrote on 18 Nov 2021 15:57
control message for bug #50947
(address . control@debbugs.gnu.org)
87ee7dpl46.fsf@gnu.org
close 50947
quit
J
J
John Kehayias wrote on 21 Nov 2021 22:29
Re: bug#50947: [core-updates-frozen] python-graphene (fixed with version update) and python-nautilus fail to build
(name . Ludovic Courtès)(address . ludo@gnu.org)
bojbeTUttvv91gBuhp4sbASQvGVvVsMQqZFwkfHHDRfwWIb2TaUEjvyh_NXsYplSEFre0Uewd88tK3Eis23uObHoysKirKg3y6r3R7c7O0c=@protonmail.com
Hello,

Just to followup here

??????? Original Message ???????

On Thursday, November 18th, 2021 at 9:57 AM, Ludovic Courtès wrote:

Toggle quote (21 lines)
> Addressed with something similar to your patch in commit
> 2b3046beca1b35e03f975fb95956f32eb46dee8c.
>
> > So that builds (see git diff attached), but then python-nautilus fails for me, after updating it as well, with the (partial log):
> >
> > Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/scripts/events/publish.py'...
> > Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates'...
> > Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/api'...
> > Listing '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/api/{{name}}'...
> > Compiling '/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/api/{{name}}/server.py'...
> > *** File "/gnu/store/i7f6bzgm5aaxlsijfilra4w4sms2wa51-python-nautilus-0.5.2/lib/python3.9/site-packages/nautilus/management/templates/api/{{name}}/server.py", line 4
> > class {{name.title()}}Service(nautilus.APIGateway):
> > ^
> > SyntaxError: invalid syntax
>
> That I don’t know how to fix. Looks like these are templates, not
> actual Python files, and that as such they should be skipped compilation
> machinery in the ‘install’ phase.
>
> Maxim, any suggestions?

I filed https://issues.guix.gnu.org/52028to remove python-nautilus. It is the wrong package and is not needed as far as I can tell. I added a message on that issue number with a WIP diff in case anyone does try to pick it up, but I did not fix it and then realized it was the wrong package.

Thanks for the earlier fixes on python-graphene!

John
?
Your comment

This issue is archived.

To comment on this conversation send an email to 50947@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 50947
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch