# Error importing users

**URL:** <https://community.learningequality.org/t/error-importing-users/2491>\
**Category:** Support\
**Created:** [July 7, 2022, 8:32pm UTC](https://community.learningequality.org/t/error-importing-users/2491 "2022-07-07T20:32:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Billy](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/billy/32/1141_2.png) [@Billy](https://community.learningequality.org/u/Billy)\
**Post date:** [July 7, 2022, 8:32pm UTC](https://community.learningequality.org/t/error-importing-users/2491/1 "2022-07-07T20:32:08Z")

</div>

hello again, I have to add more than 500 users and try to use the import option, however when I do it I get the following error

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/learneq/original/2X/f/ff045bd8a2198dacebb02f1c258200f1263dab57.png)

---

<div class="post-metadata">

**Author:** ![richard](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/richard/32/10_2.png) [@richard](https://community.learningequality.org/u/richard)\
**Post date:** [July 7, 2022, 8:36pm UTC](https://community.learningequality.org/t/error-importing-users/2491/2 "2022-07-07T20:36:07Z")

</div>

Hi @Billy,

When you click on `Ayudanos informando sobre este error` what information does it show, could you copy paste the information here to give us more information to debug?

Kind Regards,  
Richard

---

<div class="post-metadata">

**Author:** ![Billy](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/billy/32/1141_2.png) [@Billy](https://community.learningequality.org/u/Billy)\
**Post date:** [July 7, 2022, 8:43pm UTC](https://community.learningequality.org/t/error-importing-users/2491/3 "2022-07-07T20:43:34Z")

</div>

Traceback (most recent call last):  
File “/usr/lib/python3/dist-packages/kolibri/core/tasks/job.py”, line 174, in to\_json  
string\_result = json.dumps(working\_dictionary)  
File “/usr/lib/python3.8/json/ **init**.py”, line 231, in dumps  
return \_default\_encoder.encode(obj)  
File “/usr/lib/python3.8/json/encoder.py”, line 199, in encode  
chunks = self.iterencode(o, \_one\_shot=True)  
File “/usr/lib/python3.8/json/encoder.py”, line 257, in iterencode  
return \_iterencode(o, 0)  
File “/usr/lib/python3.8/json/encoder.py”, line 179, in default  
raise TypeError(f’Object of type {o. **class**. **name** } ’  
TypeError: Object of type **proxy** is not JSON serializable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):  
File “/usr/lib/python3/dist-packages/kolibri/core/tasks/worker.py”, line 61, in handle\_finished\_future  
result = future.result()  
File “/usr/lib/python3.8/concurrent/futures/\_base.py”, line 437, in result  
return self.\_\_get\_result()  
File “/usr/lib/python3.8/concurrent/futures/\_base.py”, line 389, in \_\_get\_result  
raise self.\_exception  
File “/usr/lib/python3.8/concurrent/futures/thread.py”, line 57, in run  
result = self.fn(\*self.args, \*\*self.kwargs)  
File “/usr/lib/python3/dist-packages/kolibri/core/tasks/job.py”, line 117, in execute\_job  
result = func(\*args, \*\*kwargs)  
File “/usr/lib/python3/dist-packages/kolibri/dist/django/core/management/ **init**.py”, line 131, in call\_command  
return command.execute(\*args, \*\*defaults)  
File “/usr/lib/python3/dist-packages/kolibri/dist/django/core/management/base.py”, line 330, in execute  
output = self.handle(\*args, \*\*options)  
File “/usr/lib/python3/dist-packages/kolibri/core/tasks/management/commands/base.py”, line 119, in handle  
return self.handle\_async(\*args, \*\*options)  
File “/usr/lib/python3/dist-packages/kolibri/core/auth/management/commands/bulkimportusers.py”, line 852, in handle\_async  
self.exit\_if\_error()  
File “/usr/lib/python3/dist-packages/kolibri/core/auth/management/commands/bulkimportusers.py”, line 769, in exit\_if\_error  
self.job.save\_meta()  
File “/usr/lib/python3/dist-packages/kolibri/core/tasks/job.py”, line 244, in save\_meta  
self.storage.save\_job\_meta(self)  
File “/usr/lib/python3/dist-packages/kolibri/core/tasks/storage.py”, line 287, in save\_job\_meta  
self.\_update\_job(job.job\_id, extra\_metadata=job.extra\_metadata)  
File “/usr/lib/python3/dist-packages/kolibri/core/tasks/storage.py”, line 300, in \_update\_job  
orm\_job.saved\_job = job.to\_json()  
File “/usr/lib/python3/dist-packages/kolibri/core/tasks/job.py”, line 178, in to\_json  
raise TypeError(  
TypeError: Job objects need to be JSON-serializable: Object of type **proxy** is not JSON serializable

---

<div class="post-metadata">

**Author:** ![Billy](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/billy/32/1141_2.png) [@Billy](https://community.learningequality.org/u/Billy)\
**Post date:** [July 7, 2022, 8:50pm UTC](https://community.learningequality.org/t/error-importing-users/2491/4 "2022-07-07T20:50:51Z")

</div>

apparently it is an error because the file is not in the correct format

---

<div class="post-metadata">

**Author:** ![richard](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/richard/32/10_2.png) [@richard](https://community.learningequality.org/u/richard)\
**Post date:** [July 7, 2022, 8:52pm UTC](https://community.learningequality.org/t/error-importing-users/2491/5 "2022-07-07T20:52:39Z")

</div>

Yes - that does seem to be the issue, although it should report that error to you rather than showing an error page!

I am filing an issue for this on our tracker, it should be fixed in a patch release on 0.15.x.

For now, make sure that the file you are uploading is a valid CSV file - other file types will not be processed.

---

<div class="post-metadata">

**Author:** ![richard](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/richard/32/10_2.png) [@richard](https://community.learningequality.org/u/richard)\
**Post date:** [July 7, 2022, 8:57pm UTC](https://community.learningequality.org/t/error-importing-users/2491/6 "2022-07-07T20:57:38Z")

</div>

I have filed an issue on our Github here: [Reporting an error in bulkimportusers triggers an error · Issue #9554 · learningequality/kolibri · GitHub](https://github.com/learningequality/kolibri/issues/9554) - hopefully we should be able to resolve this by the end of August.

---

<div class="post-metadata">

**Author:** ![jredrejo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/jredrejo/32/561_2.png) [@jredrejo](https://community.learningequality.org/u/jredrejo)\
**Post date:** [July 8, 2022, 5:34pm UTC](https://community.learningequality.org/t/error-importing-users/2491/7 "2022-07-08T17:34:24Z")

</div>

Hello @Bily , looking at your error traceback I see the problem is not in the file format but in the way errors in the file are notified. Your file contains some error that should be shown in the browser. The errors are translated into your server language and it seems the translation is failing.

To try to reproduce it, could you give me more info about your server? kolibri version, Operative system, language (probably es-GT , etc.) ?

I’ve tried to reproduce it using Ubuntu 20.04 and the translation is correct and this error does not appear so I guess you’re using a different system.

Thanks  
José

---

<div class="post-metadata">

**Author:** ![richard](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.learningequality.org/richard/32/10_2.png) [@richard](https://community.learningequality.org/u/richard)\
**Post date:** [July 11, 2022, 7:00pm UTC](https://community.learningequality.org/t/error-importing-users/2491/8 "2022-07-11T19:00:00Z")

</div>

Hi @Billy,

@jredrejo has made a fix for what we think was the cause of this, and it should be in the next patch release of Kolibri that will be out in just under two weeks. Thanks for reporting and helping us improve Kolibri!

Kind Regards,  
Richard
