ImportError: cannot import name 'NumberField' from partially initialized 
module 'sage.rings.number_field.number_field' (most likely due to a 
circular import) 
(/private/var/tmp/sage-9.5-current/local/var/lib/sage/venv-python3.9.9/lib/python3.9/site-packages/sage/rings/number_field/number_field.py)
 
Process SpawnPoolWorker-3:
On Wednesday, January 26, 2022 at 1:45:41 PM UTC Alan Stafford wrote:

> SageMath 9.1 works with the 9.5 version of ncpus.py so one can disregard 
> my tinkering with  it. 
>
> On Wednesday, January 26, 2022 at 10:12:33 AM UTC Alan Stafford wrote:
>
>> I am using Mac OS 12.1 Monterey. The notebook works on Sagemath 9.1 if I 
>> hack ncpus.py to return 4. 
>>
>> On Tuesday, January 25, 2022 at 10:59:20 PM UTC John H Palmieri wrote:
>>
>>> Are you using OS X? Could this possibly be due to how Python handles 
>>> multiprocessing on OS X vs. other platforms? (See 
>>>
>>> https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods,
>>>  
>>> in particular the comment "On macOS, the *spawn* start method is now 
>>> the default" and https://bugs.python.org/issue33725.)
>>>
>>>
>>>
>>> On Tuesday, January 25, 2022 at 12:34:07 PM UTC-8 
>>> alan_thoma...@yahoo.co.uk wrote:
>>>
>>>> Process SpawnPoolWorker-1: Traceback (most recent call last): File 
>>>> "/private/var/tmp/sage-9.5-current/local/var/lib/sage/venv-python3.9.9/lib/python3.9/multiprocessing/process.py",
>>>>  
>>>> line 315, in _bootstrap self.run() File 
>>>> "/private/var/tmp/sage-9.5-current/local/var/lib/sage/venv-python3.9.9/lib/python3.9/multiprocessing/process.py",
>>>>  
>>>> line 108, in run self._target(*self._args, **self._kwargs) File 
>>>> "/private/var/tmp/sage-9.5-current/local/var/lib/sage/venv-python3.9.9/lib/python3.9/multiprocessing/pool.py",
>>>>  
>>>> line 114, in worker task = get() File 
>>>> "/private/var/tmp/sage-9.5-current/local/var/lib/sage/venv-python3.9.9/lib/python3.9/multiprocessing/queues.py",
>>>>  
>>>> line 368, in get return _ForkingPickler.loads(res) File 
>>>> "/private/var/tmp/sage-9.5-current/local/var/lib/sage/venv-python3.9.9/lib/python3.9/site-packages/sage/manifolds/differentiable/chart.py",
>>>>  
>>>> line 36, in <module>
>>>> On Tuesday, January 25, 2022 at 8:13:20 PM UTC egourg...@gmail.com 
>>>> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Le mardi 25 janvier 2022 à 12:54:57 UTC+1, alan_thoma...@yahoo.co.uk 
>>>>> a écrit :
>>>>>
>>>>>> I get errors in this notebook if I set the variable tpar to any value 
>>>>>> greater than one. (Number of Tensor processing cores.)
>>>>>>
>>>>>> *http://alan.atstafford.co.uk/Sage9.5Problem.ipynb 
>>>>>> <http://alan.atstafford.co.uk/Sage9.5Problem.ipynb>*
>>>>>>
>>>>>
>>>>> Your notebook works well with tpar=4 on my Ubuntu computer running 
>>>>> Sage 9.5.rc4.
>>>>> What kind of error do you get?
>>>>>
>>>>> Eric.
>>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/d0782dd6-41d5-48da-8b8b-e00bc356e9b6n%40googlegroups.com.

Reply via email to