Comments (3)
@gangly 求助
from datafaker.
@FengZhengHai 请问如何解决的问题?
from datafaker.
苹果操作系统:macOS catalina 10.15.7
(base) ➜ Desktop python3 -V
Python 3.8.5
(base) ➜ Desktop
(base) ➜ Desktop datafaker file /Users/dbok/Desktop out.txt 10 --meta user_meta.txt --outprint
Traceback (most recent call last):
File "", line 1, in
File "/opt/anaconda3/lib/python3.8/multiprocessing/spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "/opt/anaconda3/lib/python3.8/multiprocessing/spawn.py", line 126, in _main
self = reduction.pickle.load(from_parent)
File "/opt/anaconda3/lib/python3.8/site-packages/datafaker/dbs/filedb.py", line 5, in
from datafaker.compat import safe_encode
File "/opt/anaconda3/lib/python3.8/site-packages/datafaker/compat.py", line 46, in
List = multiprocessing.Manager().list
File "/opt/anaconda3/lib/python3.8/multiprocessing/context.py", line 57, in Manager
m.start()
File "/opt/anaconda3/lib/python3.8/multiprocessing/managers.py", line 579, in start
self._process.start()
File "/opt/anaconda3/lib/python3.8/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/opt/anaconda3/lib/python3.8/multiprocessing/context.py", line 284, in _Popen
return Popen(process_obj)
File "/opt/anaconda3/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in init
super().init(process_obj)
File "/opt/anaconda3/lib/python3.8/multiprocessing/popen_fork.py", line 19, in init
self._launch(process_obj)
File "/opt/anaconda3/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 42, in _launch
prep_data = spawn.get_preparation_data(process_obj._name)
File "/opt/anaconda3/lib/python3.8/multiprocessing/spawn.py", line 154, in get_preparation_data
_check_not_importing_main()
File "/opt/anaconda3/lib/python3.8/multiprocessing/spawn.py", line 134, in _check_not_importing_main
raise RuntimeError('''
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
Traceback (most recent call last):
File "", line 1, in
File "/opt/anaconda3/lib/python3.8/multiprocessing/spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "/opt/anaconda3/lib/python3.8/multiprocessing/spawn.py", line 126, in _main
self = reduction.pickle.load(from_parent)
File "/opt/anaconda3/lib/python3.8/site-packages/datafaker/dbs/filedb.py", line 5, in
from datafaker.compat import safe_encode
File "/opt/anaconda3/lib/python3.8/site-packages/datafaker/compat.py", line 46, in
List = multiprocessing.Manager().list
File "/opt/anaconda3/lib/python3.8/multiprocessing/context.py", line 57, in Manager
m.start()
File "/opt/anaconda3/lib/python3.8/multiprocessing/managers.py", line 579, in start
self._process.start()
File "/opt/anaconda3/lib/python3.8/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/opt/anaconda3/lib/python3.8/multiprocessing/context.py", line 284, in _Popen
return Popen(process_obj)
File "/opt/anaconda3/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in init
super().init(process_obj)
File "/opt/anaconda3/lib/python3.8/multiprocessing/popen_fork.py", line 19, in init
self._launch(process_obj)
File "/opt/anaconda3/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 42, in _launch
prep_data = spawn.get_preparation_data(process_obj._name)
File "/opt/anaconda3/lib/python3.8/multiprocessing/spawn.py", line 154, in get_preparation_data
_check_not_importing_main()
File "/opt/anaconda3/lib/python3.8/multiprocessing/spawn.py", line 134, in _check_not_importing_main
raise RuntimeError('''
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
time used: 0.415 s
(base) ➜ Desktop
from datafaker.
Related Issues (20)
- createtime||datetime||datetime(1,%Y-%m-%d %H:%M) datetime(1) 没有生成当前时间
- 发送kafka 报NoBrokersAvailable: NoBrokersAvailable HOT 1
- datafaker. exceptions. Parse Schemaerror: parse schema error,#年生产计划
- 导出文件每行会多出一行空行
- linux下python3.7运行报错cannot open shared object file: No such file or directory HOT 1
- enum(file://data.txt) 支持指定列
- 怎么处理oracle的date格式
- 【好慢】开了8个worker,写入1万条, 执行好慢 HOT 1
- 目前能支持达梦数据库吗?希望能支持 HOT 1
- order_enum 类型打开超大枚举文件的问题 HOT 3
- 在mac上使用报错,可以修复吗
- 运行日志可以保存下来吗,可以自己定位错误信息
- mac m2 安装Can't pickle <class 'sqlalchemy.orm.session.Session'>: it's not the same object as sqlalchemy.orm.session.Session HOT 2
- 太慢了,生成10条数据还可以,超过1000就不行了 HOT 4
- order_enum重复 HOT 1
- 能否支持从其他列生成相对应的参数,或规则中新增函数类型,调用函数支持传参实现来求值? HOT 2
- 太慢了,是我操作有问题么 HOT 2
- 提示找不到pywin32 HOT 2
- datetime_between类型 生成sql 是 多了一对单引号导致插入数据失败: 例如 ''2021-01-01 00:00:00''
- mysql下处理int数据时,ValueError: empty range for randrange() (11,1, -10)
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 datafaker.