Opened 43 hours ago
Closed 3 hours ago
#71290 closed defect (invalid)
py312-scipy @1.14.1: TypeError: expected string or bytes-like object, got 'NoneType'
Reported by: | brolcz | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.10.4 |
Keywords: | Cc: | reneeotten (Renee Otten), Schamschula (Marius Schamschula) | |
Port: | py312-scipy |
Description
When I try to install this port, it fails. I am including the log file below. Thank you.
I am using a macbook pro, mac os monterey 12.7.6.
Attachments (1)
Change History (11)
Changed 43 hours ago by brolcz
comment:1 Changed 42 hours ago by ryandesign (Ryan Carsten Schmidt)
Cc: | reneeotten@… removed |
---|---|
Keywords: | michaelld@macports.org removed |
Owner: | set to michaelld |
Status: | new → assigned |
Summary: | py312-scipy @1.14.1 install failure → py312-scipy @1.14.1: TypeError: expected string or bytes-like object, got 'NoneType' |
comment:2 Changed 39 hours ago by jmroot (Joshua Root)
Cc: | reneeotten added |
---|
comment:3 Changed 26 hours ago by ryandesign (Ryan Carsten Schmidt)
Cc: | Schamschula added |
---|
I see you also filed #71296 for the same problem in a different port (py312-pyerfa). I've closed it as a duplicate of this one because I suspect the problem is not in the ports you're seeing the problem with but with one of their dependencies, and possibly with the specific way that dependency is installed on your system.
I did a Google search for this error and found some results that may provide some insight:
comment:4 follow-ups: 5 6 Changed 26 hours ago by reneeotten (Renee Otten)
two questions:
- are you building in trace-mode? I've seen (seemingly) randomly popping up errors like this. The issue with trace-mode and Python packages (as far as I understand it), is that they will be found but cannot be used. That's what could be happening here; if so, try building without trace mode.
- do you see the same problem when building the default variant, in other words without the
gcc14
variant?
comment:5 Changed 25 hours ago by ryandesign (Ryan Carsten Schmidt)
Replying to reneeotten:
- are you building in trace-mode? I've seen (seemingly) randomly popping up errors like this. The issue with trace-mode and Python packages (as far as I understand it), is that they will be found but cannot be used. That's what could be happening here; if so, try building without trace mode.
The log shows trace mode (the -t
flag) was not used.
The ticket tracking build failures of python modules when trace mode is used is #69534.
- do you see the same problem when building the default variant, in other words without the
gcc14
variant?
We usually offer binaries of ports built with default variants, and most likely you will be able to install that binary. To test whether the issue affects the default variants when building on your system, make sure you build from source (use the -s
flag).
comment:6 Changed 23 hours ago by brolcz
Replying to reneeotten:
two questions:
- are you building in trace-mode? I've seen (seemingly) randomly popping up errors like this. The issue with trace-mode and Python packages (as far as I understand it), is that they will be found but cannot be used. That's what could be happening here; if so, try building without trace mode.
- do you see the same problem when building the default variant, in other words without the
gcc14
variant?
Thanks for the questions.
- I did not use trace-mode.
- I get the same error when I try to build without specifying any variants, or when using the -s flag.
Thank you.
comment:7 follow-up: 9 Changed 5 hours ago by reneeotten (Renee Otten)
that's strange as the builds on the buildbot and locally for me all succeed.
Please make sure that you do not have any Python packages installed through pip
or any other means that could get picked up. Other than that I am not sure what to say; if there are other reports about the same issue we can certainly investigate further but for now I would conjecture that it is something with the specifics of your system.
comment:8 Changed 5 hours ago by reneeotten (Renee Otten)
You could also check the second link that Ryan posted and verify that you have no empty *.dist-info
directories in the site-packages
directory. Another way to likely rule out an issue like that is to install the py313 subport and see if that succeeds.
comment:9 Changed 3 hours ago by brolcz
Replying to reneeotten:
that's strange as the builds on the buildbot and locally for me all succeed.
Please make sure that you do not have any Python packages installed through
pip
or any other means that could get picked up. Other than that I am not sure what to say; if there are other reports about the same issue we can certainly investigate further but for now I would conjecture that it is something with the specifics of your system.
Thank you. I checked pip and I did have pyerfa in there. Upon uninstalling it from pip, the port did install successfully in macports. Thanks for the advice, and sorry for the goose chase!
comment:10 Changed 3 hours ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
Glad you solved it!
The log says the problem is: